- 论坛徽章:
- 0
|
我使用的操作系统为REDHAT 6.2,在其下编译apache_1.3.33没有问题,但在编译apache_2.0.54时无法通过。出错信息如下:
/usr/include/zlib.h:40: warning: `ZLIB_VERSION' redefined
/usr/local/include/zlib.h:40: warning: this is the location of the previous definition
/usr/include/zlib.h:157: warning: `Z_ASCII' redefined
/usr/local/include/zlib.h:198: warning: this is the location of the previous definition
In file included from /usr/include/zlib.h:34,
from /usr/include/zutil.h:16,
from mod_deflate.c:43:
/usr/include/zconf.h:214: warning: redefinition of `Byte'
/usr/local/include/zconf.h:261: warning: `Byte' previously declared here
/usr/include/zconf.h:216: warning: redefinition of `uInt'
/usr/local/include/zconf.h:263: warning: `uInt' previously declared here
/usr/include/zconf.h:217: warning: redefinition of `uLong'
/usr/local/include/zconf.h:264: warning: `uLong' previously declared here
/usr/include/zconf.h:223: warning: redefinition of `Bytef'
/usr/local/include/zconf.h:270: warning: `Bytef' previously declared here
/usr/include/zconf.h:225: warning: redefinition of `charf'
/usr/local/include/zconf.h:272: warning: `charf' previously declared here
/usr/include/zconf.h:226: warning: redefinition of `intf'
/usr/local/include/zconf.h:273: warning: `intf' previously declared here
/usr/include/zconf.h:227: warning: redefinition of `uIntf'
/usr/local/include/zconf.h:274: warning: `uIntf' previously declared here
/usr/include/zconf.h:228: warning: redefinition of `uLongf'
/usr/local/include/zconf.h:275: warning: `uLongf' previously declared here
/usr/include/zconf.h:231: warning: redefinition of `voidpf'
/usr/local/include/zconf.h:279: warning: `voidpf' previously declared here
/usr/include/zconf.h:232: warning: redefinition of `voidp'
/usr/local/include/zconf.h:280: warning: `voidp' previously declared here
In file included from /usr/include/zutil.h:16,
from mod_deflate.c:43:
/usr/include/zlib.h:63: warning: redefinition of `alloc_func'
/usr/local/include/zlib.h:77: warning: `alloc_func' previously declared here
/usr/include/zlib.h:64: warning: redefinition of `free_func'
/usr/local/include/zlib.h:78: warning: `free_func' previously declared here
/usr/include/zlib.h:68: redefinition of `struct z_stream_s'
/usr/include/zlib.h:87: warning: redefinition of `z_stream'
/usr/local/include/zlib.h:101: warning: `z_stream' previously declared here
/usr/include/zlib.h:89: warning: redefinition of `z_streamp'
/usr/local/include/zlib.h:103: warning: `z_streamp' previously declared here
/usr/include/zlib.h:657: warning: redefinition of `gzFile'
/usr/local/include/zlib.h:1066: warning: `gzFile' previously declared here
/usr/include/zlib.h:705: conflicting types for `gzwrite'
/usr/local/include/zlib.h:1115: previous declaration of `gzwrite'
make[4]: *** [mod_deflate.slo] Error 1
make[4]: Leaving directory `/tmp/httpd-2.0.54/modules/filters'
make[3]: *** [shared-build-recursive] Error 1
make[3]: Leaving directory `/tmp/httpd-2.0.54/modules/filters'
make[2]: *** [shared-build-recursive] Error 1
make[2]: Leaving directory `/tmp/httpd-2.0.54/modules'
make[1]: *** [shared-build-recursive] Error 1
make[1]: Leaving directory `/tmp/httpd-2.0.54'
make: *** [all-recursive] Error 1
请问各位大侠这是什么原因,应该如何解决。谢谢! |
|