Ncurses Chapter 6.10 compilation error
<sfeebots454 <at> cfl.rr.com>
2016-01-15 16:47:19 GMT
Going along swimmingly until 6.10 Ncurses:
x86_64-unknown-linux-gnu-gcc -m64 -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,
_5082.c:843:15: error: expected ')' before 'int'
../include/curses.h:1631:56: note: in definition of macro 'mouse_trafo'
#define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
Makefile:976: recipe for target '../obj_s/lib_gen.o' failed
make: *** [../obj_s/lib_gen.o] Error 1
make: Leaving directory '/mnt/clfs/sources/ncurses-6.0/ncurses'
Makefile:113: recipe for target 'all' failed
make: *** [all] Error 2
At this point I am lost. Not a programmer but is this not a syntax error. Web search leads me to believe by
adding braces around a line of code containing "int", turning a declaration into a statement could solve
this. Are the numbers 5082.c:843:15 and 1631:56 pointing towards lines of code? Is Makefile:976 the
starting point to find the aforementioned line of code?
The file lib_gen.c has this to say, " * DO NOT EDIT THIS FILE BY HAND! * It is generated by ./base/MKlib_gen.sh
generated." Code generating code!
I compiled LFS 6 times on my old D945GNT Pentium D machine and every time ended up with an OS that dumped kernel
panic messages on the terminal prompt and inside nano and elinks. The old HW was the cause: plenty of
glitches and lockups. On this Skylake UEFI machine CLFS x86_64 Multi will produce a useful OS.
I have a Sams Teach Yourself book titled "C for Linux Programming". If somebody could point me towards an
open source API I might be able to self-help to some degree.
Tell me what you need to understand this problem and how to get large pieces of output to you outside of email.