|
|

楼主 |
发表于 2006-7-18 09:16:32
|
显示全部楼层
手册没有configure,直接make的,我执行make prefix=/usr ZLIBINC=/usr/include ZLIBLIB=/usr/lib -f scripts/makefile.linux,然后报错:gcc -I/usr/include -Wall -O3 -funroll-loops -c -o png.o png.c
In file included from png.c:13:
png.h:329:18: zlib.h: No such file or directory
In file included from png.h:332,
from png.c:13:
pngconf.h:1099: error: parse error before '*' token
pngconf.h:1099: warning: type defaults to `int' in declaration of `png_zcharp'
pngconf.h:1099: warning: data definition has no type or storage class
pngconf.h:1100: error: parse error before '*' token
pngconf.h:1100: warning: type defaults to `int' in declaration of `png_zcharpp'
pngconf.h:1100: warning: data definition has no type or storage class
pngconf.h:1101: error: parse error before '*' token
pngconf.h:1101: warning: type defaults to `int' in declaration of `png_zstreamp'pngconf.h:1101: warning: data definition has no type or storage class
In file included from png.c:13:
png.h:1045: error: parse error before "z_stream"
png.h:1045: warning: no semicolon at end of struct or union
png.h:1117: error: 'gamma' redeclared as different kind of symbol
png.h:1117: error: 'gamma' redeclared as different kind of symbol
png.h:1283: error: parse error before '}' token
png.h:2702: error: parse error before "png_zalloc"
png.h:2702: error: parse error before "png_ptr"
png.h:2702: warning: type defaults to `int' in declaration of `png_zalloc'
png.h:2702: warning: data definition has no type or storage class
png.h:2705: error: parse error before "png_ptr"
png.c: In function `png_set_sig_bytes':
png.c:98: error: dereferencing pointer to incomplete type
png.c: At top level:
png.c:143: error: parse error before "png_zalloc"
png.c:143: error: parse error before "png_ptr"
png.c:144: warning: return type defaults to `int'
png.c: In function `png_zalloc':
png.c:145: error: `items' undeclared (first use in this function)
png.c:145: error: (Each undeclared identifier is reported only once
png.c:145: error: for each function it appears in.)
png.c:145: error: `size' undeclared (first use in this function)
png.c:147: error: `png_ptr' undeclared (first use in this function)
png.c:148: error: dereferencing pointer to incomplete type
png.c:150: error: dereferencing pointer to incomplete type
png.c:152: error: dereferencing pointer to incomplete type
png.c:156: error: `voidpf' undeclared (first use in this function)
png.c:156: error: parse error before "ptr"
png.c:169: error: parse error before "ptr"
png.c: At top level:
png.c:178: error: parse error before "png_ptr"
png.c: In function `png_zfree':
png.c:180: error: `png_ptr' undeclared (first use in this function)
png.c:180: error: `ptr' undeclared (first use in this function)
png.c: In function `png_reset_crc':
png.c:189: error: dereferencing pointer to incomplete type
png.c:189: warning: implicit declaration of function `crc32'
png.c:189: error: `Z_NULL' undeclared (first use in this function)
png.c: In function `png_calculate_crc':
png.c:202: error: dereferencing pointer to incomplete type
png.c:204: error: dereferencing pointer to incomplete type
png.c:210: error: dereferencing pointer to incomplete type
png.c:215: error: dereferencing pointer to incomplete type
png.c:215: error: dereferencing pointer to incomplete type
png.c:215: error: `uInt' undeclared (first use in this function)
png.c:215: error: parse error before "length"
png.c: In function `png_create_info_struct':
png.c:233: error: dereferencing pointer to incomplete type
png.c:233: error: dereferencing pointer to incomplete type
png.c: In function `png_destroy_info_struct':
png.c:262: error: dereferencing pointer to incomplete type
png.c:263: error: dereferencing pointer to incomplete type
png.c: In function `png_info_destroy':
png.c:576: error: dereferencing pointer to incomplete type
png.c:578: error: dereferencing pointer to incomplete type
png.c:579: error: dereferencing pointer to incomplete type
png.c:580: error: dereferencing pointer to incomplete type
png.c: In function `png_get_io_ptr':
png.c:594: error: dereferencing pointer to incomplete type
png.c: In function `png_init_io':
png.c:608: error: dereferencing pointer to incomplete type
png.c: In function `png_convert_to_rfc1123':
png.c:623: error: dereferencing pointer to incomplete type
png.c:625: error: dereferencing pointer to incomplete type
png.c:651: error: dereferencing pointer to incomplete type
png.c:657: error: dereferencing pointer to incomplete type
png.c: In function `png_handle_as_unknown':
png.c:721: error: dereferencing pointer to incomplete type
png.c:723: error: dereferencing pointer to incomplete type
png.c:723: error: dereferencing pointer to incomplete type
png.c:724: error: dereferencing pointer to incomplete type
png.c: In function `png_reset_zstream':
png.c:735: warning: implicit declaration of function `inflateReset'
png.c:735: error: dereferencing pointer to incomplete type
png.c: In function `png_init_mmx_flags':
png.c:754: error: dereferencing pointer to incomplete type
png.c:755: error: dereferencing pointer to incomplete type
png.c:789: error: dereferencing pointer to incomplete type
make: *** [png.o] Error 1 |
|