debugging DLL dependency issues

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

debugging DLL dependency issues

Antoine Martin
Hi,

It seems that the 64-bit version of the gtkglext package is missing
something as we are unable to load one of the DLL it installs:

pacman -S mingw-w64-x86_64-gtkglext
python -c 'from ctypes import
cdll;cdll.LoadLibrary("C:\\msys64\\mingw64\\bin\\libgdkglext-win32-1.0-0.dll")'

fails with:
WindowsError: [Error 127] The specified procedure could not be found

The 32-bit version does not have this problem.
ldd doesn't show anything missing, depends.exe does show some problems
with libgdk_pixbuf - but I'm not sure I trust this ancient tool.
(and gdk_pixbuf is there of course)

Questions:
* what is the best way to check that a DLL is valid and has all its
required dependencies installed? (I use python here but surely there is
a better way?)
* can I trace the DLL loading to see where it is failing?
* since this problem does not affect the 32-bit version, it is fair to
assume that something is going wrong during building / linking - are
there any specific gotchas to look for?

Thanks
Antoine

PS: MSYS2 is awesome!

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: debugging DLL dependency issues

Keith Marshall
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 23/01/17 12:58, Antoine Martin wrote:
> PS: MSYS2 is awesome!

In your opinion ... some may beg to differ!  In any case, it is
not a MinGW.org product, and neither it, nor the 64-bit tools you
are using, are supported on this mailing list.

- --
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJYhg1VAAoJEMCtNsY0flo/gacQAK9bi+k6g1URZ5vSUhU33KoK
5axbUxO/+fN0+gNSZ465BA22R8Ui30JIj9T/Rzcya4poDrnnvZNvS343/4rPpp14
wLqDGxfNek4u1JjifUGv3rRuJ38LitrVKktuD5rJv6KWGAxjA7DZImOpHYUP96bC
aNJJRzXndBuxIW5zDQl/dCZWcCuI9LwLohr7T85PYp3G1zlQUdewv3FcvKW7gzMw
fG+1eUt8DHBkzQFMqjWGDRClGJrl3gubm1Hjb1WlIYngbwo63IVmuwzIx3D4Hozc
19B78vEST7Eli+KWLoxlsEttHO7Bj0zAIXHFutqzNUJ/ZxWLSA62/kIRzSUuX6gg
HC0cESwIQ5sE03gAofkGlpiuzpxM8LyVkkXmRi2zhZUFMmjIuQg4/5EmqzqCpJmJ
bMQW+T1+mS5X9LwmUMm8bFlhObPcze9ZEK531QlNShhvU9jfxbIAVcqXlD295Pd9
X04DPYURFEjPaww8ovyab46Aufc6ZnGA0e09cAyihowIcOh8xVdtQQPwLRQc8eu7
xMBFwoU4d7Gv2Mm31QimFnWQHrdC2nLLyGtpwjeGiBKEmAIEwlKq7iLyHTWCD0Tl
Nebt7vmkjG78waO0XdbVbx7MnrsUSGbdIXAtuYR49wtiCu+d2dOAK2CGjKMs2d/k
Xh5CSc+lEGcWC16FbKFV
=PVBp
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe