[issue5289] ctypes.util.find_library does not work under Solaris

Skip Montanaro report at bugs.python.org
Sun Jan 27 01:23:38 CET 2013


Skip Montanaro added the comment:

Is there still time to get this bug fixed in 2.7.3? I patched my 2.7 ctypes/util.py with the latest version (offset a few lines, but no other problems) and verified that it seems to fix the issue.  When running util.py as a main program I see this before running patch:

% python /opt/TWWfsw/python27/lib/python2.7/ctypes/util.py
None
None
None
<CDLL 'libm.so', handle fed807b8 at 82c320c>
<CDLL 'libcrypt.so', handle feb703a8 at 82c320c>
None

After applying the patch:
% python /opt/TWWfsw/python27/lib/python2.7/ctypes/util.py
libm.so.2
libc.so.1
libbz2.so.1
<CDLL 'libm.so', handle fed807b8 at 82c296c>
<CDLL 'libcrypt.so', handle feb703a8 at 82c296c>
libcrypt_d.so.1

----------
nosy: +skip.montanaro

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5289>
_______________________________________


More information about the Python-bugs-list mailing list