[BusyBox] network issues still exist
Tito
farmatito at tiscali.it
Mon Oct 18 22:39:05 UTC 2004
On Monday 18 October 2004 OO:10, Rob Landley wrote:
> On Sunday 17 October 2004 10:40, Jeff Sadowski wrote:
> > Thank you Tito I didn't know there where dynamicly
> > loaded libs and I didn't know how to check for them
> > without looking at the source code. that'll come in
> > very hand.
>
> This is what the ldd command is for.
>
> ldd /usr/bin/tar
>
> And so on. (If you use uclibc, you need to use the ldd that comes with
> uclibc.)
>
> People were asking about a FAQ? This would be one. General embedded
> systems-ness.
Hi,
I don't think ldd is the right tool in this case as not one of the missing
libraries is shown.
ln -s busybox nslookup
ldd ./nslookup
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/tls/libc.so.6 (0x40028000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
If you do:
strace ./nslookup www.tiscali.it 2>&1 | grep open
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/tls/libc.so.6", O_RDONLY) = 3
open("/etc/resolv.conf", O_RDONLY) = 3
open("/etc/nsswitch.conf", O_RDONLY) = 3
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libnss_files.so.2", O_RDONLY) = 3
open("/etc/host.conf", O_RDONLY) = 3
open("/etc/hosts", O_RDONLY) = 3
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libnss_nisplus.so.2", O_RDONLY) = 3
open("/lib/libnsl.so.1", O_RDONLY) = 3
open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libnss_nis.so.2", O_RDONLY) = 3
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libnss_dns.so.2", O_RDONLY) = 3
open("/lib/libresolv.so.2", O_RDONLY) = 3
open("/etc/hosts", O_RDONLY) = 3
open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or directory)
you''ll get more information about what the program looks for and what it really have found.
Ciao,
Tito
> Rob
>
> _______________________________________________
> busybox mailing list
> busybox at mail.busybox.net
> http://busybox.net/mailman/listinfo/busybox
>
More information about the busybox
mailing list