LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-21-2011, 01:01 AM   #1
physnastr
LQ Newbie
 
Registered: Jan 2011
Posts: 26

Rep: Reputation: 0
installing mod_python


Iam unable to install mod_python on red hat and encountering the following error.

did anybody come across such problem.
when i use "make" i get the following error.

/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.7/src'
make: *** [do_dso] Error 2
 
Old 10-21-2011, 05:02 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,393

Rep: Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607
Probably tell what you are doing
http://linuxsilo.net/docs/smart-questions_en.html

Version of Redhat ? EL ?
The used python ? ( EL5 has 2 : python(default) and python26 ).
Version of mod_python ?

And why compile ? There are packages. Can be installed with yum :
mod_python mod_python26 python26-mod_python

..
 
Old 10-21-2011, 03:22 PM   #3
physnastr
LQ Newbie
 
Registered: Jan 2011
Posts: 26

Original Poster
Rep: Reputation: 0
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 03:24 PM.
 
Old 10-22-2011, 12:22 AM   #4
physnastr
LQ Newbie
 
Registered: Jan 2011
Posts: 26

Original Poster
Rep: Reputation: 0
problem solved...

Change the mod_python-3.2.10/src/connobject.c script in the line 112 to this "!(b == APR_BRIGADE_SENTINEL(bb) ||". Then it worked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Embeding mod_python.publisher & mod_python.psp at the same time adilturbo Programming 0 05-22-2009 07:50 AM
installing mod_python on debian unstable guldo Debian 6 07-18-2008 08:02 AM
mod_python - is there an equivalent to $_SERVER['PHP_SELF'] in mod_python? BrianK Programming 2 04-28-2008 10:46 PM
apache/mod_python problem: ImportError: No module named mod_python.apache BrianK Linux - Software 2 10-10-2007 06:13 PM
installing mod_python dominant Linux - Software 0 11-26-2004 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration