免费注册 查看新帖 |

Chinaunix

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

centeos 64 系统下 php5.2.6添加openssl模块报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-02-22 11:35 |只看该作者 |倒序浏览
本帖最后由 yingtank 于 2012-02-22 11:38 编辑

测试服务器用php5.2.6开发的网站,到正式服我也用的是php5.2.6,现在我不想重新编译php,就用phpize来添加openssl模块。但是报以下错误。
  1. gcc -I. -I/home/download/php-5.2.6/ext/openssl -DPHP_ATOM_INC -I/home/download/php-5.2.6/ext/openssl/include -I/home/download/php-5.2.6/ext/openssl/main -I/home/download/php-5.2.6/ext/openssl -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/download/php-5.2.6/ext/openssl/openssl.c  -fPIC -DPIC -o .libs/openssl.o
  2. /home/download/php-5.2.6/ext/openssl/openssl.c:229: error: expected specifier-qualifier-list before 'LHASH'
  3. /home/download/php-5.2.6/ext/openssl/openssl.c:410: error: expected declaration specifiers or '...' before 'LHASH'
  4. /home/download/php-5.2.6/ext/openssl/openssl.c: In function 'php_openssl_config_check_syntax':
  5. /home/download/php-5.2.6/ext/openssl/openssl.c:416: error: 'config' undeclared (first use in this function)
  6. /home/download/php-5.2.6/ext/openssl/openssl.c:416: error: (Each undeclared identifier is reported only once
  7. /home/download/php-5.2.6/ext/openssl/openssl.c:416: error: for each function it appears in.)
  8. /home/download/php-5.2.6/ext/openssl/openssl.c: In function 'add_oid_section':
  9. /home/download/php-5.2.6/ext/openssl/openssl.c:435: error: 'struct php_x509_request' has no member named 'req_config'
  10. /home/download/php-5.2.6/ext/openssl/openssl.c:439: error: 'struct php_x509_request' has no member named 'req_config'
复制代码
我在测试服务器添加openssl.so是没有问题的,测试服务器用的是centos5.5 32位的系统。

论坛徽章:
0
2 [报告]
发表于 2012-02-22 11:59 |只看该作者
没人遇到过这样的问题吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP