[issue45898] ctypes cfield.c defines duplicate ffi_type_* symbols

Steve Dower report at bugs.python.org
Fri Nov 26 14:45:13 EST 2021


Steve Dower <steve.dower at python.org> added the comment:

This is because we use libffi as a DLL and you can't statically reference dynamically loaded addresses on Windows.

You could change that format table to be initialised on first use, or resolve the FFI type lazily. Or change ctypes to statically link libffi (including updating our FFI build, which IIRC is the one that requires Cygwin, to generate static libraries instead of dynamic) - we can't backport this change, either, because it affects the layout on disk.

----------

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


More information about the Python-bugs-list mailing list