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):
[EMAIL PROTECTED] 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
--
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