Bug 8221

Summary: ping-use last git version cann't resolv name
Product: Busybox Reporter: xiaoj <xiaojin2630>
Component: NetworkingAssignee: unassigned
Status: NEW ---    
Severity: major CC: 267357206, busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: i686-linux Target:
Build: i686-pc-linux-gnu

Description xiaoj 2015-07-15 01:19:12 UTC
hi, everyone.

my linux env:
===========================
# ls /lib/libuClibc-0.9.32.so 
/lib/libuClibc-0.9.32.so

# uname -sa
Linux ucf 3.14.43-rt42 #7 SMP Tue Jun 23 15:21:19 CST 2015 i686 GNU/Linux

# i686-linux-gcc -v
使用内建 specs。
COLLECT_GCC=i686-linux-gcc
COLLECT_LTO_WRAPPER=/lfs/toolchain/0932-x86-2011-11git/usr/bin/../libexec/gcc/i686-unknown-linux-uclibc/4.6.1/lto-wrapper
目标:i686-unknown-linux-uclibc
配置为:/lfs/buildroot-2011.11-git/output/toolchain/gcc-4.6.1/configure --prefix=/toolchain/0932-x86-2011-11git/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-unknown-linux-uclibc --enable-languages=c,c++ --with-sysroot=/toolchain/0932-x86-2011-11git/usr/i686-unknown-linux-uclibc/sysroot --with-build-time-tools=/toolchain/0932-x86-2011-11git/usr/i686-unknown-linux-uclibc/bin --disable-__cxa_atexit --enable-target-optspace --enable-libgomp --with-gnu-ld --disable-libssp --disable-multilib --enable-tls --enable-shared --with-gmp=/toolchain/0932-x86-2011-11git/usr --with-mpfr=/toolchain/0932-x86-2011-11git/usr --with-mpc=/toolchain/0932-x86-2011-11git/usr --enable-threads --disable-decimal-float --with-arch=i686 --with-tune=i686 --with-pkgversion='Buildroot 2011.11-git' --with-bugurl=http://bugs.buildroot.net/线程模型:posixgcc 版本 4.6.1 (Buildroot 2011.11-git) 


I use busybox.git, cann't work.
=----------------------------------------------
# git clone git://git.busybox.net/busybox.git
# git describe
1_12_0-4522-g2086a4d

# make menuconfig && make 

# ./busybox  ping www.baidu.com
ping: bad address 'www.baidu.com'

# ./busybox ping 202.102.192.68
PING 202.102.192.68 (202.102.192.68): 56 data bytes
64 bytes from 202.102.192.68: seq=0 ttl=59 time=13.880 ms
^C
--- 202.102.192.68 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 13.880/13.880/13.880 ms


bug, I use old version of busybox, can worked, on same machine, and soft version.
---------------------------------------------------
# /root/busybox 
BusyBox v1.21.0-5-g4f94c0b (2013-03-07 11:37:35 CST) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2012.
Licensed under GPLv2. See source distribution for detailed
copyright notices.

# /root/busybox ping www.baidu.com

# /root/busybox ping www.baidu.com
PING www.baidu.com (115.239.210.27): 56 data bytes
64 bytes from 115.239.210.27: seq=0 ttl=55 time=30.861 ms
^C
--- www.baidu.com ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 30.861/30.861/30.861 ms