So I decided to try out the latest systemd LFS dev book (SVN-20150811). The
build when until I reached ncurses 6.0 in chapter 5. Ncurses 6.0 would not
compile. The exact error:

gcc -DHAVE_CONFIG_H -I. -I../include  -D_GNU_SOURCE -DNDEBUG -O2 --param
max-inline-insns-single=1200 -fPIC -c ../ncurses/lib_gen.c -o
../obj_s/lib_gen.o
In file included from ./curses.priv.h:325:0,
                 from ../ncurses/lib_gen.c:19:
_13345.c:1372:15: error: expected ')' before 'int'
../include/curses.h:1943:56: note: in definition of macro 'mouse_trafo'
 #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
                                                        ^
Makefile:1034: recipe for target '../obj_s/lib_gen.o' failed
make[1]: *** [../obj_s/lib_gen.o] Error 1
make[1]: Leaving directory '/mnt/lfs/sources/ncurses-6.0/ncurses'
Makefile:113: recipe for target 'all'

Note: Build host is Kubuntu 15.04 amd64 (x86_64). No C(XX) flags were set.

First I tried applying my basic knowledge of C, but could not find an eror.
So on to google it was. Seems the problem is know upstream:
http://lists.gnu.org/archive/html/bug-ncurses/2015-01/msg00018.html
For me, I grabbed an applied the patch under:
ftp://invisible-island.net/ncurses/6.0/ncurses-6.0-20150810.patch.gz
Now ncurses compiles happily for me under the latest dev build.

Regards,

Rick
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to