On Fri, Aug 22, at 08:29 Mikołaj D1SoveR Banasik wrote: > I've decided to compile LFS using SVN-20080711 version of book. > Everything was going smooth until I had to compile Ncurses according > to 6.20 chapter of book. Regardless of applied patches and configure > options, I keep getting this error just at the beggining of compilation: > > root:/sources/ncurses-5.6# make > cd man && make DESTDIR="" all > make[1]: Entering directory `/sources/ncurses-5.6/man' > sh ./MKterminfo.sh ./terminfo.head ./../include/Caps ./terminfo.tail > >terminfo.5 > make[1]: Leaving directory `/sources/ncurses-5.6/man' > cd include && make DESTDIR="" all > make[1]: Entering directory `/sources/ncurses-5.6/include' > cat curses.head >curses.h > AWK=gawk 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 > ./MKhashsize.sh: line 38: unexpected EOF while looking for matching ``' > ./MKhashsize.sh: line 43: syntax error: unexpected end of file > make[1]: *** [hashsize.h] Error 2 > make[1]: Leaving directory `/sources/ncurses-5.6/include' > make: *** [all] Error 2 > > I've tried looking for it using a few search engines but, > unfortunately, couldn't > find any kind of solution. Does someone here know how to resolve the problem?
Try one of the following: sed -i '/^TABSIZE/s/=`\(.*\)`/=$(\1)/' include/MKhashsize.sh sed -i 's/\[ #\]/#/' include/MKhashsize.sh sed -i '/^TABSIZE/s/\(`.*`\)/"\1"/' include/MKhashsize.sh Regards, Ag. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
