[mod_python] php and mod_python compile problems with apache

Bryan O'Shea bryan at optimumnetwork.com
Tue Aug 29 14:48:53 EST 2000


i am having troubles building with php-4.0.1pl2 and mod_python-2.4.1
i compiled installed php then followed installs instructions for
mod_python then went to build apache with

./configure --prefix=/home/apache
--activate-module=src/modules/extra/mod_python.c \
--activate-module=src/modules/php4/libphp4.a

if i build with one or the other the build turns out ok. when i
build both modules together it flops


any help would be apreciated
thanks

************************************************************************************************

<=== src/modules/standard
===> src/modules/extra
gcc -c -I/usr/local/include/python1.5 -I../../os/unix -I../../include
-DLINUX=2 -I/home/bryan/src/php-4.0.1pl2
-I/home/bryan/src/php-4.0.1pl2/main -I/home/bryan/src/php-4.0.1pl2/main
-I/home/bryan/src/php-4.0.1pl2/Zend -I/home/bryan/src/php-4.0.1pl2/Zend
-I/home/bryan/src/php-4.0.1pl2 -DUSE_EXPAT -I../../lib/expat-lite
-DNO_DL_NEEDED `../../apaci` mod_python.c
rm -f libextra.a
ar cr libextra.a mod_python.o
ranlib libextra.a
<=== src/modules/extra
===> src/modules/php4
gcc -c -I/usr/local/include/python1.5 -I../../os/unix -I../../include
-DLINUX=2 -I/home/bryan/src/php-4.0.1pl2
-I/home/bryan/src/php-4.0.1pl2/main -I/home/bryan/src/php-4.0.1pl2/main
-I/home/bryan/src/php-4.0.1pl2/Zend -I/home/bryan/src/php-4.0.1pl2/Zend
-I/home/bryan/src/php-4.0.1pl2 -DUSE_EXPAT -I../../lib/expat-lite
-DNO_DL_NEEDED `../../apaci`  mod_php4.c
cp libmodphp4.a libphp4.a
ar r libphp4.a mod_php4.o
ranlib libphp4.a
<=== src/modules/php4
<=== src/modules
gcc -c -I/usr/local/include/python1.5 -I./os/unix -I./include
-DLINUX=2 -I/home/bryan/src/php-4.0.1pl2
-I/home/bryan/src/php-4.0.1pl2/main -I/home/bryan/src/php-4.0.1pl2/main
-I/home/bryan/src/php-4.0.1pl2/Zend -I/home/bryan/src/php-4.0.1pl2/Zend
-I/home/bryan/src/php-4.0.1pl2 -DUSE_EXPAT -I./lib/expat-lite
-DNO_DL_NEEDED `./apaci` modules.c
gcc -c -I/usr/local/include/python1.5 -I./os/unix -I./include
-DLINUX=2 -I/home/bryan/src/php-4.0.1pl2
-I/home/bryan/src/php-4.0.1pl2/main -I/home/bryan/src/php-4.0.1pl2/main
-I/home/bryan/src/php-4.0.1pl2/Zend -I/home/bryan/src/php-4.0.1pl2/Zend
-I/home/bryan/src/php-4.0.1pl2 -DUSE_EXPAT -I./lib/expat-lite
-DNO_DL_NEEDED `./apaci` buildmark.c
gcc  -DLINUX=2 -I/home/bryan/src/php-4.0.1pl2
-I/home/bryan/src/php-4.0.1pl2/main -I/home/bryan/src/php-4.0.1pl2/main
-I/home/bryan/src/php-4.0.1pl2/Zend -I/home/bryan/src/php-4.0.1pl2/Zend
-I/home/bryan/src/php-4.0.1pl2 -DUSE_EXPAT -I./lib/expat-lite
-DNO_DL_NEEDED `./apaci` -Xlinker -export-dynamic       \
      -o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/extra/libextra.a modules/php4/libphp4.a main/libmain.a
./os/unix/libos.a ap/libap.a  lib/expat-lite/libexpat.a
-Wl,-rpath,/usr/local/mysql/lib/mysql -Wl,-rpath,/usr/local/pgsql/lib
-rdynamic -L/usr/local/mysql/lib/mysql -L/usr/local/pgsql/lib
-Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4  -lgdbm
-lpam  -ldl -lpq -lmysqlclient -lresolv -lm -ldl -lcrypt -lnsl
-lresolv  -lm -lcrypt /usr/local/lib/python1.5/config/libpython1.5.a
-lieee -lnet -ldl  -lpthread   -lm
/usr/local/lib/python1.5/config/libpython1.5.a(pypcre.o): In function
`pcre_study':
/home/bryan/src/Python-1.5.2/Modules/./pypcre.c:501: multiple definition

of `pcre_malloc'
modules/php4/libphp4.a(pcre.o):/home/bryan/src/php-4.0.1pl2/ext/pcre/pcrelib/pcre.c:238:

first defined here
/usr/local/lib/python1.5/config/libpython1.5.a(pypcre.o): In function
`pcre_study':
/home/bryan/src/Python-1.5.2/Modules/./pypcre.c:501: multiple definition

of `pcre_free'
modules/php4/libphp4.a(pcre.o):/home/bryan/src/php-4.0.1pl2/ext/pcre/pcrelib/pcre.c:238:

first defined here
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/bryan/src/apache_1.3.12/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/bryan/src/apache_1.3.12'
make: *** [build] Error 2








More information about the Mod_python mailing list