Building Python on Solaris 10?

ryles rylesny at
Thu Oct 29 03:53:11 CET 2009

On Oct 28, 3:46 pm, Judy Booth <J... at invalid.invalid> wrote:
> Can anyone point me towards some instructions for building Python on
> Solaris 10?
> We need this for some of our test scripts and so far we cannot get this
> to build.
> We have tried both Python 2.6.4 and 3.1.1 and both fail with messages
> like this:
> Include/pyport.h:685:2: #error "LONG_BIT definition appears wrong for
> platform (bad gcc/glibc config?)."
> *** Error code 1
> make: Fatal error: Command failed for target `Modules/python.o'
> The configure command used is:
> ./configure --with-universal-archs=64-bit --enable-universalsdk
> -L/usr/local/lib -L/opt/ssl/lib -lgcc" --prefix=/opt/python
> --prefix=${PREFIX}
> and the compiler version is gcc 3.4.3.
> A search on Google showed this up as a problem several years ago and
> suggested that there might be a problem with the way configure is working
> on Solaris.
> If anyone can help with this that would be great.
> Thanks,
> Judy

We never heard back from the OP of this thread, but you might try
building with cc instead of gcc:

More information about the Python-list mailing list