[mod_python] undefined reference to Py_... error compiling apache

Norman Boccone norm at streamtheory.com
Thu Jan 4 22:29:02 EST 2001


I am on Solaris trying to compile mod_python 2.7.1 into apache 1.3.14.  
Compiling of python and mod_python are fine, make test on python is 
fine.  When I try to make apache I get the following errors:

gcc  -DSOLARIS2=270 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED 
`./apaci`    \
     -o httpd buildmark.o modules.o modules/python/libpython.a 
modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a 
ap/libap.a  lib/expat-lite/libexpat.a  -lsocket -lnsl
modules/python/libpython.a(mod_python.o): In function `make_interpreter':
mod_python.o(.text+0xa7): undefined reference to `Py_NewInterpreter'
mod_python.o(.text+0xe6): undefined reference to `PyThreadState_Swap'
modules/python/libpython.a(mod_python.o): In function 
`get_interpreter_data':
mod_python.o(.text+0x124): undefined reference to `PyDict_GetItemString'
...and a bunch more like this

Any idea how I can fix it?  I thought I followed the instructions exactly.




More information about the Mod_python mailing list