I am using AIX 5.3 xlc 9.0. I am unable to get the libffi section to build. It also happens with the separate libffi code, so I will try to report there as well. I get the following: cc_r -qlanglvl=extc89 -DNDEBUG -O -I. -I/appl/bwc/src/Python-2.6.1/./Include -Ibuild/temp.aix-5.3-2.6/libffi/include -Ibuild/temp.aix-5.3-2.6/libffi -I/appl/bwc/src/Python-2.6.1/Modules/_ctypes/libffi/src -I/appl/bwc/local2/include -I. -IInclude -I./Include -I/usr/local/include -I/appl/bwc/src/Python-2.6.1/Include -I/appl/bwc/src/Python-2.6.1 -c /appl/bwc/src/Python-2.6.1/Modules/_ctypes/libffi/src/powerpc/aix_closure.S -o build/temp.aix-5.3-2.6/appl/bwc/src/Python-2.6.1/Modules/_ctypes/libffi/src/powerpc/aix_closure.o Assembler: /tmp/xlcS00-Mgqd.s: line 111: undefined symbol ".ffi_closure_helper_DARWIN" /tmp/xlcS00-Mgqd.s: line 111: illegal expression type for branch address
ffi_closure_helper_DARWIN should have been declared "extern" in the assembly file. This has been fixed in more recent versions of libffi and imported into more recent versions of CPython, including 2.7. .extern .ffi_closure_helper_DARWIN Is it worth updating libffi.diff to insert the appropriate fix in 2.6 or not?