[issue21622] ctypes.util incorrectly fails for libraries without DT_SONAME

Martin Panter report at bugs.python.org
Sun Apr 24 23:20:15 EDT 2016


Martin Panter added the comment:

On Linux, the find_library() function is documented to return “the filename of the library file”, but in reality it seems it return the soname, and therefore breaks if there is no soname. I do not know why we extract the soname, but it has been that way at least since ctypes was added to Python 2.5.

What do you intend to do with the result of find_library()? See also Issue 9998, especially about searching LD_LIBRARY_PATH. I am struggling to see robust use cases for find_library().

----------
nosy: +martin.panter

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


More information about the Python-bugs-list mailing list