Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318359 - net-libs/libpcap-1.1.1 - configure: Device for USB sniffing is /dev/usage: udevinfo device
Summary: net-libs/libpcap-1.1.1 - configure: Device for USB sniffing is /dev/usage: ud...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-04 03:38 UTC by David Relson
Modified: 2010-05-13 08:54 UTC (History)
1 user (show)

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


Attachments
emerge --info output (emerge-info.txt,4.58 KB, text/plain)
2010-05-04 03:38 UTC, David Relson
Details
emerge output (net-libs:libpcap-1.1.1:20100504-033105.log,7.18 KB, text/plain)
2010-05-04 03:39 UTC, David Relson
Details
config.log (config.log,84.25 KB, text/plain)
2010-05-13 00:13 UTC, David Relson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Relson 2010-05-04 03:38:06 UTC
emerge libpcap fails with:

In file included from ./pcap-usb-linux.c:41:
./config.h:186:27: warning: missing terminating " character
./pcap-usb-linux.c: In function ‘probe_devices’:
./pcap-usb-linux.c:228: error: storage size of ‘ctrl’ isn’t known
./pcap-usb-linux.c:273: error: ‘USBDEVFS_CONTROL’ undeclared (first use in this function)
./pcap-usb-linux.c:273: error: (Each undeclared identifier is reported only once
.

Reproducible: Always

Steps to Reproduce:
1.emerge libpcap
2.
3.
Comment 1 David Relson 2010-05-04 03:38:46 UTC
Created attachment 230221 [details]
emerge --info output
Comment 2 David Relson 2010-05-04 03:39:22 UTC
Created attachment 230223 [details]
emerge output
Comment 3 Didier Barvaux 2010-05-05 19:43:43 UTC
The "udevinfo" tool seems to be mis-used during configure:

  checking for USB sniffing support... yes
  configure: Device for USB sniffing is /dev/usage: udevinfo device
     ex: udevinfo sdc
         udevinfo /sys/block/sdc

I do not have the "udevinfo" tool on my system to check its usage. Which package installs it ? You can get the answer with:

  # equery belongs udevinfo
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2010-05-07 06:27:21 UTC
astrid ~ # udevinfo -q name -p /sys/class/usb_device/usbmon
bash: udevinfo: command not found
astrid ~ # echo $?
127
astrid ~ # udevadm info --query name --path /sys/class/usb_device/usbmon
device path not found
astrid ~ # echo $?
2
astrid ~ # eversion udev
sys-fs/udev-149

Oddly enough, it only checks whether that returns 0 or otherwise. It's kind of a bad test anyway because it assumes capabilities of the build host that you perhaps would only find on the host the packages would end up being used on.
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2010-05-11 07:13:38 UTC
David, please, attach config.log too.
Comment 6 David Relson 2010-05-13 00:13:40 UTC
Created attachment 231293 [details]
config.log
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2010-05-13 08:54:20 UTC
Well, I've forced usbmon device for now and this should fix this build issue. That said, I'll try to resolve this issue with upstream somehow, since it's not clear why udevinfo was used in the first place...

Thank you for report. Fixed.