Graham Dumpleton
grahamd at dscpl.com.au
Wed Feb 28 16:03:47 EST 2007
Suryanarayana Murthy wrote .. > Hi, > > I have Apache 2.0.58 installed on my solaris server. > > I downloaded mod_python 3.3.1 and executed configure with the following > options > > ./configure with-apxs=/usr/apache2/bin/apxs > with-python=/usr/sfw/bin/python2.3 with-flex > > configure scripts executes succesfully. > > Later... when i run make I get the following error messages > > bash-3.00# make > > > > Compiling for DSO. > > > > /usr/apache2/bin/apxs -I/export/home/binaries/mod_python-3.3.1/src/include > -I/usr/apache2/include -I/usr/sfw/include/python2.3 -c mod_python.c > _apachemodule.c requestobject.c tableobject.c util.c serverobject.c > connobject.c filterobject.c hlist.c hlistobject.c > finfoobject.c-L/usr/sfw/lib/python2.3/config -z ignore -lm - > lpython2.3 -lresolv -lsocket -lnsl -lrt -ldl -lm _eprintf.o > _floatdidf.o _muldi3.o > > /var/apache2/build/libtool --silent --mode=compile /opt/SUNWspro/bin/cc > -prefer-pic -xO3 -xarch=v8 -xspace -W0,-Lt -W2,-Rcond_elim -Xa -xildoff > -DSSL_EXPERIMENTAL -DSSL_ENGINE -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS > -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -I/usr/apache2/include -I/usr/apache2/include -I/usr/apache2/include > -I/export/home/binaries/mod_python-3.3.1/src/include -I/usr/apache2/include > -I/usr/sfw/include/python2.3 -c -o mod_python.lo mod_python.c && touch > mod_python.slo > > /var/apache2/build/libtool: line 1279: /opt/SUNWspro/bin/cc: No such file > or > directory > > apxs:Error: Command failed with rc=65536 > > . > > *** Error code 1 > > make: Fatal error: Command failed for target `mod_python.so' > > Current working directory /export/home/binaries/mod_python-3.3.1/src > > *** Error code 1 > > The following command caused the error: > > cd src && make > > make: Fatal error: Command failed for target `do_dso' > > gcc is installed in /usr/sfw/bin and I have passed that information in > the > CC environment flags > > I Request help in getting this issues resolved. Your Apache installation was compiled with Sun C compiler and not GCC. The apxs configuration in Apache remembers this and thus all modules you try and compile for Apache must thereafter use Sun C compiler as well. Try adding the following at the beginning of your PATH. /opt/SUNWspro/bin This is where the Sun C compiler should be located if you have it installed. If you don't have access to Sun C compiler, the simple choice is to rebuild and reinstall Apache using GCC and then try again. Graham
|