Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 398243 - net-analyzer/dhcp_probe-1.3.0-r2 - get_myipaddr: couldn't locate interface
Summary: net-analyzer/dhcp_probe-1.3.0-r2 - get_myipaddr: couldn't locate interface
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-09 12:11 UTC by Zsolti
Modified: 2012-01-17 17:44 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge_info_lisabook.log,5.28 KB, text/plain)
2012-01-09 12:13 UTC, Zsolti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zsolti 2012-01-09 12:11:12 UTC
As already discoverd and solved here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=535361 there seems to be a bug on 64bit systems which is solved via a patch with version 1.3.0-3 on debian.

Reproducible: Always

Steps to Reproduce:
run dhcp_probe
Actual Results:  
get_myipaddr: couldn't locate interface ...


package is unstable but fixable.
Comment 1 Zsolti 2012-01-09 12:13:32 UTC
Created attachment 298387 [details]
emerge --info
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-09 12:31:15 UTC
It isn't really obvious what issue you are facing and what the solution should be. We don't use Debian's init.d script at all, so I would like to see some actual output of the failing command.
Comment 3 Zsolti 2012-01-09 13:01:03 UTC
(In reply to comment #2)
> It isn't really obvious what issue you are facing and what the solution should
> be. We don't use Debian's init.d script at all, so I would like to see some
> actual output of the failing command.

hi,
output of failing command is in syslog:
Jan  9 13:58:59 lisabook dhcp_probe[30875]: starting, version 1.3.0
Jan  9 13:58:59 lisabook dhcp_probe[30875]: get_myipaddr: couldn't locate interface wlan0
Jan  9 13:58:59 lisabook dhcp_probe[30875]: couldn't determine IP addr for interface wlan0
Jan  9 13:58:59 lisabook dhcp_probe[30875]: exiting

though wlan0 is there. it's configured and has a valid ip-address.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-09 19:08:22 UTC
Did you create a symlink to the init.d script? What is it called?
Comment 5 Zsolti 2012-01-09 22:47:18 UTC
(In reply to comment #4)
> Did you create a symlink to the init.d script? What is it called?

hi,
sorry for maybe misleading information. I don't use the debian init scripts either. I just wanted to point out that this problem I'm facing is fixed in the latest (debian?) release. Here are the changes:

Changes: 
 dhcp-probe (1.3.0-3) unstable; urgency=low
 .
   * Fix dhcp-probe.postinst script (closes: #535172).
   * Fix postrm problem on /etc/dhcp_probe.cf file.
   * Fix dhcp-probe.init.d script to enable -T option
     (Thanks to Ilkka Virta <itvirta@iki.fi>).
   * Fix dhcp-probe.init.d script (closes: #542350). Thanks to
     Petter Reinholdtsen <pere@hungry.com> for the patch.
   * Add patch to adapt src/get_myipaddr.c file to 32 or 64 bits system by
     pre-compilation directive in source code and debian/rules file update
     (closes: #535361).

I just think that the latest patch solves this issue and could be extracted out of the deb file, although I didn't tested it.

Thanks for your attention.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-10 00:10:59 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Did you create a symlink to the init.d script? What is it called?
> 
> hi,
> sorry for maybe misleading information. I don't use the debian init scripts
> either. I just wanted to point out that this problem I'm facing is fixed in the
> latest (debian?) release. Here are the changes:

The latest Debian release is 1.3.0-8.

> Changes: 
>  dhcp-probe (1.3.0-3) unstable; urgency=low

[...]

>    * Add patch to adapt src/get_myipaddr.c file to 32 or 64 bits system by
>      pre-compilation directive in source code and debian/rules file update
>      (closes: #535361).

We actually apply that patch already. The only thing we do not do is set the __ARCH__ variable, so what you might want to try is to add -D__ARCH__=64 to your CFLAGS and re-emerge dhcp_probe. (Yes, I did add that patch but didn't make the ebuild set the appropriate variable.)
Comment 7 Zsolti 2012-01-10 08:57:47 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> We actually apply that patch already. The only thing we do not do is set the
> __ARCH__ variable, so what you might want to try is to add -D__ARCH__=64 to
> your CFLAGS and re-emerge dhcp_probe. (Yes, I did add that patch but didn't
> make the ebuild set the appropriate variable.)

adding -D__ARCH__=64 to CFLAGS solves the problem for me. thanks.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-10 15:59:09 UTC
OK, so we should revise that patch to fix what Debian didn't fix (which is to pick the proper type itself instead of relying on Debian's build system or our own ebuild hack to fix the issue.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2012-01-17 17:44:23 UTC
Fixed in -r3. Thanks for reporting.