LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-26-2005, 04:42 PM   #1
TGWDNGHN
Member
 
Registered: Aug 2003
Distribution: Slackware 10.0
Posts: 94
Blog Entries: 1

Rep: Reputation: 15
Exclamation Help! LFS 6.1 Chapter 6.12- Basic Compiling and Linking Tools don't work!


in the part where I need to test my basic compiling and linking functions- it doesn't work!

I type:
echo 'main() {}' > dummy.c
cc dummy.c

The result:
/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/libc.so.6
collect2: ld returned 1 exit status

This probably happened when I typed:

perl -pi -e 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g;' \
-e 's@\*startfile_prefix_spec:\n@$_/usr/lib/ @g;' \
`gcc --print-file specs`

At first I left out the last `. But then terminal was waiting for input so I immediately pressed Ctrl-C, and typed it again with the ` at the end (Rather I just pushed "up" on my kerboard and added thr `).

I seriouslly hope I didn't mess up, because if I messed up the specs file (which I don't even know what it is or what its for) I have no idea how generate a new one.

The ONLY other thing that has (potentially) gone wrong was when I was building Glibc, I typed "make check" and got the following at the end:

make[2]: *** [/glibc-build/libio/tst-fopenloc.check] Error 127
make[2]: Leaving directory `/glibc-build/libio'
make[1]: *** [libio/tests] Error 2
make[1]: Leaving directory `glibc-2.3.4'
make: *** [check] Error 2

But that I know of- thats just about it


...um, help anyone?
 
Old 07-26-2005, 06:15 PM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
What you did shouldn't mess it up (pressing ctrl-c after missing a `) since bash was waiting for the matching ` before it executed the command. What does "ls /lib/libc.*" show? Did you forget to "make install" in 6.11?
 
Old 07-26-2005, 06:25 PM   #3
TGWDNGHN
Member
 
Registered: Aug 2003
Distribution: Slackware 10.0
Posts: 94

Original Poster
Blog Entries: 1

Rep: Reputation: 15
it shows a symlink libc.so.6 -> libc-2.3.3.so


I think I got it... instead of setting it to libc.so.2 I should've set it to libc.so.2 right?

I won't do anythin until I get this confirmed, but if I am right... then what should I do?


P.S. When building the Temp system- I used the .2 one, so I dunno where the .6 came from
 
  


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
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
LFS 6 Chapter 6.8 mount error gatblast45 Linux From Scratch 20 01-04-2006 05:48 PM
LFS 6.0 Chapter 6: compiling glibc problem Sakur Linux From Scratch 3 08-13-2005 11:39 PM
chapter 6.3 of LFS 6.1 Stamp Linux From Scratch 2 07-22-2005 07:10 AM
LFS 5.0 Chapter 5 cuco76 Linux From Scratch 1 11-23-2003 10:28 PM

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

All times are GMT -5. The time now is 07:39 PM.

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