Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186069 - emerge nagios-plugins hangs inside environment which has no 127.0.0.1 IP (vserver)
Summary: emerge nagios-plugins hangs inside environment which has no 127.0.0.1 IP (vse...
Status: RESOLVED DUPLICATE of bug 44382
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-21 06:29 UTC by Norbert Klein
Modified: 2007-07-21 06:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***