Problems compiling 2.6.1 on Solaris 10

I am hoping someone can assist me. I normally don't care if the _ctypes module builds or not, but I now need to have it build. I am running Solaris 10 with Sun's C compiler under SunStudio 11. After running 'configure' and 'make', the _ctypes module fails with the following error: cc -xcode=pic32 -DNDEBUG -O -I. -I/data/python/Python-2.6.1/./Include -Ibuild/temp.solaris-2.10-sun4u-2.6/libffi/include -Ibuild/temp.solaris-2.10-sun4u-2.6/libffi -I/data/python/Python-2.6.1/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/local/include -I/data/python/Python-2.6.1/Include -I/data/python/Python-2.6.1 -c /data/python/Python-2.6.1/Modules/_ctypes/_ctypes.c -o build/temp.solaris-2.10-sun4u-2.6/data/python/Python-2.6.1/Modules/_ctyp es/_ctypes.o "build/temp.solaris-2.10-sun4u-2.6/libffi/include/ffi.h", line 257: syntax error before or at: __attribute__ "build/temp.solaris-2.10-sun4u-2.6/libffi/include/ffi.h", line 257: warning: old-style declaration or incorrect type for: __attribute__ "build/temp.solaris-2.10-sun4u-2.6/libffi/include/ffi.h", line 257: warning: syntax error: empty declaration "/data/python/Python-2.6.1/Modules/_ctypes/_ctypes.c", line 187: cannot recover from previous errors cc: acomp failed for /data/python/Python-2.6.1/Modules/_ctypes/_ctypes.c Is there anything special I have to do to get it to compile under Solaris 10 and SunStudio 11? BTW: I cannot use GCC. Thank you very much, Lance

I am hoping someone can assist me. I normally don’t care if the _ctypes module builds or not, but I now need to have it build.
I am running Solaris 10 with Sun’s C compiler under SunStudio 11.
I don't think ctypes (rather, libffi) supports Sun C. You will need to port it (as you have already ruled out the other options, such as using gcc, or not using ctypes). Regards, Martin

Martin v. Löwis wrote:
I am hoping someone can assist me. I normally don’t care if the _ctypes module builds or not, but I now need to have it build.
I am running Solaris 10 with Sun’s C compiler under SunStudio 11.
I don't think ctypes (rather, libffi) supports Sun C. You will need to port it (as you have already ruled out the other options, such as using gcc, or not using ctypes).
There is also an existing issue relating to this: http://bugs.python.org/issue2552 (although it doesn't add much beyond what Martin already said) Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia ---------------------------------------------------------------

Martin, Thank you very much. At least I know what I need to do now.
From: "Martin v. Löwis" [mailto:martin@v.loewis.de] I don't think ctypes (rather, libffi) supports Sun C. You will need to port it (as you have already ruled out the other options, such as using gcc, or not using ctypes).
Lance
participants (3)
-
"Martin v. Löwis"
-
Ellinghaus, Lance
-
Nick Coghlan