免费注册 查看新帖 |

Chinaunix

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

zlib 1.2.3 编译错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-07-26 21:16 |只看该作者 |倒序浏览
Debian sarge/etch 下:

#./configure

Checking for gcc...
Building static library libz.a version 1.2.3 with gcc.
Checking for unistd.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()
Checking for snprintf() in stdio.h... No.
  WARNING: snprintf() not found, falling back to sprintf(). zlib
  can build but will be open to possible buffer-overflow security
  vulnerabilities.
Checking for return value of sprintf()... No.
  WARNING: apparently sprintf() does not return a value. zlib
  can build but will be open to possible string-format security
  vulnerabilities.
Checking for errno.h... No.
Checking for mmap support... No.


#make

gcc -O3 -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H   -c -o example.o example.c
example.c:8:19: stdio.h: No such file or directory
example.c:12:22: string.h: No such file or directory
example.c:13:22: stdlib.h: No such file or directory
example.c: In function `test_compress':
example.c:67: error: `stderr' undeclared (first use in this function)
example.c:67: error: (Each undeclared identifier is reported only once
example.c:67: error: for each function it appears in.)
example.c: In function `test_gzio':
example.c:99: error: `NULL' undeclared (first use in this function)
example.c:100: error: `stderr' undeclared (first use in this function)
example.c: In function `test_deflate':
example.c:182: error: `stderr' undeclared (first use in this function)
example.c: In function `test_inflate':
example.c:225: error: `stderr' undeclared (first use in this function)
example.c: In function `test_large_deflate':
example.c:260: error: `stderr' undeclared (first use in this function)
example.c: In function `test_large_inflate':
example.c:320: error: `stderr' undeclared (first use in this function)
example.c: In function `test_flush':
example.c:357: error: `stderr' undeclared (first use in this function)
example.c: In function `test_sync':
example.c:399: error: `stderr' undeclared (first use in this function)
example.c: In function `test_dict_deflate':
example.c:438: error: `stderr' undeclared (first use in this function)
example.c: In function `test_dict_inflate':
example.c:480: error: `stderr' undeclared (first use in this function)
example.c: In function `main':
example.c:524: error: `stderr' undeclared (first use in this function)
make: *** [example.o] Error 1


什么原因呢?原来 1.2.2 没问题的

论坛徽章:
0
2 [报告]
发表于 2005-07-27 10:06 |只看该作者

zlib 1.2.3 编译错误

已经搞定,原来是安装系统的时候网络不稳 libc-dev 没有被安装
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP