[issue41976] ctypes.util.find_library fails with gcc 9

Pablo Galindo Salgado report at bugs.python.org
Thu Oct 8 13:17:51 EDT 2020


New submission from Pablo Galindo Salgado <pablogsal at gmail.com>:

Running ctypes.util.find_library with gcc-9, if ldconfig is not available, it falls back to check the output of gcc -Wl,-t -lc to locate the library and then runs objdump on the file it's found to parse out the SONAME. With the gcc-9 the output of that gcc command is slightly perturbed so that /lib64/libc.so is listed before /libc64/libc.so.6. The former is a linker script not and ELF file so objdump fails.

----------
assignee: pablogsal
components: ctypes
messages: 378258
nosy: pablogsal
priority: normal
severity: normal
status: open
title: ctypes.util.find_library fails with gcc 9
versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41976>
_______________________________________


More information about the Python-bugs-list mailing list