- 论坛徽章:
- 0
|
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 没问题的 |
|