After I upgraded glibc to the latest stable on my x86_64 (AMD64) system and re-compiled the latest stable busybox (1.21.0), the busybox apps like ping, wget, etc... started to fail on DNS lookup.
Steps to Reproduce:
1. upgrade glibc to 2.19-r1
2. re-compile sys-apps/busybox-1.21.0
3. ping some host
ping: bad address 'hp'
PING hp (10.0.1.100): 56 data bytes
64 bytes from 10.0.1.100: seq=0 ttl=64 time=0.149 ms
The problem didn't happen before the busybox was re-compiled against glibc-2.19-r1. I managed to revert glibc back to 2.17, re-compiled busybox and everything was OK.
Created attachment 382614 [details]
$ gcc -static getaddrinfo.c && ./a.out gentoo.org
/tmp/ccN7FeZG.o: In function `main':
.../resolv.c:22: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
bad address 'gentoo.org'
glibc-2.17 & glibc-2.18 seem to behave correctly
same underlying problem as bug 509748 afaict
*** This bug has been marked as a duplicate of bug 509748 ***