Ch.6 peculiar bash / find problem

David Ciecierski davidcie at klub.chip.pl
Wed Jun 29 19:33:12 PDT 2005


> How about checking for the libraries it's linked against.
 > Here's what I get on my home setup:
> 
>     $ ldd /usr/bin/find
>     linux-gate.so.1 =>  (0xffffe000)
>     libc.so.6 => /lib/libc.so.6 (0xb7eeb000)
>     /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fee000)

Running ldd on 'home' system (in /tools/bin):
[root at nightbox bin]# ldd /tools/bin/find
         libc.so.6 => /lib/tls/libc.so.6 (0x00246000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0022e000)

Both files are present (and ./find executes). Because tls directory was 
not present under /tools/lib:
	mkdir /tools/lib/tls
	ln -s /tools/lib/libc.so.6 /tools/lib/tls/libc.so.6

Still, running the same in the new system:
root:/tools/bin# ldd /tools/bin/find
/tools/bin/ldd: line 124: /tools/bin/find: No such file or directory

find cannot be checked, not to mention executed :(

Take care,
David Ciecierski



More information about the lfs-support mailing list