按照要求 報錯了 什么情況
engine_vars.lo ssl_engine_vars.c && touch ssl_engine_vars.slo
ssl_engine_vars.c:870:50: error: ../../modules/loggers/mod_log_config.h: No such file or directory
ssl_engine_vars.c: In function ‘ssl_var_log_config_register’:
ssl_engine_vars.c:881: error: expected ‘=’, ‘,’, ‘;’, ‘a(chǎn)sm’ or ‘__attribute__’ before ‘*’ token
ssl_engine_vars.c:881: error: ‘log_pfn_register’ undeclared (first use in this function)
ssl_engine_vars.c:881: error: (Each undeclared identifier is reported only once
ssl_engine_vars.c:881: error: for each function it appears in.)
ssl_engine_vars.c:883: error: ‘a(chǎn)pr_OFN_ap_register_log_handler_t’ undeclared (first use in this function)
ssl_engine_vars.c:883: error: expected expression before ‘)’ token
apxs:Error: Command failed with rc=65536
.
loggers 忘記上傳 上傳上去 執(zhí)行
/www/wdlinux/httpd-2.2.22/bin/apxs -i -a -D HAVE_OPENSSL=1 -I/usr/include/openssl/ -L/usr/lib/openssl/ -c *.c -lcrypto -lssl -ldl
報錯
wdlinux/httpd-2.2.22/include -I/usr/include/openssl/ -DHAVE_OPENSSL=1 -c -o ssl_engine_vars.lo ssl_engine_vars.c && touch ssl_engine_vars.slo
ssl_engine_vars.c:870:50: error: ../../modules/loggers/mod_log_config.h: No such file or directory
ssl_engine_vars.c: In function ‘ssl_var_log_config_register’:
ssl_engine_vars.c:881: error: expected ‘=’, ‘,’, ‘;’, ‘a(chǎn)sm’ or ‘__attribute__’ before ‘*’ token
ssl_engine_vars.c:881: error: ‘log_pfn_register’ undeclared (first use in this function)
ssl_engine_vars.c:881: error: (Each undeclared identifier is reported only once
ssl_engine_vars.c:881: error: for each function it appears in.)
ssl_engine_vars.c:883: error: ‘a(chǎn)pr_OFN_ap_register_log_handler_t’ undeclared (first use in this function)
ssl_engine_vars.c:883: error: expected expression before ‘)’ token
apxs:Error: Command failed with rc=65536
Libraries have been installed in:
/www/wdlinux/httpd-2.2.22/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /www/wdlinux/httpd-2.2.22/modules/mod_ssl.so
[activating module `ssl' in /www/wdlinux/httpd-2.2.22/conf/httpd.conf]