免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1953 | 回复: 1
打印 上一主题 下一主题

[服务应用] Apache 模块编译错误:mod_python编译报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-12-08 20:44 |只看该作者 |倒序浏览
环境:CentOS release 6.2 (Final)
        Linux version 2.6.32-042stab081.3 x86_64 GNU/Linux
        Apache/2.2.15 (Unix)
        Python 2.7.6
        GCC 4.4.7 20120313 (Red Hat 4.4.7-3)
        mod_python 3.5.0
------------------------------------------------------------------------------------------------------------|
...
...
mod_python.c: In function ?.nit_mutexes?.
mod_python.c:505: warning: the address of ?.name?.will always evaluate as ?.rue?
mod_python.c:538: warning: ignoring return value of ?.hown?. declared with attribute warn_unused_result
mod_python.c: In function ?.einit_mutexes?.
mod_python.c:581: warning: the address of ?.name?.will always evaluate as ?.rue?
mod_python.c: In function ?.andle_python?.
mod_python.c:1925: warning: unused variable ?.mp_buck?
mod_python.c: At top level:
mod_python.c:2586: warning: ?.ython_finalize?.defined but not used
...
...
tableobject.c: In function ?.able_setdefault?.
tableobject.c:808: warning: unused variable ?.en?
tableobject.c: In function ?.able_contains?.
tableobject.c:1101: warning: unused variable ?.c?
....
...
filterobject.c: In function ?.ilter_write?.
filterobject.c:320: warning: unused variable ?.?
filterobject.c: In function ?.ilter_getattr?.
filterobject.c:494: warning: unused variable ?.es?
...
..
.
/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython2.7.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
make[1]: *** [mod_python.so] Error 1
make[1]: Leaving directory `/usr/src/mod_python-3.5.0/src'
make: *** [do_dso] Error 2



这个错误看不懂,不知道如何动手~

论坛徽章:
0
2 [报告]
发表于 2013-12-09 13:50 |只看该作者
问题已解决: python 在 ./configure编译安装的时候必须加参数 --enable-shared


参考:http://superuser.com/questions/5 ... make-the-mod-python
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP