-   Linux From Scratch (
-   -   gcc make error in ch5.5 of LFS 6.0 (

Barnette 01-02-2005 02:33 PM

gcc make error in ch5.5 of LFS 6.0
Hi. I'm trying to install my first LFS.
I haven't been using Linux very long either...
and here's my problem:

I get down to this step in section 5.5 of LFS 6
make BOOT_LDFLAGS="-static" bootstrap

at the end of where it fails it says there are undefined references
i.e. "/usr/lib/libc.a(dl-version.o)(text+0xbe): undefined reference to 'strlen'
before saying "collect2: ld returned 1 exit status
make[2]: *** [genmodes] Error 1
make[1]: *** [stage2 build] Error 2
make: *** [bootstrap] Error 2"

I *never* see "ld: cannot find -lc"

Being really new to Linux, I have no idea what to do next. Any have any suggestions?

__J 01-02-2005 06:35 PM

whats your host system? It would be a problem there since it is using the host development libraries (hence the static build so you won't have the same problem after chrooting )

Barnette 01-03-2005 02:09 AM

host system
vector linux.
do i need additional libraries, or to change something about the way its already set up?


__J 01-03-2005 02:26 AM

kinda odd considering it made it through stage one and on to stage two.

dont really know considering it found libc.a once a didn't have a problem with it.

I don't know what you could change as far as the setup, what version of glibc do you have on the host system?

Barnette 01-03-2005 03:08 AM


I haven't changed anything (haven't changed much, added some programs) from the 4.3 defaults.

Barnette 01-03-2005 11:09 AM

I think I'll try the LFS live cd.

All times are GMT -5. The time now is 06:59 PM.