any one installed mod_python successfully?

hehachris

Verified User
Joined
Nov 24, 2004
Messages
538
Location
Hong Kong
any one installed mod_pyton successfully?

i did the followings

$./configure --with-apxs=/usr/sbin/apxs --with-apache=/usr/local/directadmin/customapache/apache_1.3.34

$make




but error occured:
make[1]: Entering directory `/root/mod_python-2.7.11/src'
gcc -I/root/mod_python-2.7.11/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/include -I/usr/local/directadmin/customapache/apache_1.3.34/src/os/unix -I/usr/include/python2.3 -c -o mod_python.o mod_python.c
In file included from mod_python.c:54:
/root/mod_python-2.7.11/src/include/mod_python.h:77:20: Python.h: No such file or directory
/root/mod_python-2.7.11/src/include/mod_python.h:78:26: structmember.h: No such file or directory
In file included from /root/mod_python-2.7.11/src/include/mod_python.h:99,
from mod_python.c:54:
/root/mod_python-2.7.11/src/include/util.h:57: error: syntax error before '*' token
/root/mod_python-2.7.11/src/include/util.h:57: warning: data definition has no type or storage class
In file included from /root/mod_python-2.7.11/src/include/mod_python.h:100,
from mod_python.c:54:
/root/mod_python-2.7.11/src/include/tableobject.h:68: error: syntax error before "PyObject_VAR_HEAD"
/root/mod_python-2.7.11/src/include/tableobject.h:68: warning: no semicolon at end of struct or union
/root/mod_python-2.7.11/src/include/tableobject.h:70: error: `pool' redeclared as different kind of symbol
/usr/local/directadmin/customapache/apache_1.3.34/src/include/ap_alloc.h:49: error: previous declaration of `pool'
/root/mod_python-2.7.11/src/include/tableobject.h:71: error: syntax error before '}' token
/root/mod_python-2.7.11/src/include/tableobject.h:71: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/tableobject.h:73: error: syntax error before "MpTable_Type"
/root/mod_python-2.7.11/src/include/tableobject.h:73: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/tableobject.h:77: error: syntax error before '*' token
/root/mod_python-2.7.11/src/include/tableobject.h:78: error: syntax error before '*' token
In file included from /root/mod_python-2.7.11/src/include/mod_python.h:101,
from mod_python.c:54:
/root/mod_python-2.7.11/src/include/serverobject.h:58: error: syntax error before "PyObject_HEAD"
/root/mod_python-2.7.11/src/include/serverobject.h:58: warning: no semicolon at end of struct or union
/root/mod_python-2.7.11/src/include/serverobject.h:60: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/serverobject.h:61: error: syntax error before '}' token
/root/mod_python-2.7.11/src/include/serverobject.h:61: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/serverobject.h:63: error: syntax error before "MpServer_Type"
/root/mod_python-2.7.11/src/include/serverobject.h:63: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/serverobject.h:67: error: syntax error before '*' token
In file included from /root/mod_python-2.7.11/src/include/mod_python.h:102,
from mod_python.c:54:
/root/mod_python-2.7.11/src/include/connobject.h:68: error: syntax error before "PyObject_HEAD"
/root/mod_python-2.7.11/src/include/connobject.h:68: warning: no semicolon at end of struct or union
/root/mod_python-2.7.11/src/include/connobject.h:70: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/connobject.h:71: error: syntax error before '*' token
/root/mod_python-2.7.11/src/include/connobject.h:71: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/connobject.h:72: error: syntax error before '}' token
/root/mod_python-2.7.11/src/include/connobject.h:72: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/connobject.h:74: error: syntax error before "MpConn_Type"
/root/mod_python-2.7.11/src/include/connobject.h:74: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/connobject.h:78: error: syntax error before '*' token
In file included from /root/mod_python-2.7.11/src/include/mod_python.h:103,
from mod_python.c:54:
/root/mod_python-2.7.11/src/include/requestobject.h:58: error: syntax error before "PyObject_HEAD"
/root/mod_python-2.7.11/src/include/requestobject.h:58: warning: no semicolon at end of struct or union
/root/mod_python-2.7.11/src/include/requestobject.h:60: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/requestobject.h:61: error: syntax error before '*' token
/root/mod_python-2.7.11/src/include/requestobject.h:61: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/requestobject.h:62: error: syntax error before '*' token
/root/mod_python-2.7.11/src/include/requestobject.h:62: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/requestobject.h:63: error: syntax error before '*' token
/root/mod_python-2.7.11/src/include/requestobject.h:63: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/requestobject.h:64: error: syntax error before '*' token
/root/mod_python-2.7.11/src/include/requestobject.h:64: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/requestobject.h:65: error: syntax error before '*' token
/root/mod_python-2.7.11/src/include/requestobject.h:65: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/requestobject.h:66: error: syntax error before '*' token
/root/mod_python-2.7.11/src/include/requestobject.h:66: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/requestobject.h:67: error: syntax error before '*' token
/root/mod_python-2.7.11/src/include/requestobject.h:67: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/requestobject.h:68: error: syntax error before '*' token
/root/mod_python-2.7.11/src/include/requestobject.h:68: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/requestobject.h:69: error: syntax error before '*' token
/root/mod_python-2.7.11/src/include/requestobject.h:69: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/requestobject.h:70: error: syntax error before '*' token
/root/mod_python-2.7.11/src/include/requestobject.h:70: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/requestobject.h:77: error: syntax error before '}' token
/root/mod_python-2.7.11/src/include/requestobject.h:77: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/requestobject.h:79: error: syntax error before "MpRequest_Type"
/root/mod_python-2.7.11/src/include/requestobject.h:79: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/requestobject.h:83: error: syntax error before '*' token
In file included from mod_python.c:54:
/root/mod_python-2.7.11/src/include/mod_python.h:126: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/mod_python.h:130: error: syntax error before "PyInterpreterState"
/root/mod_python-2.7.11/src/include/mod_python.h:130: warning: no semicolon at end of struct or union
/root/mod_python-2.7.11/src/include/mod_python.h:131: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/mod_python.h:132: error: syntax error before '}' token
/root/mod_python-2.7.11/src/include/mod_python.h:132: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/mod_python.h:149: error: syntax error before "PyObject"
/root/mod_python-2.7.11/src/include/mod_python.h:149: warning: no semicolon at end of struct or union
/root/mod_python-2.7.11/src/include/mod_python.h:151: error: syntax error before '*' token
/root/mod_python-2.7.11/src/include/mod_python.h:151: warning: data definition has no type or storage class
/root/mod_python-2.7.11/src/include/mod_python.h:152: error: syntax error before '}' token
/root/mod_python-2.7.11/src/include/mod_python.h:152: warning: data definition has no type or storage class
mod_python.c:58: error: syntax error before '*' token
mod_python.c:58: warning: data definition has no type or storage class
mod_python.c:63: error: syntax error before '*' token
mod_python.c:63: error: conflicting types for `child_init_pool'
/root/mod_python-2.7.11/src/include/mod_python.h:93: error: previous declaration of `child_init_pool'
mod_python.c:63: warning: data definition has no type or storage class
mod_python.c:71: error: syntax error before '*' token
mod_python.c: In function `make_interpreter':
mod_python.c:73: error: `PyThreadState' undeclared (first use in this function)
mod_python.c:73: error: (Each undeclared identifier is reported only once
mod_python.c:73: error: for each function it appears in.)
mod_python.c:73: error: `tstate' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:109: error: syntax error before '*' token
mod_python.c: In function `get_interpreter_data':
mod_python.c:111: error: `PyObject' undeclared (first use in this function)
mod_python.c:111: error: `p' undeclared (first use in this function)
mod_python.c:112: error: `idata' undeclared (first use in this function)
mod_python.c:120: error: `PyInterpreterState' undeclared (first use in this function)
mod_python.c:120: error: `istate' undeclared (first use in this function)
mod_python.c:122: error: syntax error before ')' token
mod_python.c:131: error: syntax error before ')' token
mod_python.c: In function `python_cleanup':
mod_python.c:149: error: `idata' undeclared (first use in this function)
mod_python.c:150: error: `PyThreadState' undeclared (first use in this function)
mod_python.c:150: error: `tstate' undeclared (first use in this function)
mod_python.c:152: error: `ci' undeclared (first use in this function)
mod_python.c:152: error: syntax error before ')' token
mod_python.c:195: error: `PyObject' undeclared (first use in this function)
mod_python.c:195: error: `ptype' undeclared (first use in this function)
mod_python.c:196: error: `pvalue' undeclared (first use in this function)
mod_python.c:197: error: `ptb' undeclared (first use in this function)
mod_python.c:198: error: `handler' undeclared (first use in this function)
mod_python.c:199: error: `stype' undeclared (first use in this function)
mod_python.c:200: error: `svalue' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:258: error: syntax error before "pool"
mod_python.c: In function `python_init':
mod_python.c:265: error: invalid operands to binary *
mod_python.c:290: warning: assignment makes pointer from integer without a cast
mod_python.c:292: error: `s' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:313: error: syntax error before '*' token
mod_python.c: In function `python_create_dir_config':
mod_python.c:317: error: `p' undeclared (first use in this function)
mod_python.c:321: error: `dir' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:360: error: syntax error before '*' token
mod_python.c: In function `python_merge_dir_config':
mod_python.c:363: error: `p' undeclared (first use in this function)
mod_python.c:364: error: `cc' undeclared (first use in this function)
mod_python.c:365: error: `nc' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:456: error: syntax error before '*' token
mod_python.c: In function `make_obcallback':
mod_python.c:459: error: `PyObject' undeclared (first use in this function)
mod_python.c:459: error: `m' undeclared (first use in this function)
mod_python.c:460: error: `obCallBack' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:495: error: syntax error before '*' token
mod_python.c: In function `get_request_object':
mod_python.c:497: error: `request_obj' undeclared (first use in this function)
mod_python.c:498: error: `PyThreadState' undeclared (first use in this function)
mod_python.c:498: error: `_save' undeclared (first use in this function)
mod_python.c:501: error: syntax error before ')' token
mod_python.c:518: error: syntax error before ')' token
mod_python.c:532: error: syntax error before ')' token
mod_python.c: In function `python_handler':
mod_python.c:550: error: `PyObject' undeclared (first use in this function)
mod_python.c:550: error: `resultobject' undeclared (first use in this function)
mod_python.c:551: error: `idata' undeclared (first use in this function)
mod_python.c:552: error: `request_obj' undeclared (first use in this function)
mod_python.c:557: error: `PyThreadState' undeclared (first use in this function)
mod_python.c:557: error: `tstate' undeclared (first use in this function)
mod_python.c: In function `python_cleanup_handler':
mod_python.c:813: error: `idata' undeclared (first use in this function)
mod_python.c:814: error: `request_obj' undeclared (first use in this function)
mod_python.c:818: error: `PyThreadState' undeclared (first use in this function)
mod_python.c:818: error: `tstate' undeclared (first use in this function)
mod_python.c: In function `directive_PythonOptimize':
mod_python.c:1204: error: `Py_OptimizeFlag' undeclared (first use in this function)
mod_python.c: In function `python_finalize':
mod_python.c:1277: error: `idata' undeclared (first use in this function)
mod_python.c:1278: error: `PyThreadState' undeclared (first use in this function)
mod_python.c:1278: error: `tstate' undeclared (first use in this function)
mod_python.c: At top level:
mod_python.c:1311: error: syntax error before "pool"
mod_python.c: In function `PythonChildInitHandler':
mod_python.c:1316: error: `PyObject' undeclared (first use in this function)
mod_python.c:1316: error: `sys' undeclared (first use in this function)
mod_python.c:1316: error: `path' undeclared (first use in this function)
mod_python.c:1316: error: `dirstr' undeclared (first use in this function)
mod_python.c:1317: error: `idata' undeclared (first use in this function)
mod_python.c:1320: error: `PyThreadState' undeclared (first use in this function)
mod_python.c:1320: error: `tstate' undeclared (first use in this function)
mod_python.c:1327: error: `p' undeclared (first use in this function)
mod_python.c:1354: error: `s' undeclared (first use in this function)
mod_python.c:1396: error: `list' undeclared (first use in this function)
make[1]: *** [mod_python.o] Error 1
make[1]: Leaving directory `/root/mod_python-2.7.11/src'
make: *** [do_dso] Error 2
 
Back
Top