Python 2.7.2 on AIX 6.1: Unable to compile with ctypes

E

eroussel

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,068
Latest member
MakersCBDIngredients

Latest Threads

Top