免费注册 查看新帖 |

Chinaunix

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

[Web] apache动态加载mod_ssl模块 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-30 10:49 |只看该作者 |倒序浏览
编译apache的时候只加载了支持动态模块的mod_so,没有编译任何动态模块,现在想把mod_ssl模块加载上去,用apxs -c mod_ssl.c提示错误:ssl_toolkit_compat.h:248:2: #error "Unrecognized SSL Toolkit!"我装了openssl和openssl-devel,是用rpm包装的。apache编译只用了./configure --enabel-so


环境是:redhat AS5 + apache2.2.9+php

进入源代码目录下,执行/path/to/apxs -c mod_ssl.c报了错误
[root@www1 ssl]# /usr/apache/bin/apxs -i -c mod_ssl.c
/usr/apache/apr/build-1/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/apache//include  -I/usr/apache/apr/include/apr-1   -I/usr/apache/apr-util/include/apr-1   -c -o mod_ssl.lo mod_ssl.c && touch mod_ssl.slo
In file included from ssl_private.h:59,
                 from mod_ssl.c:27:
ssl_toolkit_compat.h:248:2: #error "Unrecognized SSL Toolkit!"
In file included from ssl_private.h:61,
                 from mod_ssl.c:27:
ssl_util_ssl.h:65: error: syntax error before '*' token
ssl_util_ssl.h:66: error: syntax error before '*' token
ssl_util_ssl.h:67: error: syntax error before '*' token
ssl_util_ssl.h:67: error: syntax error before "X509"
ssl_util_ssl.h:67: warning: data definition has no type or storage class
ssl_util_ssl.h:68: error: syntax error before '*' token
ssl_util_ssl.h:68: error: syntax error before "EVP_PKEY"
ssl_util_ssl.h:68: warning: data definition has no type or storage class
ssl_util_ssl.h:69: error: syntax error before '*' token
ssl_util_ssl.h:70: error: syntax error before '*' token
ssl_util_ssl.h:70: warning: data definition has no type or storage class
ssl_util_ssl.h:71: error: syntax error before '*' token
ssl_util_ssl.h:72: error: syntax error before "SSL"
ssl_util_ssl.h:73: error: syntax error before '*' token
ssl_util_ssl.h:74: error: syntax error before '*' token
ssl_util_ssl.h:75: error: syntax error before "X509"
ssl_util_ssl.h:76: error: syntax error before "STACK_OF"
ssl_util_ssl.h:77: error: syntax error before "STACK_OF"
ssl_util_ssl.h:78: error: syntax error before '*' token
ssl_util_ssl.h:82: error: syntax error before '*' token
ssl_util_ssl.h:84: error: syntax error before '*' token
ssl_util_ssl.h:85: warning: data definition has no type or storage class
In file included from mod_ssl.c:27:
ssl_private.h:340: error: syntax error before "SSL"
ssl_private.h:340: warning: no semicolon at end of struct or union
ssl_private.h:342: error: syntax error before '*' token
ssl_private.h:342: warning: data definition has no type or storage class
ssl_private.h:350: error: syntax error before '}' token
ssl_private.h:350: warning: data definition has no type or storage class
ssl_private.h:387: error: syntax error before "X509"
ssl_private.h:387: warning: no semicolon at end of struct or union
ssl_private.h:388: warning: data definition has no type or storage class
ssl_private.h:394: error: syntax error before '}' token
ssl_private.h:394: warning: data definition has no type or storage class
ssl_private.h:400: error: syntax error before "STACK_OF"
ssl_private.h:400: warning: no semicolon at end of struct or union
ssl_private.h:401: warning: data definition has no type or storage class
ssl_private.h:420: error: syntax error before "SSL_CTX"
ssl_private.h:420: warning: no semicolon at end of struct or union
ssl_private.h:423: warning: data definition has no type or storage class
ssl_private.h:424: error: syntax error before '*' token
ssl_private.h:424: warning: data definition has no type or storage class
ssl_private.h:437: error: syntax error before '*' token
ssl_private.h:437: warning: data definition has no type or storage class
ssl_private.h:440: error: syntax error before '}' token
ssl_private.h:440: warning: data definition has no type or storage class
ssl_private.h:450: error: syntax error before "modssl_ctx_t"
ssl_private.h:450: warning: no semicolon at end of struct or union
ssl_private.h:451: warning: data definition has no type or storage class
ssl_private.h:452: error: syntax error before '}' token
ssl_private.h:535: error: syntax error before '*' token
ssl_private.h:535: warning: data definition has no type or storage class
ssl_private.h:549: error: syntax error before '*' token
ssl_private.h:549: error: syntax error before '*' token
ssl_private.h:549: warning: data definition has no type or storage class
ssl_private.h:550: error: syntax error before '*' token
ssl_private.h:550: error: syntax error before '*' token
ssl_private.h:550: warning: data definition has no type or storage class
ssl_private.h:551: error: syntax error before "X509_STORE_CTX"
ssl_private.h:552: error: syntax error before "X509_STORE_CTX"
ssl_private.h:553: error: syntax error before '*' token
ssl_private.h:554: error: syntax error before '*' token
ssl_private.h:555: error: syntax error before '*' token
ssl_private.h:555: error: syntax error before '*' token
ssl_private.h:555: warning: data definition has no type or storage class
ssl_private.h:556: error: syntax error before '*' token
ssl_private.h:557: error: syntax error before "int"
ssl_private.h:563: error: syntax error before "SSL_SESSION"
ssl_private.h:564: error: syntax error before '*' token
ssl_private.h:564: warning: data definition has no type or storage class
ssl_private.h:570: error: syntax error before "SSL_SESSION"
ssl_private.h:571: error: syntax error before '*' token
ssl_private.h:571: warning: data definition has no type or storage class
ssl_private.h:577: error: syntax error before "SSL_SESSION"
ssl_private.h:578: error: syntax error before '*' token
ssl_private.h:578: warning: data definition has no type or storage class
ssl_private.h:584: error: syntax error before "SSL_SESSION"
ssl_private.h:585: error: syntax error before '*' token
ssl_private.h:585: warning: data definition has no type or storage class
ssl_private.h:594: error: syntax error before "SSL"
ssl_private.h:596: error: syntax error before '*' token
ssl_private.h:613: error: syntax error before '*' token
ssl_private.h:622: error: syntax error before '*' token
ssl_private.h:622: warning: data definition has no type or storage class
ssl_private.h:623: error: syntax error before '*' token
ssl_private.h:623: warning: data definition has no type or storage class
mod_ssl.c:287: error: syntax error before '*' token
mod_ssl.c: In function `ssl_init_connection_ctx':
mod_ssl.c:289: error: `sslconn' undeclared (first use in this function)
mod_ssl.c:289: error: (Each undeclared identifier is reported only once
mod_ssl.c:289: error: for each function it appears in.)
mod_ssl.c:289: error: syntax error before ')' token
mod_ssl.c: In function `ssl_proxy_enable':
mod_ssl.c:306: error: `sslconn' undeclared (first use in this function)
mod_ssl.c:308: error: dereferencing pointer to incomplete type
mod_ssl.c:311: error: dereferencing pointer to incomplete type
mod_ssl.c: In function `ssl_engine_disable':
mod_ssl.c:326: error: `sslconn' undeclared (first use in this function)
mod_ssl.c:328: error: dereferencing pointer to incomplete type
mod_ssl.c: In function `ssl_init_ssl_connection':
mod_ssl.c:342: error: `SSL' undeclared (first use in this function)
mod_ssl.c:342: error: `ssl' undeclared (first use in this function)
mod_ssl.c:343: error: `sslconn' undeclared (first use in this function)
mod_ssl.c:343: error: syntax error before ')' token
mod_ssl.c:345: error: `mctx' undeclared (first use in this function)
mod_ssl.c:356: error: dereferencing pointer to incomplete type
mod_ssl.c:356: error: dereferencing pointer to incomplete type
mod_ssl.c:374: error: dereferencing pointer to incomplete type
mod_ssl.c:375: error: dereferencing pointer to incomplete type
mod_ssl.c:400: error: `X509_V_OK' undeclared (first use in this function)
mod_ssl.c: In function `ssl_hook_http_scheme':
mod_ssl.c:411: error: dereferencing pointer to incomplete type
mod_ssl.c:411: error: dereferencing pointer to incomplete type
mod_ssl.c: In function `ssl_hook_default_port':
mod_ssl.c:422: error: dereferencing pointer to incomplete type
mod_ssl.c:422: error: dereferencing pointer to incomplete type
mod_ssl.c: In function `ssl_hook_pre_connection':
mod_ssl.c:432: error: `sslconn' undeclared (first use in this function)
mod_ssl.c:432: error: syntax error before ')' token
mod_ssl.c:437: error: dereferencing pointer to incomplete type
mod_ssl.c:461: error: dereferencing pointer to incomplete type
mod_ssl.c: In function `ssl_hook_Insert_Filter':
mod_ssl.c:471: error: dereferencing pointer to incomplete type
apxs:Error: Command failed with rc=65536
.

望各位高人指点,是不是ssl不能动态后期编译加载呢?

论坛徽章:
0
2 [报告]
发表于 2008-07-30 12:39 |只看该作者
有哪位高人能指点一二么。斑竹大人们快现身啊。

论坛徽章:
0
3 [报告]
发表于 2008-07-30 12:56 |只看该作者
…………我也遇到这个问题了,等答案出现。。。

论坛徽章:
0
4 [报告]
发表于 2008-07-31 11:27 |只看该作者
这里居然没有高手。。。太让人失望了。

论坛徽章:
0
5 [报告]
发表于 2008-07-31 12:41 |只看该作者
哎,我没有在RHEL5下编译apache的习惯。如果用系统自带的不好吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP