I've got a guy asking for support where Ncurses 5.9 fail to build at temporary chapter.
It seems that Ncurses there uses mawk by default even tough gawk is installed (checked host requirements). Since mawk is used, headers aren't generated correctly and make fails. $ make cd man && make DESTDIR="" all make[1]: Entering directory `/mnt/lfs/sources/ncurses-5.9/man' sh ./MKterminfo.sh ./terminfo.head ./../include/Caps ./terminfo.tail >terminfo.5 make[1]: Leaving directory `/mnt/lfs/sources/ncurses-5.9/man' cd include && make DESTDIR="" all make[1]: Entering directory `/mnt/lfs/sources/ncurses-5.9/include' cat curses.head >curses.h AWK=mawk sh ./MKkey_defs.sh ./Caps >>curses.h sh -c 'if test "chtype" = "cchar_t" ; then cat ./curses.wide >>curses.h ; fi' cat ./curses.tail >>curses.h sh ./MKhashsize.sh ./Caps >hashsize.h AWK=mawk sh ./MKncurses_def.sh ./ncurses_defs >ncurses_def.h AWK=mawk sh ./MKparametrized.sh ./Caps >parametrized.h touch config.h mawk -f MKterm.h.awk ./Caps > term.h sh ./edit_cfg.sh ../include/ncurses_cfg.h term.h ** edit: HAVE_TCGETATTR 1 ** edit: HAVE_TERMIOS_H 1 ** edit: HAVE_TERMIO_H 1 ** edit: BROKEN_LINKER 0 make[1]: Leaving directory `/mnt/lfs/sources/ncurses-5.9/include' cd ncurses && make DESTDIR="" all make[1]: Entering directory `/mnt/lfs/sources/ncurses-5.9/ncurses' mawk -f ./tinfo/MKcodes.awk bigstrings=1 ./../include/Caps >codes.c gcc -o make_hash -DHAVE_CONFIG_H -I../ncurses -I. -I./../include -I../include -DUSE_BUILD_CC -DHAVE_CONFIG_H -I../ncurses -I. -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -I. -I../include -I/tools/include -O2 --param max-inline-insns-single=1200 ./tinfo/make_hash.c In file included from ./../include/ncurses_cfg.h:177:0, from ../ncurses/build.priv.h:53, from ./tinfo/make_hash.c:40: ./../include/ncurses_def.h:5:0: error: unterminated #ifndef make[1]: *** [make_hash] Error 1 after running "AWK=gawk ./configure ...", build went fine. Has anyone else experienced this? I did have mawk on Debian when I've built my LFS, but ncurses built fine there. I've also asked him to post his "env" output, and also there everything seemed fine. So, has anyone got any idea why is mawk being detected instead of mawk? /usr/bin/awk is symlink to gawk, not mawk. I think he uses Ubuntu, I remember seeing GCC 4.6.1 with Ubuntu stuff in hostreqs output. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page