Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 186069

Summary: emerge nagios-plugins hangs inside environment which has no 127.0.0.1 IP (vserver)
Product: Gentoo Linux Reporter: Norbert Klein <norbert>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Norbert Klein 2007-07-21 06:29:50 UTC
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.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-21 06:37:56 UTC

*** This bug has been marked as a duplicate of bug 44382 ***