emerge nagios-plugins hangs inside vserver environment (or any other environment without IP 127.0.0.1) as soon as the configure script tries to check the ICMP syntax. Reproducible: Always Steps to Reproduce: 1. Enter an environment without 127.0.0.1 IP (e.g. vserver) 2. emerge nagios-plugins 3. Actual Results: emerge hangs, you have to type ctrl-c. Expected Results: install nagios-plugins checking for ps... /bin/ps checking for ps syntax... /bin/ps axwo 'stat uid pid ppid vsz rss pcpu comm args' checking for ping... /bin/ping checking for ping6... /bin/ping6 checking for ICMP ping syntax... ctrl-c /usr/portage/net-analyzer/nagios-plugins/nagios-plugins-1.4.9.ebuild: src_compile aborted; exiting. The reason is that 127.0.0.1 is hardcoded as localhost IP inside the configure script. This is done for checking ICMP syntax and nslookup syntax. But vservers don't have this IP. Possible solution: Patch configure that it uses the first IP instead of 127.0.0.1. For testing I added first_ip=`ifconfig | sed -n '2p' | sed -e 's/inet addr://' | sed 's/ Bcast.*$//' | sed 's/\s*//'` to the configure script and replaced all occurences of 127.0.0.1 with $first_ip. But there is probably a better way to fix this.
*** This bug has been marked as a duplicate of bug 44382 ***