-
mod_python编译是出错10
我的机子是redhat9,python版本我试了好几个版本,分别是2.3,2.4,2.5,2.6,apache是2.2.10,mod_python也试了还两个版本3.3.0和3.3.1
./configure --with-apxs=/usr/local/apache/bin/apxs --with-python=/usr/bin/python2.3
然后make时就出错:
Compiling for DSO.
/usr/local/apache/bin/apxs -I/usr/soft/mod_python-3.3.0b/src/include -I/usr/local/apache/include -I/usr/include/python2.3 -c mod_python.c _apachemodule.c requestobject.c tableobject.c util.c serverobject.c connobject.c filterobject.c hlist.c hlistobject.c finfoobject.c -L/usr/lib/python2.3/config -Xlinker -export-dynamic -lm -lpython2.3 -lpthread -ldl -lutil -lm
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/soft/mod_python-3.3.0b/src/include -I/usr/local/apache/include -I/usr/include/python2.3 -c -o mod_python.lo mod_python.c && touch mod_python.slo
In file included from /usr/include/python2.3/Python.h:8,
from /usr/soft/mod_python-3.3.0b/src/include/mod_python.h:80,
from mod_python.c:28:
/usr/include/python2.3/pyconfig.h:856:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/local/apache/include/apr.h:127,
from /usr/local/apache/include/ap_config.h:25,
from /usr/local/apache/include/httpd.h:43,
from /usr/soft/mod_python-3.3.0b/src/include/mod_python.h:42,
from mod_python.c:28:
/usr/include/features.h:132:1: warning: this is the location of the previous definition
mod_python.c: In function `python_init':
mod_python.c:826: warning: initialization from incompatible pointer type
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/soft/mod_python-3.3.0b/src/include -I/usr/local/apache/include -I/usr/include/python2.3 -c -o _apachemodule.lo _apachemodule.c && touch _apachemodule.slo
In file included from /usr/include/python2.3/Python.h:8,
from /usr/soft/mod_python-3.3.0b/src/include/mod_python.h:80,
from _apachemodule.c:25:
/usr/include/python2.3/pyconfig.h:856:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/local/apache/include/apr.h:127,
from /usr/local/apache/include/ap_config.h:25,
from /usr/local/apache/include/httpd.h:43,
from /usr/soft/mod_python-3.3.0b/src/include/mod_python.h:42,
from _apachemodule.c:25:
/usr/include/features.h:132:1: warning: this is the location of the previous definition
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/soft/mod_python-3.3.0b/src/include -I/usr/local/apache/include -I/usr/include/python2.3 -c -o requestobject.lo requestobject.c && touch requestobject.slo
In file included from /usr/include/python2.3/Python.h:8,
from /usr/soft/mod_python-3.3.0b/src/include/mod_python.h:80,
from requestobject.c:25:
/usr/include/python2.3/pyconfig.h:856:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/local/apache/include/apr.h:127,
from /usr/local/apache/include/ap_config.h:25,
from /usr/local/apache/include/httpd.h:43,
from /usr/soft/mod_python-3.3.0b/src/include/mod_python.h:42,
from requestobject.c:25:
/usr/include/features.h:132:1: warning: this is the location of the previous definition
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/soft/mod_python-3.3.0b/src/include -I/usr/local/apache/include -I/usr/include/python2.3 -c -o tableobject.lo tableobject.c && touch tableobject.slo
In file included from /usr/include/python2.3/Python.h:8,
from /usr/soft/mod_python-3.3.0b/src/include/mod_python.h:80,
from tableobject.c:25:
/usr/include/python2.3/pyconfig.h:856:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/local/apache/include/apr.h:127,
from /usr/local/apache/include/ap_config.h:25,
from /usr/local/apache/include/httpd.h:43,
from /usr/soft/mod_python-3.3.0b/src/include/mod_python.h:42,
from tableobject.c:25:
/usr/include/features.h:132:1: warning: this is the location of the previous definition
tableobject.c:1092: warning: initialization from incompatible pointer type
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/soft/mod_python-3.3.0b/src/include -I/usr/local/apache/include -I/usr/include/python2.3 -c -o util.lo util.c && touch util.slo
In file included from /usr/include/python2.3/Python.h:8,
from /usr/soft/mod_python-3.3.0b/src/include/mod_python.h:80,
from util.c:28:
/usr/include/python2.3/pyconfig.h:856:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/local/apache/include/apr.h:127,
from /usr/local/apache/include/ap_config.h:25,
from /usr/local/apache/include/httpd.h:43,
from /usr/soft/mod_python-3.3.0b/src/include/mod_python.h:42,
from util.c:28:
/usr/include/features.h:132:1: warning: this is the location of the previous definition
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/soft/mod_python-3.3.0b/src/include -I/usr/local/apache/include -I/usr/include/python2.3 -c -o serverobject.lo serverobject.c && touch serverobject.slo
In file included from /usr/include/python2.3/Python.h:8,
from /usr/soft/mod_python-3.3.0b/src/include/mod_python.h:80,
from serverobject.c:25:
/usr/include/python2.3/pyconfig.h:856:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/local/apache/include/apr.h:127,
from /usr/local/apache/include/ap_config.h:25,
from /usr/local/apache/include/httpd.h:43,
from /usr/soft/mod_python-3.3.0b/src/include/mod_python.h:42,
from serverobject.c:25:
/usr/include/features.h:132:1: warning: this is the location of the previous definition
serverobject.c:387: warning: initialization from incompatible pointer type
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/soft/mod_python-3.3.0b/src/include -I/usr/local/apache/include -I/usr/include/python2.3 -c -o connobject.lo connobject.c && touch connobject.slo
In file included from /usr/include/python2.3/Python.h:8,
from /usr/soft/mod_python-3.3.0b/src/include/mod_python.h:80,
from connobject.c:30:
/usr/include/python2.3/pyconfig.h:856:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
from /usr/local/apache/include/apr.h:127,
from /usr/local/apache/include/ap_config.h:25,
from /usr/local/apache/include/httpd.h:43,
from /usr/soft/mod_python-3.3.0b/src/include/mod_python.h:42,
from connobject.c:30:
/usr/include/features.h:132:1: warning: this is the location of the previous definition
connobject.c: In function `_conn_read':
connobject.c:142: 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 `/usr/soft/mod_python-3.3.0b/src'
make: *** [do_dso] Error 2
2008年12月04日 10:07
目前还没有答案
相关推荐
mod_python, mod_python mod_python关于mod_python的文档在 http://www.modpython.org/ 。快速启动如果你无法阅读说明:$./configure$ make$ sudo make instal
mod_python是apache组织的一个项目,通过它,可以开发psp或cgi,mod_python功能强大,速度快,是非常优秀的web开发工具。 mod_python的一个最主要优点就是在性能上超越传统CGI。下面是一个非常粗略的测试。该测试是...
Python 3.2.8中文手册Mod_Python 3.2.8中文手册Mod_Python 3.2.8中文手册Mod_Python 3.2.8中文手册Mod_Python 3.2.8中文手册Mod_Python 3.2.8中文手册Mod_Python 3.2.8中文手册Mod_Python 3.2.8中文手册Mod_...
mod_python 3.3.1 for python 2.6 and apache 2.2 on windows
mod_python-3.3.1.win32-py2.5-Apache2.2.exe
apache python mod_python 插件 更多到我的站点: http://www.iteedu.com/download
步骤: 1.python-2.7.5.msi 安装python2.7 ...3.mod_python-3.3.1.win32-py2.7.exe 安装mod_python 注意: 1.安装mod_python是需要使用管理员权限 2.安装成功后,apache2.2/models 目录下会存在 mod_python.so文件
apache python mod_python 插件 更多到我的站点: http://www.iteedu.com/download
mod_python-3.3.1-14
apache python mod_python 插件 更多到我的站点: http://www.iteedu.com/download
Django搭配mod_python Django搭配mod_python
Apache的python支持动态链接文件mod_python.dll,用于apache调用python脚本
mod_python-3.3.1.win32-py2.7.exe文件,直接安装
apache python mod_python 插件 更多到我的站点: http://www.iteedu.com/download
apache python mod_python 插件 更多到我的站点: http://www.iteedu.com/download
apache python mod_python 插件 更多到我的站点: http://www.iteedu.com/download
apache python mod_python 插件 更多到我的站点: http://www.iteedu.com/download
apache python mod_python 插件 更多到我的站点: http://www.iteedu.com/download
适用于linux系统! $make file $cd $install