On 6/21/06, Dan Nicholson <[EMAIL PROTECTED]> wrote:
OK, so the ld that cc is going to use is looking in /lib, but it's not
finding ld-linux.so.2.  Could you try compiling the dummy program
again, but this time turn on the linker verbosity?  Run this command

cc -Wl,--verbose dummy.c &> dummy.log

This just redirects all the messages to dummy.log.  Now look at the
bottom of this file.  It should show the various places that the
libraries are being found in.  Could you paste the output here?
root:/sources# cc -WI, --verbose dummy.c &> dummy.log
root:/sources# cat dummy.log
Reading specs from /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/tools
--libexecdir=/tools/lib --with-local-prefix=/tools
--enable-clocale=gnu --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
gcc version 3.4.3
/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/cc1 -quiet -v dummy.c -quiet
-dumpbase dummy.c -mtune=pentiumpro -auxbase dummy -WI, -version -o
/tmp/cc2Kalff.s
ignoring nonexistent directory
"/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/tools/include
/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/include
End of search list.
GNU C version 3.4.3 (i686-pc-linux-gnu)
       compiled by GNU C version 3.4.3.
GGC heuristics: --param ggc-min-expand=90 --param ggc-min-heapsize=113205
/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/as
-V -Qy -o /tmp/ccmQBZsn.o /tmp/cc2Kalff.s
GNU assembler version 2.15.94.0.2.2 (i686-pc-linux-gnu) using BFD
version 2.15.94.0.2.2 20041220
/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/collect2 --eh-frame-hdr -m
elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o
/usr/lib/crti.o /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbegin.o
-L/tools/lib/gcc/i686-pc-linux-gnu/3.4.3
-L/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib
/tmp/ccmQBZsn.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc
--as-needed -lgcc_s --no-as-needed
/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/crtend.o /usr/lib/crtn.o
/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 [EMAIL PROTECTED]'
/lib/libc.so.6: undefined reference to [EMAIL PROTECTED]'
/lib/libc.so.6: undefined reference to [EMAIL PROTECTED]'
/lib/libc.so.6: undefined reference to [EMAIL PROTECTED]'
/lib/libc.so.6: undefined reference to [EMAIL PROTECTED]'
/lib/libc.so.6: undefined reference to [EMAIL PROTECTED]'
/lib/libc.so.6: undefined reference to [EMAIL PROTECTED]'
/lib/libc.so.6: undefined reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
root:/sources#
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to