LQ Newbie
Registered: Jan 2011
Posts: 26
Original Poster
Rep:
|
i am trying to install a software called indico which needs apache and mod_python and python 2.6+ installed to use the indico software.
But i having trouble when installing the mod_python. when i follow the instructions given in the README file on it to configure and install to be used with apache i get this error.
the version of redhat i have is Red Hat 4.4.5-6, Linux version 2.6.32-131.12.1.el6.i686 and the version of mod_python is 3.2+. The mod_python could not be found using yum. so, the mod_python tar file was used to install.
I am able to configure as given in the README file but when i use the make command i get the following error message.
# make
make[1]: Entering directory `/root/mod_python-3.2.10/src'
Compiling for DSO.
/usr/local/apache2/bin/apxs -I/root/mod_python-3.2.10/src/include -I/usr/local/apache2//include -I/usr/include/python2.6 -c mod_python.c _apachemodule.c requestobject.c tableobject.c util.c serverobject.c connobject.c filterobject.c hlist.c hlistobject.c -L/usr/lib/python2.6/config -Xlinker -export-dynamic -lm -lpython2.6 -lpthread -ldl -lutil -lm
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/local/apache2//include -I/usr/include/apr-1 -I/usr/include/apr-1 -I/root/mod_python-3.2.10/src/include -I/usr/local/apache2//include -I/usr/include/python2.6 -c -o mod_python.lo mod_python.c && touch mod_python.slo
In file included from /usr/include/python2.6/pyconfig.h:4,
from /usr/include/python2.6/Python.h:8,
from /root/mod_python-3.2.10/src/include/mod_python.h:67,
from mod_python.c:28:
/usr/include/python2.6/pyconfig-32.h:1034:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:26,
from /usr/include/apr-1/apr-i386.h:127,
from /usr/include/apr-1/apr.h:7,
from /usr/local/apache2//include/ap_config.h:25,
from /usr/local/apache2//include/httpd.h:43,
from /root/mod_python-3.2.10/src/include/mod_python.h:42,
from mod_python.c:28:
/usr/include/features.h:162:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/pyconfig.h:4,
from /usr/include/python2.6/Python.h:8,
from /root/mod_python-3.2.10/src/include/mod_python.h:67,
from mod_python.c:28:
/usr/include/python2.6/pyconfig-32.h:1043:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:26,
from /usr/include/apr-1/apr-i386.h:127,
from /usr/include/apr-1/apr.h:7,
from /usr/local/apache2//include/ap_config.h:25,
from /usr/local/apache2//include/httpd.h:43,
from /root/mod_python-3.2.10/src/include/mod_python.h:42,
from mod_python.c:28:
/usr/include/features.h:164:1: warning: this is the location of the previous definition
mod_python.c: In function ‘python_cleanup’:
mod_python.c:313: warning: passing argument 1 of ‘free’ discards qualifiers from pointer target type
/usr/include/stdlib.h:488: note: expected ‘void *’ but argument is of type ‘const char *’
mod_python.c: In function ‘init_mutexes’:
mod_python.c:427: warning: assignment discards qualifiers from pointer target type
mod_python.c:458: warning: assignment discards qualifiers from pointer target type
mod_python.c: In function ‘reinit_mutexes’:
mod_python.c:540: warning: assignment discards qualifiers from pointer target type
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/local/apache2//include -I/usr/include/apr-1 -I/usr/include/apr-1 -I/root/mod_python-3.2.10/src/include -I/usr/local/apache2//include -I/usr/include/python2.6 -c -o _apachemodule.lo _apachemodule.c && touch _apachemodule.slo
In file included from /usr/include/python2.6/pyconfig.h:4,
from /usr/include/python2.6/Python.h:8,
from /root/mod_python-3.2.10/src/include/mod_python.h:67,
from _apachemodule.c:25:
/usr/include/python2.6/pyconfig-32.h:1034:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:26,
from /usr/include/apr-1/apr-i386.h:127,
from /usr/include/apr-1/apr.h:7,
from /usr/local/apache2//include/ap_config.h:25,
from /usr/local/apache2//include/httpd.h:43,
from /root/mod_python-3.2.10/src/include/mod_python.h:42,
from _apachemodule.c:25:
/usr/include/features.h:162:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/pyconfig.h:4,
from /usr/include/python2.6/Python.h:8,
from /root/mod_python-3.2.10/src/include/mod_python.h:67,
from _apachemodule.c:25:
/usr/include/python2.6/pyconfig-32.h:1043:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:26,
from /usr/include/apr-1/apr-i386.h:127,
from /usr/include/apr-1/apr.h:7,
from /usr/local/apache2//include/ap_config.h:25,
from /usr/local/apache2//include/httpd.h:43,
from /root/mod_python-3.2.10/src/include/mod_python.h:42,
from _apachemodule.c:25:
/usr/include/features.h:164:1: warning: this is the location of the previous definition
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/local/apache2//include -I/usr/include/apr-1 -I/usr/include/apr-1 -I/root/mod_python-3.2.10/src/include -I/usr/local/apache2//include -I/usr/include/python2.6 -c -o requestobject.lo requestobject.c && touch requestobject.slo
In file included from /usr/include/python2.6/pyconfig.h:4,
from /usr/include/python2.6/Python.h:8,
from /root/mod_python-3.2.10/src/include/mod_python.h:67,
from requestobject.c:25:
/usr/include/python2.6/pyconfig-32.h:1034:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:26,
from /usr/include/apr-1/apr-i386.h:127,
from /usr/include/apr-1/apr.h:7,
from /usr/local/apache2//include/ap_config.h:25,
from /usr/local/apache2//include/httpd.h:43,
from /root/mod_python-3.2.10/src/include/mod_python.h:42,
from requestobject.c:25:
/usr/include/features.h:162:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/pyconfig.h:4,
from /usr/include/python2.6/Python.h:8,
from /root/mod_python-3.2.10/src/include/mod_python.h:67,
from requestobject.c:25:
/usr/include/python2.6/pyconfig-32.h:1043:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:26,
from /usr/include/apr-1/apr-i386.h:127,
from /usr/include/apr-1/apr.h:7,
from /usr/local/apache2//include/ap_config.h:25,
from /usr/local/apache2//include/httpd.h:43,
from /root/mod_python-3.2.10/src/include/mod_python.h:42,
from requestobject.c:25:
/usr/include/features.h:164:1: warning: this is the location of the previous definition
requestobject.c: In function ‘req_get_options’:
requestobject.c:426: warning: initialization discards qualifiers from pointer target type
requestobject.c:427: warning: initialization from incompatible pointer type
requestobject.c: In function ‘getmakeobj’:
requestobject.c:1447: warning: assignment from incompatible pointer type
requestobject.c:1454: warning: assignment from incompatible pointer type
requestobject.c: In function ‘request_tp_clear’:
requestobject.c:1569: warning: assignment from incompatible pointer type
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/local/apache2//include -I/usr/include/apr-1 -I/usr/include/apr-1 -I/root/mod_python-3.2.10/src/include -I/usr/local/apache2//include -I/usr/include/python2.6 -c -o tableobject.lo tableobject.c && touch tableobject.slo
In file included from /usr/include/python2.6/pyconfig.h:4,
from /usr/include/python2.6/Python.h:8,
from /root/mod_python-3.2.10/src/include/mod_python.h:67,
from tableobject.c:25:
/usr/include/python2.6/pyconfig-32.h:1034:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:26,
from /usr/include/apr-1/apr-i386.h:127,
from /usr/include/apr-1/apr.h:7,
from /usr/local/apache2//include/ap_config.h:25,
from /usr/local/apache2//include/httpd.h:43,
from /root/mod_python-3.2.10/src/include/mod_python.h:42,
from tableobject.c:25:
/usr/include/features.h:162:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/pyconfig.h:4,
from /usr/include/python2.6/Python.h:8,
from /root/mod_python-3.2.10/src/include/mod_python.h:67,
from tableobject.c:25:
/usr/include/python2.6/pyconfig-32.h:1043:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:26,
from /usr/include/apr-1/apr-i386.h:127,
from /usr/include/apr-1/apr.h:7,
from /usr/local/apache2//include/ap_config.h:25,
from /usr/local/apache2//include/httpd.h:43,
from /root/mod_python-3.2.10/src/include/mod_python.h:42,
from tableobject.c:25:
/usr/include/features.h:164:1: warning: this is the location of the previous definition
tableobject.c:1057: warning: initialization from incompatible pointer type
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/local/apache2//include -I/usr/include/apr-1 -I/usr/include/apr-1 -I/root/mod_python-3.2.10/src/include -I/usr/local/apache2//include -I/usr/include/python2.6 -c -o util.lo util.c && touch util.slo
In file included from /usr/include/python2.6/pyconfig.h:4,
from /usr/include/python2.6/Python.h:8,
from /root/mod_python-3.2.10/src/include/mod_python.h:67,
from util.c:28:
/usr/include/python2.6/pyconfig-32.h:1034:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:26,
from /usr/include/apr-1/apr-i386.h:127,
from /usr/include/apr-1/apr.h:7,
from /usr/local/apache2//include/ap_config.h:25,
from /usr/local/apache2//include/httpd.h:43,
from /root/mod_python-3.2.10/src/include/mod_python.h:42,
from util.c:28:
/usr/include/features.h:162:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/pyconfig.h:4,
from /usr/include/python2.6/Python.h:8,
from /root/mod_python-3.2.10/src/include/mod_python.h:67,
from util.c:28:
/usr/include/python2.6/pyconfig-32.h:1043:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:26,
from /usr/include/apr-1/apr-i386.h:127,
from /usr/include/apr-1/apr.h:7,
from /usr/local/apache2//include/ap_config.h:25,
from /usr/local/apache2//include/httpd.h:43,
from /root/mod_python-3.2.10/src/include/mod_python.h:42,
from util.c:28:
/usr/include/features.h:164:1: warning: this is the location of the previous definition
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/local/apache2//include -I/usr/include/apr-1 -I/usr/include/apr-1 -I/root/mod_python-3.2.10/src/include -I/usr/local/apache2//include -I/usr/include/python2.6 -c -o serverobject.lo serverobject.c && touch serverobject.slo
In file included from /usr/include/python2.6/pyconfig.h:4,
from /usr/include/python2.6/Python.h:8,
from /root/mod_python-3.2.10/src/include/mod_python.h:67,
from serverobject.c:25:
/usr/include/python2.6/pyconfig-32.h:1034:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:26,
from /usr/include/apr-1/apr-i386.h:127,
from /usr/include/apr-1/apr.h:7,
from /usr/local/apache2//include/ap_config.h:25,
from /usr/local/apache2//include/httpd.h:43,
from /root/mod_python-3.2.10/src/include/mod_python.h:42,
from serverobject.c:25:
/usr/include/features.h:162:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/pyconfig.h:4,
from /usr/include/python2.6/Python.h:8,
from /root/mod_python-3.2.10/src/include/mod_python.h:67,
from serverobject.c:25:
/usr/include/python2.6/pyconfig-32.h:1043:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:26,
from /usr/include/apr-1/apr-i386.h:127,
from /usr/include/apr-1/apr.h:7,
from /usr/local/apache2//include/ap_config.h:25,
from /usr/local/apache2//include/httpd.h:43,
from /root/mod_python-3.2.10/src/include/mod_python.h:42,
from serverobject.c:25:
/usr/include/features.h:164:1: warning: this is the location of the previous definition
serverobject.c:351: warning: initialization from incompatible pointer type
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/local/apache2//include -I/usr/include/apr-1 -I/usr/include/apr-1 -I/root/mod_python-3.2.10/src/include -I/usr/local/apache2//include -I/usr/include/python2.6 -c -o connobject.lo connobject.c && touch connobject.slo
In file included from /usr/include/python2.6/pyconfig.h:4,
from /usr/include/python2.6/Python.h:8,
from /root/mod_python-3.2.10/src/include/mod_python.h:67,
from connobject.c:30:
/usr/include/python2.6/pyconfig-32.h:1034:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:26,
from /usr/include/apr-1/apr-i386.h:127,
from /usr/include/apr-1/apr.h:7,
from /usr/local/apache2//include/ap_config.h:25,
from /usr/local/apache2//include/httpd.h:43,
from /root/mod_python-3.2.10/src/include/mod_python.h:42,
from connobject.c:30:
/usr/include/features.h:162:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/pyconfig.h:4,
from /usr/include/python2.6/Python.h:8,
from /root/mod_python-3.2.10/src/include/mod_python.h:67,
from connobject.c:30:
/usr/include/python2.6/pyconfig-32.h:1043:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:26,
from /usr/include/apr-1/apr-i386.h:127,
from /usr/include/apr-1/apr.h:7,
from /usr/local/apache2//include/ap_config.h:25,
from /usr/local/apache2//include/httpd.h:43,
from /root/mod_python-3.2.10/src/include/mod_python.h:42,
from connobject.c:30:
/usr/include/features.h:164:1: warning: this is the location of the previous definition
connobject.c: In function ‘_conn_read’:
connobject.c:112: error: request for member ‘next’ in something not a structure or union
apxs:Error: Command failed with rc=65536
.
make[1]: *** [mod_python.so] Error 1
make[1]: Leaving directory `/root/mod_python-3.2.10/src'
make: *** [do_dso] Error 2
Last edited by physnastr; 10-21-2011 at 02:24 PM.
|