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.
Created attachment 298387 [details] emerge --info
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.
(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.
Did you create a symlink to the init.d script? What is it called?
(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.
(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.)
(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.
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.
Fixed in -r3. Thanks for reporting.