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.
Created attachment 230221 [details] emerge --info output
Created attachment 230223 [details] emerge output
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
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.
David, please, attach config.log too.
Created attachment 231293 [details] config.log
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.