[issue32647] Undefined references when compiling ctypes

Charalampos Stratakis report at bugs.python.org
Wed Jan 24 05:27:29 EST 2018


New submission from Charalampos Stratakis <cstratak at redhat.com>:

Original bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1537489

As soon as strict symbol checking was enabled on the development branch of Fedora, our build of CPython started failing due to undefined symbols when compiling ctypes.

Build log is attached.

That seems to be because ctypes are not explicitly linked against -ldl.

This can be fixed by adding the -ldl flag at https://github.com/python/cpython/blob/master/setup.py#L1935 , not sure though how portable that is.

----------
files: build.log
messages: 310583
nosy: cstratak
priority: normal
severity: normal
status: open
title: Undefined references when compiling ctypes
versions: Python 3.6, Python 3.7, Python 3.8
Added file: https://bugs.python.org/file47407/build.log

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


More information about the Python-bugs-list mailing list