LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   ncurses compilation problem in LFS 5.1.1 (https://www.linuxquestions.org/questions/linux-from-scratch-13/ncurses-compilation-problem-in-lfs-5-1-1-a-277844/)

lik 01-14-2005 04:06 PM

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

Yerp 01-14-2005 05:49 PM

well as far as not going to 2.6. you can download a bootable iso image for the LFS 6.0. It contains the 2.6 kernel and has all the packages, lynx, and the entire manual. Download and burn it and you can work from there. This way you can build a 2.6 without even installing one.

http://lfs-mirror.tpegg.org/lfs/packages.html

then scroll to the very bottom. You should see two links for bootable ISO's (Germany and Belgium)

lik 01-14-2005 09:25 PM

Finally I figured out the problem: I didn't correctly generate g++ in previous step (gcc pass 2). I really don't know how I can miss that but keep preceeding. It is just amazing that I can go this far.

Thank for the information of LFS live CD.

-lik


All times are GMT -5. The time now is 08:43 AM.