ncurses compilation problem in LFS 5.1.1
Hi,
I am learning LFS 5.1.1. The reason not going to 6.0 is that I don't have 2.6 kernel as required in 6.0. I followed the instructions and preceeded to the ncurses section in chapter 5, where I got compilation errors as follows:
cd ../obj_s; /usr/bin/g++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include -D_GNU_SOURCE -DNDEBUG -I/tools/include -O2 -fPIC -c ../c++/demo.cc
/usr/bin/g++ -o demo ../obj_s/demo.o -L../lib -lncurses++ -L../lib -lform -lmenu -lpanel -lncurses -Wl,-rpath,/mnt/lfs/sources/ncurses-5.4/lib -I../c++ -I../include -I. -DHAVE_CONFIG_H -I. -I../include -D_GNU_SOURCE -DNDEBUG -I/tools/include -O2 -fPIC
/lib/libc.so.6: undefined reference to `_dl_tls_symaddr@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `__libc_stack_end@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
make[1]: *** [demo] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/ncurses-5.4/c++'
make: *** [all] Error 2
The host system is Knoppix 3.4. I searched the internet including this forum but could not find a solution. Can anybody here give me any hint?
Thank you for your time.
-lik
|