[Python-Dev] Compiling 2.5.1 under Studio 11

2007-06-08 Thread Ellinghaus, Lance
Hello,

I am having a couple of issues compiling Python 2.5.1 under Sun Solaris
Studio 11 on Solaris 8.

Everything compiles correctly except the _ctypes module because it
cannot use the libffi that comes with Python and it does not exist on
the system.
Has anyone gotten it to compile correctly using Studio 11? I know it
will compile under GCC but I am not allowed to use GCC.

Also, during the pyexpat tests, Python generates a segfault. 

Are there any patches to fix these?

Thank you,

Lance


___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Problems compiling 2.6.1 on Solaris 10

2008-12-22 Thread Ellinghaus, 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.

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

___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Problems compiling 2.6.1 on Solaris 10

2008-12-23 Thread Ellinghaus, Lance
Martin,
Thank you very much. At least I know what I need to do now. 

> From: "Martin v. Löwis" [mailto:mar...@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

___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com