Error while re-adjusting toolchain (6.12)

Michael Limiero mike5713 at gmail.com
Tue Jun 20 15:09:15 PDT 2006


I'm following the LFS book for my second time (the first was on a
different machine), and I got an error. I'm pretty sure I haven't done
anything differently from the book. I'm on section 6.12, and I got
this error while doing the sanity test:

root:/sources# cc dummy.c
/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld:
warning: ld-linux.so.2, needed by /lib/libc.so.6, not found (try using
-rpath or -rpath-link)
/lib/libc.so.6: undefined reference to `_rtld_global at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `__libc_enable_secure at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `__libc_stack_end at GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_rtld_global_ro at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_out_of_memory at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `___tls_get_addr at GLIBC_2.3'
/lib/libc.so.6: undefined reference to `_r_debug at GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_argv at GLIBC_PRIVATE'
collect2: ld returned 1 exit status
root:/sources#

My host system is Slackware 10.2. I'm running kernel 2.6.11.12 (the
one that came with LFS). I copied the perl command before that line
directly from the book. I have no idea what happened.



More information about the lfs-support mailing list