Python 2.7.2 on AIX 6.1: Unable to compile with ctypes

eroussel emmanuelrousselle at gmail.com
Tue Aug 16 14:32:35 EDT 2011


Hello,

I'm trying to figure out the recipe to compile Python 2.7.2 on AIX 6.1
with the ctypes module. I'm using the xlc_r compiler V9.0.

I am currently able to generate an interpreter that works, but lacks
the ctypes module because of compilation errors. From looking at the
newgroup posts and bugs.python.org, there seems to be an issue with
Python, libffi and AIX.

Is the ctypes modules simply unsupported on AIX?

These are the compilation error messages I get:

"/sapdepot/HP_to_IBM/t154133/build/Python-2.7.2/Modules/_ctypes/libffi/
src/powerpc/ffi.c", line 146.25: 1506-045 (S) Undeclared identifier
FFI_LINUX_SOFT_FLOAT.
"/sapdepot/HP_to_IBM/t154133/build/Python-2.7.2/Modules/_ctypes/libffi/
src/powerpc/ffi.c", line 607.19: 1506-045 (S) Undeclared identifier
FFI_LINUX_SOFT_FLOAT.
"/build/Python-2.7.2/Modules/_ctypes/libffi/src/powerpc/ffi.c", line
610.19: 1506-045 (S) Undeclared identifier FFI_LINUX64.
"/build/Python-2.7.2/Modules/_ctypes/libffi/src/powerpc/ffi.c", line
674.23: 1506-045 (S) Undeclared identifier FFI_SYSV.
"/Python-2.7.2/Modules/_ctypes/libffi/src/powerpc/ffi.c", line 908.10:
1506-045 (S) Undeclared identifier FFI_SYSV.
"/build/Python-2.7.2/Modules/_ctypes/libffi/src/powerpc/ffi.c", line
908.10: 1506-051 (S) Case expression must be a valid integral
constant.
"/build/Python-2.7.2/Modules/_ctypes/libffi/src/powerpc/ffi.c", line
909.10: 1506-045 (S) Undeclared identifier FFI_GCC_SYSV.
"/build/Python-2.7.2/Modules/_ctypes/libffi/src/powerpc/ffi.c", line
909.10: 1506-051 (S) Case expression must be a valid integral
constant.
"/build/Python-2.7.2/Modules/_ctypes/libffi/src/powerpc/ffi.c", line
910.10: 1506-045 (S) Undeclared identifier FFI_LINUX.
"/build/Python-2.7.2/Modules/_ctypes/libffi/src/powerpc/ffi.c", line
910.10: 1506-051 (S) Case expression must be a valid integral
constant.
"/build/Python-2.7.2/Modules/_ctypes/libffi/src/powerpc/ffi.c", line
911.10: 1506-045 (S) Undeclared identifier FFI_LINUX_SOFT_FLOAT.
"/build/Python-2.7.2/Modules/_ctypes/libffi/src/powerpc/ffi.c", line
911.10: 1506-051 (S) Case expression must be a valid integral
constant.
"/build/Python-2.7.2/Modules/_ctypes/libffi/src/powerpc/ffi.c", line
1033.26: 1506-045 (S) Undeclared identifier FFI_SYSV.
"/build/Python-2.7.2/Modules/_ctypes/libffi/src/powerpc/ffi.c", line
1159.27: 1506-045 (S) Undeclared identifier FFI_LINUX_SOFT_FLOAT.

and then:

Failed to build these modules:
_ctypes





More information about the Python-list mailing list