安装mod_zip,make命令时出错
[root@rt-a-01 mod_gzip]# make
/home/netrayli/bin/apxs -Wc,-Wall,-O3,-fomit-frame-pointer,-pipe -c mod_gzip.c mod_gzip_debug.c mod_gzip_compress.c -o mod_gzip.so
/home/netrayli/build/libtool --silent --mode=compile gcc -prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pthread -I/home/netrayli/include -I/home/netrayli/include -I/home/netrayli/include -Wall,-O3,-fomit-frame-pointer,-pipe -c -o mod_gzip.lo mod_gzip.c && touch mod_gzip.slo
In file included from mod_gzip.c:105:
mod_gzip.h:104: parse error before `gzip_module'
mod_gzip.h:104: warning: data definition has no type or storage class
mod_gzip.h:358: warning: `struct pool' declared inside parameter list
mod_gzip.h:358: warning: its scope is only this definition or declaration, which is probably not what you want.
mod_gzip.h:363: parse error before `array_header'
mod_gzip.h:363: warning: no semicolon at end of struct or union
mod_gzip.c:111: syntax error before `char'
mod_gzip.c:111: conflicting types for `ap_server_root'
/home/netrayli/include/http_main.h:81: previous declaration of `ap_server_root'
mod_gzip.c:639: syntax error before `module'
mod_gzip.c: In function `mod_gzip_run_handlers':
mod_gzip.c:8080: warning: return makes pointer from integer without a cast
mod_gzip.c: In function `mod_gzip_compress_file':
mod_gzip.c:8110: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
mod_gzip.c:8110: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
apxs:Error: Command failed with rc=65536
.
make: *** [build] Error 1