[go: up one dir, main page]

Menu

#269 ldd doesn't show all dll dependencies

1.0
closed
nobody
2016-07-07
2016-06-29
Dmitriy
No

Hi, I'm not sure if it's new udate of MSYS2 or Windows 10 causing it, or something else. Last time I used ldd it was in Windows 7 and with previous version of MSYS2 and it was listing all dll dependencies. Today as I run it it only showed:
$ ldd ML_RnD.exe
ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ffe474a0000)
KERNEL32.DLL => /c/Windows/system32/KERNEL32.DLL (0x7ffe45610000)
KERNELBASE.dll => /c/Windows/system32/KERNELBASE.dll (0x7ffe44530000)

Program uses Qt and SDL libraries and obviously need to use all the libwinpthread-1.dll, libicudt57.dll, etc. to run. ldd command used to display all of those, now it doesn't. I tried running commnad with needed dlls in the same folder with executable and without them and got same result.
I had to use dependencyWalker which is always a pain to use to find them all.
I'm wondering, am I missing something to have ldd work properly?
Please let me know if you need more info about my system.

Discussion

  • David Macek

    David Macek - 2016-06-30

    I compared two fully up-to-date 64-bit installations, one on Win8.x, other on Win10 insider. The one on Win8 displayed all dependencies, while the one on Win10 showed only the three you posted. I have reported this to the Cygwin ML. https://sourceware.org/ml/cygwin/2016-06/msg00450.html

    I'll try to find out what's going on today, but I can't promise anything.

     
  • David Macek

    David Macek - 2016-06-30

    You can try using cygcheck and/or ntldd in the meantime. I have not tested them, but they generally give different results than ldd.

     
  • Dmitriy

    Dmitriy - 2016-07-01

    Thank you.
    ntldd seems to be only shows direct dependencies of executable, but not dll that those dll are dependent and cygcheck semms to be showing them all.
    Thanks for your help.

     
  • David Macek

    David Macek - 2016-07-07

    Should be solved in the next version of Cygwin/MSYS2, thanks for reporting.

     
  • David Macek

    David Macek - 2016-07-07
    • status: open --> closed