Friday, August 04, 2006

mod_python Installation Error

Still with Python. At this time i will share my experience while python installation. My wish is, i want to make a web based application based on python. After asking to Uncle Google, if i want to make my wish to be a something real then i must installing mod_python and then load the mod_python module to the Apache.

I've download mod_python 3.1.4. My Apache version is 2.0.54.

But, there are a problem when installing mod_python. The configure work fine. I'm configuring with this syntax below :

./configure --with-apxs=/data/opt/apache2/bin/apxs --with-python=/usr/bin/python2.4

The problem occurs when a make process

The error look like this below :

make[1]: Entering directory
`/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src\
'

Compiling for DSO.

/data/opt/apache2/bin/apxs
-I/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/sr\
c/include
-I/data/opt/apache2/include -I/usr/include/python2.4 -c mod_python.c
_apachemodule.c requestobject.c tableobject.c util.c serverobject.c
connobject.c filterobject.c hlist.c hlistobject.c -lm
/usr/lib/python2.4/config/libpython2.4.a
/data/opt/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2
-pthread -I/data/opt/apache2/include -I/data/opt/apache2/include
-I/data/opt/apache2/include
-I/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/sr\
c/include
-I/data/opt/apache2/include -I/usr/include/python2.4 -c -o
mod_python.lo mod_python.c && touch mod_python.slo
In file included from mod_python.c:28:
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:57:20:
error: Python.h: No such file or directory
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:58:26:
error: structmember.h: No such file or directory
In file included from
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:76,
from mod_python.c:28:
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/util.h:31:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/util.h:31:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/util.h:32:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/util.h:32:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/util.h:33:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/util.h:33:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/util.h:34:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/util.h:34:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/util.h:37:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/util.h:37:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/util.h:37:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/util.h:38:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/util.h:38:
warning: data definition has no type or storage class
In file included from
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:78,
from mod_python.c:28:
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/hlistobject.h:35:
error: syntax error before 'PyObject_HEAD'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/hlistobject.h:35:
warning: no semicolon at end of struct or union
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/hlistobject.h:38:
error: syntax error before '}' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/hlistobject.h:38:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/hlistobject.h:40:
error: syntax error before 'MpHList_Type'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/hlistobject.h:40:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/hlistobject.h:44:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/hlistobject.h:45:
error: syntax error before 'MpHList_Append'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/hlistobject.h:46:
error: syntax error before 'MpHList_Append'
In file included from
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:79,
from mod_python.c:28:
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/tableobject.h:37:
error: syntax error before 'PyObject_VAR_HEAD'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/tableobject.h:37:
warning: no semicolon at end of struct or union
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/tableobject.h:40:
error: syntax error before '}' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/tableobject.h:40:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/tableobject.h:42:
error: syntax error before 'MpTable_Type'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/tableobject.h:42:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/tableobject.h:43:
error: syntax error before 'MpTableIter_Type'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/tableobject.h:43:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/tableobject.h:47:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/tableobject.h:48:
error: syntax error before '*' token
In file included from
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:80,
from mod_python.c:28:
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/serverobject.h:32:
error: syntax error before 'PyObject_HEAD'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/serverobject.h:32:
warning: no semicolon at end of struct or union
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/serverobject.h:35:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/serverobject.h:35:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/serverobject.h:36:
error: syntax error before '}' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/serverobject.h:36:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/serverobject.h:38:
error: syntax error before 'MpServer_Type'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/serverobject.h:38:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/serverobject.h:42:
error: syntax error before '*' token
In file included from
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:81,
from mod_python.c:28:
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/connobject.h:42:
error: syntax error before 'PyObject_HEAD'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/connobject.h:42:
warning: no semicolon at end of struct or union
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/connobject.h:44:
error: conflicting types for 'server'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/serverobject.h:34:
error: previous declaration of 'server' was here
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/connobject.h:44:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/connobject.h:45:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/connobject.h:45:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/connobject.h:46:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/connobject.h:46:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/connobject.h:47:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/connobject.h:47:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/connobject.h:48:
error: syntax error before '}' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/connobject.h:48:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/connobject.h:50:
error: syntax error before 'MpConn_Type'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/connobject.h:50:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/connobject.h:54:
error: syntax error before '*' token
In file included from
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:82,
from mod_python.c:28:
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/_apachemodule.h:31:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/_apachemodule.h:32:
error: syntax error before 'init_apache'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/_apachemodule.h:32:
warning: data definition has no type or storage class
In file included from
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:83,
from mod_python.c:28:
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:32:
error: syntax error before 'PyObject_HEAD'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:32:
warning: no semicolon at end of struct or union
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:34:
error: 'request_rec' redeclared as different kind of symbol
/data/opt/apache2/include/httpd.h:662: error: previous declaration of
'request_rec' was here
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:35:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:35:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:36:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:36:
error: conflicting types for 'server'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/serverobject.h:34:
error: previous declaration of 'server' was here
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:36:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:37:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:37:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:38:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:38:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:39:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:39:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:40:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:40:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:41:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:41:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:42:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:42:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:43:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:43:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:44:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:44:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:45:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:45:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:49:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:49:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:53:
error: syntax error before '}' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:53:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:55:
error: syntax error before 'MpRequest_Type'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:55:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:59:
error: syntax error before '*' token
In file included from
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:84,
from mod_python.c:28:
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/filterobject.h:32:
error: syntax error before 'PyObject_HEAD'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/filterobject.h:32:
warning: no semicolon at end of struct or union
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/filterobject.h:53:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/filterobject.h:53:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/filterobject.h:55:
error: syntax error before '}' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/filterobject.h:55:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/filterobject.h:57:
error: syntax error before 'MpFilter_Type'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/filterobject.h:57:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/filterobject.h:61:
error: syntax error before '*' token
In file included from mod_python.c:28:
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:115:
error: syntax error before 'PyInterpreterState'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:115:
warning: no semicolon at end of struct or union
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:116:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:117:
error: syntax error before '}' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:117:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:142:
error: syntax error before 'request_rec'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:142:
warning: no semicolon at end of struct or union
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:143:
error: 'server_rec' redeclared as different kind of symbol
/data/opt/apache2/include/httpd.h:658: error: previous declaration of
'server_rec' was here
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:144:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:144:
error: conflicting types for 'handler'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/filterobject.h:50:
error: previous declaration of 'handler' was here
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:144:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:145:
error: conflicting types for 'interpreter'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/requestobject.h:47:
error: previous declaration of 'interpreter' was here
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:146:
error: syntax error before '*' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:146:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:147:
error: syntax error before '}' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:147:
warning: data definition has no type or storage class
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:152:
error: syntax error before 'requestobject'
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:152:
warning: no semicolon at end of struct or union
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:155:
error: syntax error before '}' token
/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src/\
include/mod_python.h:155:
warning: data definition has no type or storage class
mod_python.c:32: error: syntax error before '*' token
mod_python.c:32: warning: data definition has no type or storage class
mod_python.c:42: error: syntax error before '*' token
mod_python.c:42: error: syntax error before 'server_rec'
mod_python.c: In function 'make_interpreter':
mod_python.c:44: error: 'PyThreadState' undeclared (first use in this
function)
mod_python.c:44: error: (Each undeclared identifier is reported only once
mod_python.c:44: error: for each function it appears in.)
mod_python.c:44: error: 'tstate' undeclared (first use in this function)
mod_python.c:51: error: 'srv' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:76: error: syntax error before '*' token
mod_python.c:76: error: syntax error before '*' token
mod_python.c: In function 'make_obcallback':
mod_python.c:79: error: 'PyObject' undeclared (first use in this function)
mod_python.c:79: error: 'm' undeclared (first use in this function)
mod_python.c:80: error: 'obCallBack' undeclared (first use in this function)
mod_python.c:96: error: 's' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:117: error: syntax error before '*' token
mod_python.c:117: error: syntax error before 'server_rec'
mod_python.c: In function 'get_interpreter':
mod_python.c:119: error: 'PyObject' undeclared (first use in this function)
mod_python.c:119: error: 'p' undeclared (first use in this function)
mod_python.c:120: error: 'PyThreadState' undeclared (first use in this
function)
mod_python.c:120: error: 'tstate' undeclared (first use in this function)
mod_python.c:121: error: 'idata' undeclared (first use in this function)
mod_python.c:123: error: 'name' undeclared (first use in this function)
mod_python.c:136: error: 'PyInterpreterState' undeclared (first use in
this function)
mod_python.c:136: error: 'istate' undeclared (first use in this function)
mod_python.c:136: error: 'srv' undeclared (first use in this function)
mod_python.c:138: error: syntax error before ')' token
mod_python.c:147: error: syntax error before ')' token
mod_python.c: In function 'release_interpreter':
mod_python.c:195: error: 'PyThreadState' undeclared (first use in this
function)
mod_python.c:195: error: 'tstate' undeclared (first use in this function)
mod_python.c: In function 'python_cleanup':
mod_python.c:213: error: 'idata' undeclared (first use in this function)
mod_python.c:215: error: 'ci' undeclared (first use in this function)
mod_python.c:215: error: syntax error before ')' token
mod_python.c:234: error: 'PyObject' undeclared (first use in this function)
mod_python.c:234: error: 'ptype' undeclared (first use in this function)
mod_python.c:235: error: 'pvalue' undeclared (first use in this function)
mod_python.c:236: error: 'ptb' undeclared (first use in this function)
mod_python.c:238: error: 'stype' undeclared (first use in this function)
mod_python.c:239: error: 'svalue' undeclared (first use in this function)
mod_python.c:242: warning: assignment makes pointer from integer without
a cast
mod_python.c: At top level:
mod_python.c:285: error: syntax error before '*' token
mod_python.c: In function 'init_mutexes':
mod_python.c:330: error: 's' undeclared (first use in this function)
mod_python.c:335: error: 'glb' undeclared (first use in this function)
mod_python.c:336: error: 'p' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:400: error: syntax error before '*' token
mod_python.c: In function 'reinit_mutexes':
mod_python.c:404: error: 'glb' undeclared (first use in this function)
mod_python.c:414: error: 'p' undeclared (first use in this function)
mod_python.c:417: error: 's' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:434: error: syntax error before '*' token
mod_python.c: In function 'python_create_global_config':
mod_python.c:436: error: 's' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:464: error: syntax error before 'server_rec'
mod_python.c: In function 'python_init':
mod_python.c:472: error: 's' undeclared (first use in this function)
mod_python.c:480: error: 'p' undeclared (first use in this function)
mod_python.c:508: warning: assignment makes pointer from integer without
a cast
mod_python.c: At top level:
mod_python.c:576: error: syntax error before 'server_rec'
mod_python.c: In function 'python_create_srv_config':
mod_python.c:579: error: 'p' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:795: error: syntax error before '*' token
mod_python.c:795: error: syntax error before '*' token
mod_python.c: In function 'get_request_object':
mod_python.c:797: error: 'req_config' undeclared (first use in this
function)
mod_python.c:798: error: invalid operands to binary *
mod_python.c:801: error: syntax error before ')' token
mod_python.c:801: error: 'req' undeclared (first use in this function)
mod_python.c:833: error: 'Py_BEGIN_ALLOW_THREADS' undeclared (first use
in this function)
mod_python.c:833: error: syntax error before 'ap_add_cgi_vars'
mod_python.c:836: error: 'Py_END_ALLOW_THREADS' undeclared (first use in
this function)
mod_python.c:852: error: 'interp_name' undeclared (first use in this
function)
mod_python.c:853: error: request for member 'interpreter' in something
not a structure or union
mod_python.c:855: error: request for member 'interpreter' in something
not a structure or union
mod_python.c:858: error: request for member 'phase' in something not a
structure or union
mod_python.c:860: error: request for member 'phase' in something not a
structure or union
mod_python.c:862: error: request for member 'phase' in something not a
structure or union
mod_python.c: At top level:
mod_python.c:877: error: syntax error before '*' token
mod_python.c: In function 'select_interp_name':
mod_python.c:882: error: 'conf' undeclared (first use in this function)
mod_python.c:890: error: 'req' undeclared (first use in this function)
mod_python.c:915: error: 'fname' undeclared (first use in this function)
mod_python.c:927: error: 'hle' undeclared (first use in this function)
mod_python.c:937: error: 'con' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:952: error: syntax error before '*' token
mod_python.c: In function 'python_handler':
mod_python.c:955: error: 'PyObject' undeclared (first use in this function)
mod_python.c:955: error: 'resultobject' undeclared (first use in this
function)
mod_python.c:956: error: 'idata' undeclared (first use in this function)
mod_python.c:957: error: invalid operands to binary *
mod_python.c:965: error: 'req_conf' undeclared (first use in this function)
mod_python.c:968: error: 'req' undeclared (first use in this function)
mod_python.c:1000: error: syntax error before ')' token
mod_python.c:1026: error: request for member 'extension' in something
not a structure or union
mod_python.c:1029: error: request for member 'hlo' in something not a
structure or union
mod_python.c:1029: error: syntax error before ')' token
mod_python.c:1033: error: request for member 'hlo' in something not a
structure or union
mod_python.c:1067: warning: passing argument 1 of 'strlen' from
incompatible pointer type
mod_python.c:1067: warning: passing argument 1 of '__builtin_strcmp'
from incompatible pointer type
mod_python.c:1067: warning: passing argument 1 of 'strlen' from
incompatible pointer type
mod_python.c:1067: warning: passing argument 1 of '__builtin_strcmp'
from incompatible pointer type
mod_python.c:1067: warning: passing argument 1 of '__builtin_strcmp'
from incompatible pointer type
mod_python.c:1067: warning: passing argument 1 of '__builtin_strcmp'
from incompatible pointer type
mod_python.c: In function 'python_cleanup_handler':
mod_python.c:1138: error: 'req_config' undeclared (first use in this
function)
mod_python.c:1139: error: 'req' undeclared (first use in this function)
mod_python.c:1139: error: syntax error before ')' token
mod_python.c:1141: error: syntax error before ')' token
mod_python.c:1143: error: syntax error before ')' token
mod_python.c:1148: error: 'idata' undeclared (first use in this function)
mod_python.c:1149: error: invalid operands to binary *
mod_python.c: In function 'python_connection':
mod_python.c:1175: error: 'PyObject' undeclared (first use in this function)
mod_python.c:1175: error: 'resultobject' undeclared (first use in this
function)
mod_python.c:1176: error: 'idata' undeclared (first use in this function)
mod_python.c:1177: error: 'conn_obj' undeclared (first use in this function)
mod_python.c:1206: error: syntax error before ')' token
mod_python.c:1209: error: syntax error before ')' token
mod_python.c: In function 'python_filter':
mod_python.c:1258: error: 'PyObject' undeclared (first use in this function)
mod_python.c:1258: error: 'resultobject' undeclared (first use in this
function)
mod_python.c:1259: error: 'idata' undeclared (first use in this function)
mod_python.c:1260: error: invalid operands to binary *
mod_python.c:1263: error: 'req' undeclared (first use in this function)
mod_python.c:1264: error: 'filter' undeclared (first use in this function)
mod_python.c:1313: error: syntax error before ')' token
mod_python.c: In function 'directive_PythonOptimize':
mod_python.c:1548: error: 'Py_OptimizeFlag' undeclared (first use in
this function)
mod_python.c: In function 'python_finalize':
mod_python.c:1705: error: 'idata' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:1728: error: syntax error before 'server_rec'
mod_python.c: In function 'PythonChildInitHandler':
mod_python.c:1733: error: 's' undeclared (first use in this function)
mod_python.c:1751: error: 'p' undeclared (first use in this function)
mod_python.c:1775: error: 'idata' undeclared (first use in this function)
mod_python.c:1789: error: 'PyObject' undeclared (first use in this function)
mod_python.c:1789: error: 'globals' undeclared (first use in this function)
mod_python.c:1789: error: 'locals' undeclared (first use in this function)
mod_python.c:1789: error: 'newpath' undeclared (first use in this function)
mod_python.c:1789: error: 'sys' undeclared (first use in this function)
mod_python.c:1799: error: 'Py_eval_input' undeclared (first use in this
function)
mod_python.c: At top level:
mod_python.c:1838: error: syntax error before '*' token
mod_python.c: In function 'PythonAccessHandler':
mod_python.c:1839: error: 'req' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:1841: error: syntax error before '*' token
mod_python.c: In function 'PythonAuthenHandler':
mod_python.c:1842: error: 'req' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:1844: error: syntax error before '*' token
mod_python.c: In function 'PythonAuthzHandler':
mod_python.c:1845: error: 'req' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:1847: error: syntax error before '*' token
mod_python.c: In function 'PythonFixupHandler':
mod_python.c:1848: error: 'req' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:1850: error: syntax error before '*' token
mod_python.c: In function 'PythonHandler':
mod_python.c:1857: error: 'req' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:1863: error: syntax error before '*' token
mod_python.c: In function 'PythonHeaderParserHandler':
mod_python.c:1867: error: 'req' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:1874: error: syntax error before '*' token
mod_python.c: In function 'PythonLogHandler':
mod_python.c:1875: error: 'req' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:1877: error: syntax error before '*' token
mod_python.c: In function 'PythonPostReadRequestHandler':
mod_python.c:1881: error: 'req' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:1888: error: syntax error before '*' token
mod_python.c: In function 'PythonTransHandler':
mod_python.c:1889: error: 'req' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:1891: error: syntax error before '*' token
mod_python.c: In function 'PythonTypeHandler':
mod_python.c:1892: error: 'req' undeclared (first use in this function)
apxs:Error: Command failed with rc=65536
.
make[1]: *** [mod_python.so] Error 1
make[1]: Leaving directory
`/data/data/software/script_engine/python/MODULE/mod_python/mod_python-3.1.4/src\
'
make: *** [do_dso] Error 2


Why this is happen? It's happen because i'm not yet installing the python development package. After installing python2.4-dev now mod_python installed successfully. Thank you to Dody Suria Wijaya and Mico Siahaan for helping me on solve the problem.

No comments: