Graham Dumpleton
grahamd at dscpl.com.au
Tue Jan 23 01:00:39 EST 2007
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 > cc -prefer-pic -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT > -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
|