[Bug 52418] New: run-time linking issues
https://bugs.winehq.org/show_bug.cgi?id=52418 Bug ID: 52418 Summary: run-time linking issues Product: Wine Version: 7.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: ismael(a)iodev.co.uk Distribution: --- Wine builds fine but then running any application results in errors like the following: $ winecfg 002c:err:module:LdrInitializeThunk "ws2_32.dll" failed to initialize, aborting 002c:err:module:LdrInitializeThunk Initializing dlls for L"C:\\windows\\system32\\wineboot.exe" failed, status c0000142 003c:err:module:LdrInitializeThunk "comctl32.dll" failed to initialize, aborting 003c:err:module:LdrInitializeThunk Initializing dlls for L"C:\\windows\\system32\\winecfg.exe" failed, status c0000005 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52418 --- Comment #1 from Ismael Luceno <ismael(a)iodev.co.uk> --- The system uses musl libc instead of glibc, if that's relevant. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52418 Ismael Luceno <ismael(a)iodev.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Other -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52418 --- Comment #2 from Alex Xu <alex_y_xu(a)yahoo.ca> --- as I already explained to ismael on irc, this is caused by wine dlopening libraries by full path and then expecting NEEDED to be satisfied by filename/SONAME. musl does not implement this behavior. it can be fixed in wine by setting rpath like https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/community/wine/rp..., but since there are discussions whether to implement SONAME matching behavior in musl to match other libcs, i have not submitted this patch to wine. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52418 --- Comment #3 from Ismael Luceno <ismael(a)iodev.co.uk> --- It seems to me the expectation doesn't conform to the ELF spec. It would be nice if someone knowledgable could give a reference to something that tells us if this behavior can be expected or not. If not, then specifying rpath would be mandatory. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52418 --- Comment #4 from Ismael Luceno <ismael(a)iodev.co.uk> --- The ELF spec mentions DT_SONAME being optional, and dlopen implementations don't seem to require it; additionally I can find no reference about satisfying a DT_NEEDED based on a cached DT_SONAME entry or otherwise, so maybe should be regarded as an optimization not to be relied upon. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52418 --- Comment #5 from Ismael Luceno <ismael(a)iodev.co.uk> --- I can now confirm that rpath.patch solves the issue. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52418 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|run-time linking issues |run-time linking issues | |when building wine with | |musl libc -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=52418 Fabian Maurer <dark.shadow4(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4(a)web.de -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla