apache下安装mod_gzip失败

apache下安装mod_gzip失败

系统是AS3的,apache是2。0。55,安装mod_gzip-1.3.26.1a

命令是./apxs -i -a -c /root/mod_gzip-1.3.26.1a/mod_gzip.c

出现错误:
/root/mod_gzip-1.3.26.1a/mod_gzip.c:5448: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c:5712: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:5712: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c:5714: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:5714: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c:5735: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:5735: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c:5737: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:5737: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6002: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6002: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6002: too few arguments to function `ap_log_error'
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6006: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6006: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6009: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6009: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6009: too few arguments to function `ap_log_error'
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6012: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6012: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6012: too few arguments to function `ap_log_error'
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6015: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6015: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6015: too few arguments to function `ap_log_error'
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6059: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6059: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6062: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6062: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6097: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6097: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6097: too few arguments to function `ap_log_error'
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6606: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:6606: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c: In function `mod_gzip_open_output_file':
/root/mod_gzip-1.3.26.1a/mod_gzip.c:7063: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:7063: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c: In function `mod_gzip_flush_and_update_counts':
/root/mod_gzip-1.3.26.1a/mod_gzip.c:7142: structure has no member named `client'
/root/mod_gzip-1.3.26.1a/mod_gzip.c:7147: structure has no member named `client'
/root/mod_gzip-1.3.26.1a/mod_gzip.c: In function `mod_gzip_encode_and_transmit':
/root/mod_gzip-1.3.26.1a/mod_gzip.c:7812: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:7812: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c:7812: warning: passing arg 6 of `ap_log_error' makes pointer from integer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:7906: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:7906: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c:7906: warning: passing arg 6 of `ap_log_error' makes pointer from integer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:8056: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:8056: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
/root/mod_gzip-1.3.26.1a/mod_gzip.c: At top level:
/root/mod_gzip-1.3.26.1a/mod_gzip.c:8066: warning: `struct pool' declared inside parameter list
/root/mod_gzip-1.3.26.1a/mod_gzip.c:8066: conflicting types for `mod_gzip_generate_vary_header'
/root/mod_gzip-1.3.26.1a/mod_gzip.h:358: previous declaration of `mod_gzip_generate_vary_header'
/root/mod_gzip-1.3.26.1a/mod_gzip.c: In function `mod_gzip_generate_vary_header':
/root/mod_gzip-1.3.26.1a/mod_gzip.c:8069: `array_header' undeclared (first use in this function)
/root/mod_gzip-1.3.26.1a/mod_gzip.c:8069: `ary' undeclared (first use in this function)
/root/mod_gzip-1.3.26.1a/mod_gzip.c:8071: warning: assignment makes pointer from integer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:8076: warning: assignment makes pointer from integer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:8080: warning: return makes pointer from integer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c: In function `mod_gzip_compress_file':
/root/mod_gzip-1.3.26.1a/mod_gzip.c:8110: warning: passing arg 4 of `ap_log_error' makes integer from pointer without a cast
/root/mod_gzip-1.3.26.1a/mod_gzip.c:8110: warning: passing arg 5 of `ap_log_error' from incompatible pointer type
apxs:Error: Command failed with rc=65536




请问高手问题在哪?
看看你使用的mod_gzip对应的apache应该是什么版本的?
在哪看啊?请指教,谢谢
楼上的高手执教啊!
我和你一样,也是无法编译,下载.so文件也不被apache 2.2.3识别,最后我放弃了。

改用mod_deflate,这是apache 2.X自带的压缩模块,效果不比mod_zip用。

另外有一种说,apache 1.x用mod_zip,2.X用mod_deflate
apache 2.x要用mod_deflate,不過這個 mod_deflate 是以負載換流量。用的時候要根據自己的情況。
请问楼上的mod_deflate在那?我在apache的安装目录下的 modules文件夹下没有找到,是不是要去下载啊?
这个是apache2自带模块。


QUOTE:
原帖由 HonestQiao 于 2006-12-10 22:14 发表
这个是apache2自带模块。

在哪?我没找到,请执教
默认安装就有