I use Ubuntu 9.04 and i'm following the instructions from LFS 6.4 and gcc 4.3.2. I've googled it a little and this seems to be a gcc 4.4.0 specific problem. The only thing i compiled with gcc 4.4.0 was glibc(which refused to work with 4.3.2) but i don't think that has something to do with the problem. The errors are:
Code:
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../intl -g -O2 -MT mbchar.o -MD -MP -MF $depbase.Tpo -c -o mbchar.o mbchar.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from mbchar.h:157,
from mbchar.c:21:
/tools/include/wctype.h:112: error: expected ')' before '__wc'
/tools/include/wctype.h:118: error: expected ')' before '__wc'
/tools/include/wctype.h:121: error: expected ')' before '__wc'
/tools/include/wctype.h:125: error: expected ')' before '__wc'
/tools/include/wctype.h:129: error: expected ')' before '__wc'
/tools/include/wctype.h:134: error: expected ')' before '__wc'
/tools/include/wctype.h:137: error: expected ')' before '__wc'
/tools/include/wctype.h:142: error: expected ')' before '__wc'
/tools/include/wctype.h:147: error: expected ')' before '__wc'
/tools/include/wctype.h:152: error: expected ')' before '__wc'
/tools/include/wctype.h:157: error: expected ')' before '__wc'
/tools/include/wctype.h:163: error: expected ')' before '__wc'
/tools/include/wctype.h:176: error: expected ')' before '__wc'
/tools/include/wctype.h:195: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'towlower'
/tools/include/wctype.h:198: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'towupper'
/tools/include/wctype.h:222: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'towctrans'
/tools/include/wctype.h:231: error: expected ')' before '__wc'
/tools/include/wctype.h:237: error: expected ')' before '__wc'
/tools/include/wctype.h:240: error: expected ')' before '__wc'
/tools/include/wctype.h:244: error: expected ')' before '__wc'
/tools/include/wctype.h:248: error: expected ')' before '__wc'
/tools/include/wctype.h:253: error: expected ')' before '__wc'
/tools/include/wctype.h:256: error: expected ')' before '__wc'
/tools/include/wctype.h:261: error: expected ')' before '__wc'
/tools/include/wctype.h:266: error: expected ')' before '__wc'
/tools/include/wctype.h:271: error: expected ')' before '__wc'
/tools/include/wctype.h:276: error: expected ')' before '__wc'
/tools/include/wctype.h:281: error: expected ')' before '__wc'
/tools/include/wctype.h:290: error: expected ')' before '__wc'
/tools/include/wctype.h:299: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'towlower_l'
/tools/include/wctype.h:302: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'towupper_l'
/tools/include/wctype.h:310: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'towctrans_l'
In file included from mbchar.c:21:
mbchar.h:239: error: expected ')' before 'wc'
make[4]: *** [mbchar.o] Error 1
make[4]: Leaving directory `/media/sda8/sources/findutils-4.4.0/gnulib/lib'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/media/sda8/sources/findutils-4.4.0/gnulib/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/media/sda8/sources/findutils-4.4.0/gnulib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/sda8/sources/findutils-4.4.0'
make: *** [all] Error 2