https://bugs.winehq.org/show_bug.cgi?id=57874
Bug ID: 57874 Summary: wineloader no longer able to find ntdll.so Product: Wine Version: 9.12 Hardware: x86-64 OS: MacOS Status: UNCONFIRMED Severity: critical Priority: P2 Component: loader Assignee: wine-bugs@winehq.org Reporter: gcenx83@gmail.com
When attempting to run wine from $PREFIX/bin/wine I'm seeing
gcenx@MacBook-Pro ~ % wine explorer wine: could not load ntdll.so: dlopen(/Users/gcenx/../lib/wine/x86_64-unix/ntdll.so, 0x0002): tried: '/Users/gcenx/../lib/wine/x86_64-unix/ntdll.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/gcenx/../lib/wine/x86_64-unix/ntdll.so' (no such file), '/Users/gcenx/../lib/wine/x86_64-unix/ntdll.so' (no such file)
That also affects the symlinks installed into $PREFIX/bin
If I run $PREFIX/lib/wine/x86_64-unix/wine that works.
If I set
export WINEDLLPATH="$PREFIX/lib/wine/x86_64-windows:$PREFIX/lib/wine/i386-windows:$PREFIX/lib/wine/x86_64-unix"
wine starts woking again
https://bugs.winehq.org/show_bug.cgi?id=57874
Gcenx gcenx83@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |8c3f205696571558a6fae423143 | |70fbd7cc14a12
https://bugs.winehq.org/show_bug.cgi?id=57874
--- Comment #1 from Alexandre Julliard julliard@winehq.org --- Most likely because macOS will need a proper implementation of get_bindir().
https://bugs.winehq.org/show_bug.cgi?id=57874
--- Comment #2 from Gcenx gcenx83@gmail.com --- Also if I run $PREFIX/bin/wine that works, but when trying to run wine from $PATH it doesn't work.
I'd assume that more or less confirms your suspicion
https://bugs.winehq.org/show_bug.cgi?id=57874
Gcenx gcenx83@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|9.12 |10.2
https://bugs.winehq.org/show_bug.cgi?id=57874
Brendan Shanks bshanks@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bshanks@codeweavers.com
--- Comment #3 from Brendan Shanks bshanks@codeweavers.com --- _NSGetExecutablePath() fits the bill, give MR7448 a try: https://gitlab.winehq.org/wine/wine/-/merge_requests/7448
https://bugs.winehq.org/show_bug.cgi?id=57874
--- Comment #4 from Gcenx gcenx83@gmail.com --- (In reply to Brendan Shanks from comment #3)
_NSGetExecutablePath() fits the bill, give MR7448 a try: https://gitlab.winehq.org/wine/wine/-/merge_requests/7448
Did some quick testing and that seems to resolve the bug