[New-bugs-announce] [issue23042] Python 2.7.9 ctypes module doesn't build on FreeBSD x86

Marc-Andre Lemburg report at bugs.python.org
Fri Dec 12 21:40:59 CET 2014


New submission from Marc-Andre Lemburg:

With Python 2.7.8, ctypes builds fine on FreeBSD x86, but with Python 2.7.9, the build fails with:

*** WARNING: renaming "_ctypes" since importing it failed: build/lib.freebsd-8.3-RELEASE-p3-i386-2.7/_ctypes.so: Undefined symbol "ffi_call_win32"

Since this is FreeBSD, there shouldn't really be any calls to ffi_call_win32() in the _ctypes module or libffi.

Looking at the code changes in libffi/src/x86/ffi.c, it looks as if some of the #ifdefs for X86_WIN64 and X86_WIN32 were mixed up, causing calls to the Windows function to be compiled on FreeBSD x86, without also compiling the function definition in the same file.

----------
components: Build, ctypes
messages: 232574
nosy: lemburg
priority: normal
severity: normal
status: open
title: Python 2.7.9 ctypes module doesn't build on FreeBSD x86
versions: Python 2.7

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


More information about the New-bugs-announce mailing list