免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1552 | 回复: 1
打印 上一主题 下一主题

[Web] 求教,编译APACHE时出错,请问如何解决 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-04 22:19 |只看该作者 |倒序浏览
我使用的操作系统为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


请问各位大侠这是什么原因,应该如何解决。谢谢!

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
2 [报告]
发表于 2006-05-05 12:05 |只看该作者
你的apache对应的zlib估计版本不对,看看手册的说明要求的具体办本
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP