[PATCH] winegcc: Add rpaths to help the macOS loader find ntdll.so.

Huw Davies huw at codeweavers.com
Fri Aug 20 09:02:29 CDT 2021


On Fri, Aug 20, 2021 at 09:45:17AM -0400, Dean Greer wrote:
> This seems strange to me as I don't get this issue. Could this be related to a
> newer version of Apple cctools/Xcode?, could you give an example of what you
> attempt to run and get an issue with not finding ntdll.so?

This is with the command-line tools from Xcode 9 (32-bit) on Mojave.

Simply running "./wine notepad" with the current git from the build tree
produces messages like:
0040:err:rpc:rpcrt4_ncacn_np_handoff Failed to retrieve the computer name, error 2
which is due to the ws2_32.so unixlib being unable to load ntdll.so.

% otool -l dlls/ntdll/ntdll.so
[...]
          cmd LC_ID_DYLIB
      cmdsize 44
         name dlls/ntdll/ntdll.so (offset 24)
[...]

% otool -l dlls/ws2_32/ws2_32.so
[...]
         cmd LC_LOAD_DYLIB
      cmdsize 44
         name dlls/ntdll/ntdll.so (offset 24)
[...]

Huw.



More information about the wine-devel mailing list