Vous êtes ici : Accueil > Linux > Busybox

La résolution de nom ne marche pas dans Busybox avec les outils de développement (libc, gcc, ld) de Ubuntu 10.04 (version actuelle ce jour). En effet, dans le fichier busybox_unstripped.out créé lors de la compilation on peut voir que les fonctions suivantes ne sont pas disponibles dans un éxécutable statique. Ce qui rend nslookup inopérant.

(/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libc.a)setitimer.o
(/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libc.a)proto-lookup.o
(/usr/lib/gcc/x86_64-linux-gnu/4.4.3/libgcc_eh.a)unwind-dw2.o
(/usr/lib/gcc/x86_64-linux-gnu/4.4.3/libgcc_eh.a)unwind-dw2-fde-glibc.o
(/usr/lib/gcc/x86_64-linux-gnu/4.4.3/libgcc_eh.a)unwind-c.o
(/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libc.a)dl-iteratephdr.o
attempt to open /usr/lib/gcc/x86_64-linux-gnu/4.4.3/crtend.o succeeded
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/crtend.o
attempt to open /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crtn.o succeeded
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crtn.onetworking/lib.a(nslookup.o): In function `print_host':
nslookup.c:(.text.print_host+0x4c): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
networking/lib.a(ipcalc.o): In function `ipcalc_main':
ipcalc.c:(.text.ipcalc_main+0x20d): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
util-linux/lib.a(mount.o): In function `nfsmount':
mount.c:(.text.nfsmount+0xeb): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
networking/lib.a(inetd.o): In function `reread_config_file':
inetd.c:(.text.reread_config_file+0x757): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
networking/lib.a(netstat.o): In function `ip_port_str':
netstat.c:(.text.ip_port_str+0x3e): warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
networking/lib.a(inetd.o): In function `reread_config_file':
inetd.c:(.text.reread_config_file+0x6de): warning: Using 'getrpcbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking