|
Tried to run make for the png source just like your document said and these errors came back:
[root@z06 libpng-1.0.6]# make
gcc -I../zlib -Wall -O3 -funroll-loops -c -o png.o png.c
In file included from png.c:14:
png.h:211:18: zlib.h: No such file or directory
In file included from png.h:214,
from png.c:14:
pngconf.h:850: parse error before '*' token
pngconf.h:850: warning: type defaults to `int' in declaration of `png_zcharp'
pngconf.h:850: warning: data definition has no type or storage class
pngconf.h:851: parse error before '*' token
pngconf.h:851: warning: type defaults to `int' in declaration of `png_zcharpp'
pngconf.h:851: warning: data definition has no type or storage class
pngconf.h:852: parse error before '*' token
pngconf.h:852: warning: type defaults to `int' in declaration of `png_zstreamp'
pngconf.h:852: warning: data definition has no type or storage class
In file included from png.c:14:
png.h:877: parse error before "z_stream"
png.h:877: warning: no semicolon at end of struct or union
png.h:945: `gamma' redeclared as different kind of symbol
/usr/include/bits/mathcalls.h:265: previous declaration of `gamma'
png.h:1056: parse error before '}' token
png.h:1987: parse error before "voidp"
png.h:1991: parse error before "voidp"
png.h:2282: parse error before "png_zalloc"
png.h:2282: parse error before "png_ptr"
png.h:2282: warning: type defaults to `int' in declaration of `png_zalloc'
png.h:2282: warning: data definition has no type or storage class
png.h:2285: parse error before "png_ptr"
png.c: In function `png_set_sig_bytes':
png.c:98: dereferencing pointer to incomplete type
png.c: At top level:
png.c:139: parse error before "png_zalloc"
png.c:139: parse error before "png_ptr"
png.c:140: warning: return type defaults to `int'
png.c: In function `png_zalloc':
png.c:141: `items' undeclared (first use in this function)
png.c:141: (Each undeclared identifier is reported only once
png.c:141: for each function it appears in.)
png.c:141: `size' undeclared (first use in this function)
png.c:142: `png_ptr' undeclared (first use in this function)
png.c:154: `voidpf' undeclared (first use in this function)
png.c:154: parse error before "ptr"
png.c: At top level:
png.c:159: parse error before "png_ptr"
png.c: In function `png_zfree':
png.c:161: `png_ptr' undeclared (first use in this function)
png.c:161: `ptr' undeclared (first use in this function)
png.c: In function `png_reset_crc':
png.c:170: dereferencing pointer to incomplete type
png.c:170: warning: implicit declaration of function `crc32'
png.c:170: `Z_NULL' undeclared (first use in this function)
png.c: In function `png_calculate_crc':
png.c:183: dereferencing pointer to incomplete type
png.c:185: dereferencing pointer to incomplete type
png.c:191: dereferencing pointer to incomplete type
png.c:196: dereferencing pointer to incomplete type
png.c:196: dereferencing pointer to incomplete type
png.c:196: `uInt' undeclared (first use in this function)
png.c:196: parse error before "length"
png.c: In function `png_info_destroy':
png.c:464: dereferencing pointer to incomplete type
png.c:466: dereferencing pointer to incomplete type
png.c:467: dereferencing pointer to incomplete type
png.c: In function `png_get_io_ptr':
png.c:481: dereferencing pointer to incomplete type
png.c: In function `png_init_io':
png.c:493: dereferencing pointer to incomplete type
png.c: In function `png_convert_to_rfc1123':
png.c:508: dereferencing pointer to incomplete type
png.c:510: dereferencing pointer to incomplete type
png.c:525: dereferencing pointer to incomplete type
png.c:530: dereferencing pointer to incomplete type
png.c: In function `png_handle_as_unknown':
png.c:595: dereferencing pointer to incomplete type
png.c:597: dereferencing pointer to incomplete type
png.c:597: dereferencing pointer to incomplete type
png.c:598: dereferencing pointer to incomplete type
make: *** [png.o] Error 1
|