[mod_python] Building on solaris with gcc

Ron Reisor ron at udel.edu
Tue Jan 23 10:41:07 EST 2007

Graham is correct, it's very important the that the apache and resultant 
libtool configuration match your mod_python configuration. We're running 
mod_python-3.3.0b on Solaris 10 sparc, but it and apache are built using 
the Sun C compiler. You should be able to get it working with gcc but I 
haven't tried that.



On Tue, 23 Jan 2007, Graham Dumpleton wrote:

> Run:
>  apxs -q CC
> If you get back:
>  cc
> it usually means that your Apache was compiled with Sun C compiler and not
> with gcc. This means that the version of libtool embedded within Apache
> installation is also configured for Sun C compiler and not gcc. The Sun C
> compiler setup is incompatible because the options to each compiler are
> different for building shared objects and libraries.
> Your options are to rebuild Apache using gcc instead of Sun C compiler, or
> make a copy of various bits of Apache build scripts and libtool and change
> them so they will work with gcc instead. I have done the latter before and
> it is a bit of a fiddle, so rebuilding Apache with gcc is prefered option.
> If you really want to try the second approach of hacking Apache build
> scripts and libtool I can dig up my stuff on that, but will not have time until
> tomorrow to do that.
> You were able to build mod_perl because it probably ignores libtool and
> does compiling of code files itself.
> Graham
> Marc Boorshtein wrote ..
>> Hello,
>> I'm trying to build mod_python on solaris 8 with gcc.  I was able to
>> build mod_perl with gcc, so this should work and I'm sure I'm missing
>> something.  Configure succeeds, but make gives me the following
>> errors:
>> bash-2.03$ make
>> make[1]: Entering directory `/clocal/users/users/mlb/mod_python-3.2.10/src'
>> ar -x `gcc -print-libgcc-file-name` _eprintf.o
>> ar -x `gcc -print-libgcc-file-name` _floatdidf.o
>> ar -x `gcc -print-libgcc-file-name` _muldi3.o
>> Compiling for DSO.
>> /clocal/users/users/mlb/ihs-6.1/bin/apxs
>> -I/clocal/users/users/mlb/mod_python-3.2.10/src/include
>> -I/clocal/users/users/mlb/ihs-6.1/include
>> -I/global/site/vendor/cci/python/include/python2.5 -c mod_python.c
>> _apachemodule.c requestobject.c tableobject.c util.c serverobject.c
>> connobject.c filterobject.c hlist.c hlistobject.c -lgcc    -lm
>> /global/site/vendor/cci/python/lib/python2.5/config/libpython2.5.a
>> _eprintf.o _floatdidf.o _muldi3.o
>> /clocal/users/users/mlb/ihs-6.1/build/libtool --silent --mode=compile
>> -g -I/clocal/users/users/mlb/ihs-6.1/include
>> -I/clocal/users/users/mlb/ihs-6.1/include
>> -I/clocal/users/users/mlb/ihs-6.1/include
>> -I/clocal/users/users/mlb/mod_python-3.2.10/src/include
>> -I/clocal/users/users/mlb/ihs-6.1/include
>> -I/global/site/vendor/cci/python/include/python2.5  -c -o
>> mod_python.lo mod_python.c && touch mod_python.slo
>> /clocal/users/users/mlb/ihs-6.1/build/libtool: cc: not found
>> apxs:Error: Command failed with rc=65536
>> .
>> make[1]: *** [mod_python.so] Error 1
>> make[1]: Leaving directory `/clocal/users/users/mlb/mod_python-3.2.10/src'
>> make: *** [do_dso] Error 2
>> I'm sure I've missed something.  I set CC=gcc.  Any help would be
>> greatly appreciated.
>> Thanks
>> Marc
>> _______________________________________________
>> Mod_python mailing list
>> Mod_python at modpython.org
>> http://mailman.modpython.org/mailman/listinfo/mod_python
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python

Ron Reisor <ron at udel.edu> (RWR3)
University of Delaware Information Technologies/Network and Systems Services
Computing Center/192 South Chapel Street/Newark DE, 19716
pgp finger print: 0D 73 06 6F D3 6A 99 D3  F5 D5 6E FF 3B B9 7C 2C

More information about the Mod_python mailing list