parse error building libc-5.4.46
dwalker@eskimo.com
dwalker@eskimo.com
Wed Aug 26 17:28:00 GMT 1998
I get a error trying to build libc-5.4.46 with egcs 1.03a. Here are
the error messages.
/usr/bin/gcc -V egcs-2.90.29 -b i586-pc-linux-gnulibc1 -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -O1 -funroll-loops -I../sysdeps/linux -I../libio -I../libio/stdio -DNLS -I../nls -DYP -DNO_SHADOW -D_GNU_SOURCE -DSTDC_HEADERS -DUSG -DDIRENT -DSYSV -DUSE_BSD_REGEX -D_LIBC -DINTERNAL_LINUX_C_LIB -D_REENTRANT -Wall -Wstrict-prototypes -Wmissing-prototypes -funsigned-char -I../internal -nostdinc -I../../include -I/usr/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.29/include -c assert.c -o ../elfstatic/libc/assert.o
In file included from assert.c:22:
../../include/stdlib.h:333: parse error before `*'
../../include/stdlib.h:333: warning: function declaration isn't a prototype
../../include/stdlib.h:336: parse error before `wchar_t'
../../include/stdlib.h:336: warning: function declaration isn't a prototype
../../include/stdlib.h: In function `mblen':
../../include/stdlib.h:340: `wchar_t' undeclared (first use this function)
../../include/stdlib.h:340: (Each undeclared identifier is reported only once
../../include/stdlib.h:340: for each function it appears in.)
../../include/stdlib.h:340: parse error before `)'
../../include/stdlib.h: At top level:
../../include/stdlib.h:345: parse error before `*'
../../include/stdlib.h:345: warning: function declaration isn't a prototype
../../include/stdlib.h:347: warning: type defaults to `int' in declaration of `wchar_t'
../../include/stdlib.h:347: parse error before `*'
../../include/stdlib.h:347: warning: function declaration isn't a prototype
assert.c:112: warning: `__elf_set___libc_subinit_element_set_progname__' defined but not used
make[1]: *** [../elfstatic/libc/assert.o] Error 1
make[1]: Leaving directory `/usr/src/libc-5.4.46/libc/assert'
make: *** [lib] Error 2
How can I fix this? Thanks.
David
More information about the Gcc-bugs
mailing list