LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2618|回复: 2

apache动态加载mod_ssl模块讨论

[复制链接]
发表于 2008-7-30 15:03:28 | 显示全部楼层 |阅读模式
编译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不能动态后期编译加载呢?
 楼主| 发表于 2008-7-31 11:48:20 | 显示全部楼层
没有人能帮我么各位大虾。
回复 支持 反对

使用道具 举报

发表于 2010-4-2 13:33:28 | 显示全部楼层
哎,我也碰到这个问题了~~不知道咋办~~郁闷中~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表