[mod_python] Problems building mod_python 3.0.3 on FreeBSD 4.8-STABLE

Adam Wood woodfucius at comcast.net
Mon Oct 20 20:21:31 EST 2003


I am having some trouble getting mod_python 3.0.3 to compile on my 
system.  The OS is FreeBSD 4.8-STABLE, last buildworld was on 22AUG03. 
Apache version is 2.0.47 and Python version is 2.3.2 - both were built 
from ports.  I know there is a port for mod_python 2.7.8, but I would 
rather run the newest version and anyway the port complains about 
building Python with WITHOUT-THREADS set no matter if I set it or not. 
I have included the output from ./configure and make below.  Any ideas?

woodfucius# ./configure
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ar... (cached) ar
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking for main in -lm... (cached) yes
checking for working const... (cached) yes
checking your blood pressure... a bit high, but we can proceed
checking whether apxs is available
checking for --with-apxs... no
checking for apxs in /usr/local/apache/sbin... no
checking for apxs in your PATH... checking for apxs... (cached) 
/usr/local/sbin/apxs
found /usr/local/sbin/apxs, we'll use this. Use --with-apxs to specify 
another.
checking Apache version... 2.0.47
checking for Apache libexec directory... /usr/local/libexec/apache2
checking for Apache include directory... -I/usr/local/include/apache2
checking for --with-python... no
checking for python... (cached) /usr/local/bin/python
checking Python version... 2.3
checking Python install prefix... /usr/local
checking for Py_NewInterpreter in -lpython2.3... (cached) no
checking what libraries Python was linked with... 
/usr/local/lib/python2.3/config/libpython2.3.a    -lutil   -lm
checking linker flags used to link Python...
checking where Python include files are... -I/usr/local/include/python2.3
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating Doc/Makefile
creating test/testconf.py
creating dist/setup.py
creating dist/Makefile
woodfucius# make

Compiling for DSO.

/usr/local/sbin/apxs -I/usr/home/wood/mod_python-3.0.3/src/include 
-I/usr/local/include/apache2 -I/usr/local/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 
-Wl,--export-dynamic   -pthread -lm 
/usr/local/lib/python2.3/config/libpython2.3.a    -lutil   -lm
/usr/local/share/apache2/build/libtool --silent --mode=compile cc 
-prefer-pic -O -pipe -DAP_HAVE_DESIGNATED_INITIALIZER -D_REENTRANT 
-D_THREAD_SAFE  -I/usr/local/include/apache2 
-I/usr/local/include/apache2   -I/usr/local/include/apache2 
-I/usr/local/include -I/usr/home/wood/mod_python-3.0.3/src/include 
-I/usr/local/include/apache2 -I/usr/local/include/python2.3  -c -o 
mod_python.lo mod_python.c && touch mod_python.slo
/usr/local/share/apache2/build/libtool --silent --mode=compile cc 
-prefer-pic -O -pipe -DAP_HAVE_DESIGNATED_INITIALIZER -D_REENTRANT 
-D_THREAD_SAFE  -I/usr/local/include/apache2 
-I/usr/local/include/apache2   -I/usr/local/include/apache2 
-I/usr/local/include -I/usr/home/wood/mod_python-3.0.3/src/include 
-I/usr/local/include/apache2 -I/usr/local/include/python2.3  -c -o 
_apachemodule.lo _apachemodule.c && touch _apachemodule.slo
/usr/local/share/apache2/build/libtool --silent --mode=compile cc 
-prefer-pic -O -pipe -DAP_HAVE_DESIGNATED_INITIALIZER -D_REENTRANT 
-D_THREAD_SAFE  -I/usr/local/include/apache2 
-I/usr/local/include/apache2   -I/usr/local/include/apache2 
-I/usr/local/include -I/usr/home/wood/mod_python-3.0.3/src/include 
-I/usr/local/include/apache2 -I/usr/local/include/python2.3  -c -o 
requestobject.lo requestobject.c && touch requestobject.slo
requestobject.c: In function `getreq_recmbr_off':
requestobject.c:1055: `LONG_LONG' undeclared (first use in this function)
requestobject.c:1055: (Each undeclared identifier is reported only once
requestobject.c:1055: for each function it appears in.)
requestobject.c:1056: syntax error before `l'
requestobject.c:1057: `l' undeclared (first use in this function)
requestobject.c: At top level:
requestobject.c:1270: warning: initialization from incompatible pointer type
apxs:Error: Command failed with rc=65536
.
*** Error code 1

Stop in /usr/home/wood/mod_python-3.0.3/src.
*** Error code 1

Stop in /usr/home/wood/mod_python-3.0.3.
woodfucius#



More information about the Mod_python mailing list