LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-29-2009, 03:31 PM   #1
me-$-on
Member
 
Registered: May 2007
Posts: 64

Rep: Reputation: 15
lfs-6.3 - chapter 6: binutils-2.17 - make error regarding libbfd-2.17.so :not found


Hello. First I must excuse posting this question again.
But: I downloaded the live cd of lfs-6.3 and I use this to build my lfs as my host-system.
All steps ran correct until this step:

I want to install the binutils-2.17 now finally, I configure it and want to run

make tooldir=/usr.

But it says: libbfd-2.17.so not found.

A similar thing happened before, with the libiberty/pic.

I copied that whole directory to my /usr/lib directory, what seemed to help as a workaround.

But the next error occuring was this one ( libbfd-2.17.so ) now is not found.


I searched for it, and guess,YES it resides in /usr/lib.
But it is not found ( my links and my chroot and so on MUST be correct, glibc installed without problems, testing without problems and compiling the dummy.c with grepping all necessary information , too).

The file IS there, the issue while compiling binutils the first time, not occured, but why now? ( the only thing changed is the prefix).

I retried to adjust the toolchain, and again everything is ok.


Before I will use the workaround and copy it, too, to the /usr/lib, I would like to know, WHAT CAUSES THIS ERROR, AND WHY.

Could anynone help me regarding this problem?

THX in advance.
 
Old 07-01-2009, 03:23 AM   #2
me-$-on
Member
 
Registered: May 2007
Posts: 64

Original Poster
Rep: Reputation: 15
I thought

no one would answer.

I already found some solutions in this forum, but not the technical background, why this is happening, though i am using exact the live-cd 6.3.

Hmmm linking against static libraries..... ok.

Could anyone give me details about that ( and why the book says \--enable-shared) ????
 
Old 07-01-2009, 09:01 AM   #3
me-$-on
Member
 
Registered: May 2007
Posts: 64

Original Poster
Rep: Reputation: 15
no one likes me

 
Old 07-01-2009, 04:43 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
and why the book says \--enable-shared
The "--enable-shared" option takes care, that
libbfd-2.17.so is created ( "so" means shared object.)

Your errors : I don't know ... libbfd-2.17.so
should be present in your "build-binutils"
directory.
.....
P.S.: 1) No reason to use the backslash, it can all
be made up to a "one line configure".
2) If the backslash is used, a <space> must be present
after the backslash, like this : '\ --enable-shared' .
3) The backslash is used only to break a line.
.....

Last edited by knudfl; 07-01-2009 at 04:51 PM.
 
Old 07-01-2009, 05:42 PM   #5
me-$-on
Member
 
Registered: May 2007
Posts: 64

Original Poster
Rep: Reputation: 15
THX, but

my experience told me, that a space between backslash and the -- often fails to recognize the new arguments, especially, if a new switch is activated, whose arguments have to be present without space.

And even with your hint i stuck at:

make tooldir=/usr

with the messages:

error while loading shared library: libbfd-2.17.so : file or directory not found

libiberty.a Error 127.

I think, im will have to start from chapter 1 again ( that cannot be....



but first i will try a newer and an older version of binutils.

THX for all.


CHANGED:

I must correct my error message:

ar: error while loading shared library: libbfd-2.17.so : file or directory not found

I forgot the ar.

Perhaps it is important.

Last edited by me-$-on; 07-02-2009 at 03:08 AM.
 
Old 07-02-2009, 02:49 PM   #6
me-$-on
Member
 
Registered: May 2007
Posts: 64

Original Poster
Rep: Reputation: 15
Got it:

issuing "ldconfig" is enough. Afterwards all runs great.
Sorry.
Bye.
 
  


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
binutils compile error... chapter 5... newbie need help jaydoc Linux From Scratch 7 01-27-2009 04:15 AM
LFS 6.4 Chapter 5.4. Binutils-2.18 - Pass 1 gazza1z Linux From Scratch 2 01-23-2009 11:16 AM
LFS 6.2 - Chap. 6.11 - Binutils 2.16.1 - make error CharlesCVA Linux From Scratch 2 03-12-2008 01:39 PM
lfs chapter 6.11 Binutils-2.16.1 make problems Nislick Linux From Scratch 3 08-15-2006 05:25 PM
LFS 6, chapter 6.11; Glibc 'make check' error Zamochit Linux From Scratch 5 05-31-2005 12:54 PM

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

All times are GMT -5. The time now is 09:40 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