Hi
I am trying to get mod_wsgi installed on a production server.
Apache: 1.3.37
Kernel: 2.6.17.13-vs2.0.2.1vs-1.00
Os: CentOS 4.8
Following instructions from:
http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide
at the point with:
./configure --with-apxs=/usr/local/apache/bin/apxs
--with-python=/usr/local/bin/python2.5
then: 'make' produces the error:
-------------------------------------------------------------------
/usr/local/apache/bin/apxs -c -I/usr/local/include/python2.5 -DNDEBUG
mod_wsgi.c -L/usr/local/lib/python2.5/config -lpython2.5 -lpthread
-ldl -lutil
gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/gdbm
-DMOD_SSL=208128 -DUSE_HSREGEX -DEAPI -fpic -DSHARED_MODULE
-I/usr/local/apache/include -I/usr/local/include/python2.5 -DNDEBUG
-c mod_wsgi.c
In file included from /usr/local/include/python2.5/Python.h:8,
from mod_wsgi.c:113:
/usr/local/include/python2.5/pyconfig.h:942:1: warning:
"_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/local/apache/include/ap_config.h:46,
from /usr/local/apache/include/httpd.h:30,
from mod_wsgi.c:34:
/usr/include/features.h:190:1: warning: this is the location of the
previous definition
gcc -shared -o mod_wsgi.so mod_wsgi.o
-L/usr/local/lib/python2.5/config -lpython2.5 -lpthread -ldl -lutil
-------------------------------------------------------------------
What sort of problem is occurring here?
I have installed centos 'Development Tools' as I have never had much
luck compiling anything on an RPM red hat style system (usually an
unusual compile error).
I cant find an apache source to download using yum (the compile may need it)
With debian the package is something like 'apache2-src' .
I can produce more verbose output of the packages already installed if needed.
cheers