Building Python on Solaris 10?

M.-A. Lemburg mal at egenix.com
Thu Oct 29 05:14:44 EDT 2009


Judy Booth 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 
> LDFLAGS="-s
> -L/usr/local/lib -L/opt/ssl/lib -lgcc" --prefix=/opt/python
> --prefix=${PREFIX}
> 
> and the compiler version is gcc 3.4.3.

Why are you building with "--with-universal-archs=64-bit
--enable-universalsdk" on Solaris ?

Those options should only be used for Mac OS X.

Python currently does not support building universal binaries
on Solaris.

If you're still having problems, you might want to look at this
patch:

http://bugs.python.org/issue1628484

If it works for you, please add a comment.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Oct 29 2009)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/



More information about the Python-list mailing list