Platform is Gentoo Prefix on SUSE Enterprise 10 SP2. Emerging net-libs/libpcap fails with >>> Compiling source in /local/scratch/portage/net-libs/libpcap-1.1.1-r1/work/libpcap-1.1.1 ... make all shared i686-pc-linux-gnu-gcc -O2 -fpic -O2 -pipe -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./pcap-linux.c i686-pc-linux-gnu-gcc -O2 -fpic -O2 -pipe -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./pcap-usb-linux.c ./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 ./pcap-usb-linux.c:273: error: for each function it appears in.) make: *** [pcap-usb-linux.o] Error 1 emake failed
Created attachment 280993 [details] emerge --info =net-libs/libpcap-1.1.1-r1
Created attachment 280995 [details] build.log
I have the same problem (ctrl isn't known), though my kernel and arch are different: Linux osage 2.6.39-gentoo-r2 #1 SMP Mon Jul 4 08:25:03 EDT 2011 x86_64 AMD Phenom(tm) 9850 Quad-Core Processor AuthenticAMD GNU/Linux
Created attachment 296329 [details] emerge --info
Created attachment 296331 [details] emerge log file
The generated config.h file has the following: /* path for device for USB sniffing */ #define LINUX_USB_MON_DEV "/dev/usage: udevinfo device Note that the #define statement doesn't have a closing quote. Looking for LINUX_USB_MON_DEV, I found the following: configure.in (line 1342) seems OK: AC_DEFINE_UNQUOTED(LINUX_USB_MON_DEV, "/dev/$ac_usb_dev_name", [path for device for USB sniffing]) configure (line 7235) also seems OK: #define LINUX_USB_MON_DEV "/dev/$ac_usb_dev_name" config.status (line 794) is missing a second \" D["LINUX_USB_MON_DEV"]=" \"/dev/usage: udevinfo device" I'll attach config.status as it seems releavant.
Created attachment 296335 [details] config.status line 794 is missing a matching \" D["LINUX_USB_MON_DEV"]=" \"/dev/usage: udevinfo device"
Please disregard my comments on this bug. I found a non-working wrapper for udevadm that was causing my problems.
this was probably an OS-related issue, that has expired since