LinuxQuestions.org
Visit Jeremy's Blog.
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 02-04-2003, 02:24 PM   #1
shaurz
LQ Newbie
 
Registered: Feb 2003
Distribution: Arch
Posts: 5

Rep: Reputation: 0
chapter 5 - bash won't build


I promised myself I would build an LFS system eventually, so here I am...

I am building on Slackware 8.1, with EVERY package installed. This is LFS version 4.0.

I'm on chapter 5, the first compile, bash! The error:

gcc -s -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde -L./lib/malloc -L./lib/sh -static -static -rdynamic -g -O2 -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o arrayfunc.o braces.o bracecomp.o bashhist.o bashline.o list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o syntax.o xmalloc.o -lbuiltins -lsh -lreadline -lhistory -lcurses -lglob -ltilde -lmalloc
/usr/i386-slackware-linux/bin/ld: cannot find -lcurses
collect2: ld returned 1 exit status
make: *** [bash] Error 1
lfs@proxima:/lfs/static/bash-2.05a$

I checked out /usr/i386-slackware-linux/bin/ld and it is a link to /usr/bin/ld. I checked that file also, and it seems to be intact.

It looks to me as this is the final command where all the object code is linked together. I checked the output and there weren't any errors beforehand so this is the only problem.

Hint?
 
Old 02-04-2003, 08:20 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
-lcurses

ld is complaining that it can't find "-lcurses". Did you verify you have the libncurses library installed? Right above the command line to compile bash, they tell you to:

ln -s libncurses.a /usr/lib/libcurses.a

Make sure libcurses.a exists, and make sure the symbolic link was made properly. If you've got all that, then check over the command you gave to compile.

Other than that, I haven't got a clue.
 
Old 02-05-2003, 01:44 AM   #3
TheMad
LQ Newbie
 
Registered: Jan 2003
Posts: 29

Rep: Reputation: 15
I got the same error message. Just update to the latest version of ncurses and you should be fine. The default version on the Slack8.1 CD doesn't seem to cut it

TheMad
 
Old 02-05-2003, 05:00 AM   #4
shaurz
LQ Newbie
 
Registered: Feb 2003
Distribution: Arch
Posts: 5

Original Poster
Rep: Reputation: 0
Cheers, I'll try that out when I get home.
 
  


Reply


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
in Book 6.0, chapter 6, where do I build the sources? microsoft/linux Linux From Scratch 2 07-18-2005 09:30 AM
Chapter 5.13 GCC and C++ RobbieB Linux From Scratch 1 02-07-2005 08:29 PM
chapter 5 to 6 pierow Linux From Scratch 5 10-04-2003 03:07 PM
Kazaa lite 2.0 build 2 and 2.02 build 5 walterw Linux - General 1 02-04-2003 05:12 PM
Glibc 2.3.1 build causes segfaults with static bash mdh Linux From Scratch 2 11-12-2002 07:08 PM


All times are GMT -5. The time now is 03:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration