动态加载mod_ssl出错了,请求帮助(结贴)
linuxnextyear
|
1#
linuxnextyear 发表于 2007-08-24 17:18
动态加载mod_ssl出错了,请求帮助(结贴)
环境是:redhat AS4 + apache2.2.4
编译的时候没有--enable-ssl,所以只能动态加载了 进入源代码目录下,执行/path/to/apxs -i -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这个模块没有编译安装成静态模块,我从新编译可以吗?这是以前的配置是就被覆盖了?还是只是升级(增加一些东西)?? |