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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-29-2009, 03:31 PM
|
#1
|
Member
Registered: May 2007
Posts: 64
Rep:
|
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.
|
|
|
07-01-2009, 03:23 AM
|
#2
|
Member
Registered: May 2007
Posts: 64
Original Poster
Rep:
|
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) ????
|
|
|
07-01-2009, 09:01 AM
|
#3
|
Member
Registered: May 2007
Posts: 64
Original Poster
Rep:
|
no one likes me
|
|
|
07-01-2009, 04:43 PM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
|
|
|
07-01-2009, 05:42 PM
|
#5
|
Member
Registered: May 2007
Posts: 64
Original Poster
Rep:
|
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.
|
|
|
07-02-2009, 02:49 PM
|
#6
|
Member
Registered: May 2007
Posts: 64
Original Poster
Rep:
|
Got it:
issuing "ldconfig" is enough. Afterwards all runs great.
Sorry.
Bye.
|
|
|
All times are GMT -5. The time now is 06:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|