LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-09-2011, 12:31 AM   #1
oldcripple
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
LFS 6.8 step 5.14 - Ncurses segfault on 'make'


Hi,

Giving this whole LFS thing a spin, got no errors up to the point where I have to install ncurses then I get the following:

Code:
cd man && make DESTDIR="" all
make[1]: Entering directory `/mnt/lfs/sources/ncurses-5.7/man'
sh ./MKterminfo.sh ./terminfo.head ./../include/Caps ./terminfo.tail >terminfo.5
make[1]: Leaving directory `/mnt/lfs/sources/ncurses-5.7/man'
cd include && make DESTDIR="" all
make[1]: Entering directory `/mnt/lfs/sources/ncurses-5.7/include'
cat curses.head >curses.h
AWK=gawk sh ./MKkey_defs.sh ./Caps >>curses.h
sh -c 'if test "chtype" = "cchar_t" ; then cat ./curses.wide >>curses.h ; fi'
cat ./curses.tail >>curses.h
sh ./MKhashsize.sh ./Caps >hashsize.h
AWK=gawk sh ./MKncurses_def.sh ./ncurses_defs >ncurses_def.h
AWK=gawk sh ./MKparametrized.sh ./Caps >parametrized.h
gawk -f MKterm.h.awk ./Caps > term.h
sh ./edit_cfg.sh ../include/ncurses_cfg.h term.h
** edit: HAVE_TCGETATTR 1
** edit: HAVE_TERMIOS_H 1
** edit: HAVE_TERMIO_H 1
** edit: BROKEN_LINKER 0
make[1]: Leaving directory `/mnt/lfs/sources/ncurses-5.7/include'
cd ncurses && make DESTDIR="" all
make[1]: Entering directory `/mnt/lfs/sources/ncurses-5.7/ncurses'
gawk -f ./tinfo/MKcodes.awk bigstrings=1 ./../include/Caps >codes.c
gcc -o make_hash -DHAVE_CONFIG_H -I../ncurses -I. -I./../include -I../include -DHAVE_CONFIG_H -I../ncurses -I. -I. -I../include  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DNDEBUG -I/tools/include -O2 --param max-inline-insns-single=1200 -DMAIN_PROGRAM ./tinfo/comp_hash.c  
sh -e ./tinfo/MKcaptab.sh gawk 1 ./tinfo/MKcaptab.awk ./../include/Caps > comp_captab.c
./tinfo/MKcaptab.sh: line 48: 11413 Segmentation fault      ./make_hash 1 info $OPT1 < $DATA
make[1]: *** [comp_captab.c] Error 139
make[1]: Leaving directory `/mnt/lfs/sources/ncurses-5.7/ncurses'
make: *** [all] Error 2

Then, I figured I would try running 'make' again, expecting the same thing to happen...it didnt, I got a completely different error and NO segfault to be seen:

Code:
gcc ../obj_s/tic.o ../obj_s/dump_entry.o  -I../progs -I. -DHAVE_CONFIG_H -I. -I../include  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DNDEBUG -I/tools/include -O2 --param max-inline-insns-single=1200 -fPIC  -L../lib -lncurses -L../lib -lncurses    -o tic
../obj_s/dump_entry.o: In function `nametrans':
dump_entry.c:(.text+0x98a): undefined reference to `_nc_get_hash_table'
../lib/libncurses.so: undefined reference to `_nc_get_alias_table'
../lib/libncurses.so: undefined reference to `_nc_get_table'
collect2: ld returned 1 exit status
make[1]: *** [tic] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/ncurses-5.7/progs'
make: *** [all] Error 2
I've tried deleting the dir and reextracting and still the same thing happens, 'configure' didnt seem to return any errors that I see and every step before this has returned 0 errors.

I am at a loss, any insight would be appreciated.
 
Old 08-10-2011, 05:50 PM   #2
dickey
Member
 
Registered: Jun 2009
Posts: 43

Rep: Reputation: 18
ncurses is a little harder to install than some other programs, since there are usually system libraries which are found first. For the simple cases (and replacing your system libraries isn't advisable unless you really know what differences to overcome), you can help the tic program along using the misc/shlib script. However the problem with make_hash isn't that simple to see from the logs. Resuming the build with a "make" rather than "make clean; make" isn't going to improve things, but rather compound the original problem. I'd have stopped on the make_hash to see what the problem was, then done a rebuild.
 
  


Reply



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
LFS 6.5 : Step 6.7 Installing Linux API headers : make headers_check/install error tsong99 Linux From Scratch 12 12-25-2012 04:26 PM
LFS Step 6.7 - make headers_check fails ice13berg Linux From Scratch 7 01-07-2011 09:05 AM
step by step guide for installing LFS 6.6 on kubuntu 9.10 smkh Linux From Scratch 6 04-07-2010 03:34 PM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 08:13 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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

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