Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 01-14-2005, 04:06 PM   #1
Registered: Jan 2005
Posts: 8

Rep: Reputation: 0
ncurses compilation problem in LFS 5.1.1


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++/
/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/ undefined reference to `_dl_tls_symaddr@GLIBC_PRIVATE'
/lib/ 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.

Old 01-14-2005, 05:49 PM   #2
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Rep: Reputation: 15
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.

then scroll to the very bottom. You should see two links for bootable ISO's (Germany and Belgium)
Old 01-14-2005, 09:25 PM   #3
Registered: Jan 2005
Posts: 8

Original Poster
Rep: Reputation: 0
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ncurses problem sjp Programming 7 01-26-2005 06:15 AM
Error compiling ncurses in lfs 6.0 Drunkalot Linux From Scratch 2 12-25-2004 11:21 PM
ncurses problem ina Linux - Software 2 09-30-2002 11:26 AM
Problem ncurses ina Linux - General 0 09-19-2002 01:50 AM
ncurses-5.2-28 conflicts with file from package ncurses-5.2-12 tubby Linux - Software 4 06-16-2002 12:00 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration