The LFS System I'm using is stock(Built exactly according to the LFS book), except for having installed these packages afterwards:
AutoFS
pkg-config
Glib
expat
...all of which are the versions described in the BLFS book.
This's the third LFS System I've made, the first two having apparently had errors during creation I didn't catch until later on. I used jhalfs to make this one, so I'm hoping I won't have to toss this one. I created it using the LFS LiveCD, if the system I used has any bearing.
I got this while running:
make prefix=/usr ZLIBINC= ZLIBLIB= -f scripts/makefile.linux
...after applying the patch successfully.
=Make.log=
gcc -I -Wall -O3 -funroll-loops -c -o png.o png.c
In file included from png.c:13:
png.h:359:18: zlib.h: No such file or directory
In file included from png.h:363,
from png.c:13:
pngconf.h:1175: error: parse error before '*' token
pngconf.h:1175: warning: data definition has no type or storage class
pngconf.h:1176: error: parse error before '*' token
pngconf.h:1176: warning: data definition has no type or storage class
pngconf.h:1177: error: parse error before '*' token
pngconf.h:1177: warning: data definition has no type or storage class
In file included from png.c:13:
png.h:1107: error: parse error before "z_stream"
png.h:1107: warning: no semicolon at end of struct or union
png.h:1179: error: 'gamma' redeclared as different kind of symbol
png.h:1179: error: 'gamma' redeclared as different kind of symbol
png.h:1353: error: parse error before '}' token
png.h:2833: error: parse error before "png_zalloc"
png.h:2833: error: parse error before "png_ptr"
png.h:2833: warning: data definition has no type or storage class
png.h:2836: 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: In function `png_zalloc':
png.c:146: error: `png_ptr' undeclared (first use in this function)
png.c:146: error: (Each undeclared identifier is reported only once
png.c:146: error: for each function it appears in.)
png.c:147: error: dereferencing pointer to incomplete type
png.c:150: error: `items' undeclared (first use in this function)
png.c:150: error: `size' undeclared (first use in this function)
png.c:153: warning: return makes integer from pointer without a cast
png.c:157: error: dereferencing pointer to incomplete type
png.c:159: error: dereferencing pointer to incomplete type
png.c:176: error: `voidpf' undeclared (first use in this function)
png.c:176: error: parse error before "ptr"
png.c: At top level:
png.c :185: error: parse error before "png_ptr"
png.c: In function `png_zfree':
png.c:187: error: `png_ptr' undeclared (first use in this function)
png.c:187: error: `ptr' undeclared (first use in this function)
png.c: In function `png_reset_crc':
png.c:196: error: dereferencing pointer to incomplete type
png.c:196: error: `Z_NULL' undeclared (first use in this function)
png.c: In function `png_calculate_crc':
png.c :209: error: dereferencing pointer to incomplete type
png.c:211: error: dereferencing pointer to incomplete type
png.c:217: error: dereferencing pointer to incomplete type
png.c:222: error: dereferencing pointer to incomplete type
png.c:222: error: dereferencing pointer to incomplete type
png.c:222: error: `uInt' undeclared (first use in this function)
png.c:222: error: parse error before "length"
png.c: In function `png_create_info_struct':
png.c:240: error: dereferencing pointer to incomplete type
png.c:240: error: dereferencing pointer to incomplete type
png.c: In function `png_destroy_info_struct':
png.c:269: error: dereferencing pointer to incomplete type
png.c:270: error: dereferencing pointer to incomplete type
png.c: In function `png_info_destroy':
png.c:585: error: dereferencing pointer to incomplete type
png.c:587: error: dereferencing pointer to incomplete type
png.c:588: error: dereferencing pointer to incomplete type
png.c:589: error: dereferencing pointer to incomplete type
png.c: In function `png_get_io_ptr':
png.c:603: error: dereferencing pointer to incomplete type
png.c: In function `png_init_io':
png.c:617: error: dereferencing pointer to incomplete type
png.c: In function `png_convert_to_rfc1123':
png.c:632: error: dereferencing pointer to incomplete type
png.c:634: error: dereferencing pointer to incomplete type
png.c:660: error: dereferencing pointer to incomplete type
png.c:666: error: dereferencing pointer to incomplete type
png.c: In function `png_handle_as_unknown':
png.c:732: error: dereferencing pointer to incomplete type
png.c:734: error: dereferencing pointer to incomplete type
png.c:734: error: dereferencing pointer to incomplete type
png.c:735: error: dereferencing pointer to incomplete type
png.c: In function `png_reset_zstream':
png.c:746: error: dereferencing pointer to incomplete type
png.c: In function `png_init_mmx_flags':
png.c:765: error: dereferencing pointer to incomplete type
png.c:766: error: dereferencing pointer to incomplete type
png.c:800: error: dereferencing pointer to incomplete type
make: *** [png.o] Error 1
=EOF=
-- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
