Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 376435

Summary: net-libs/libpcap-1.1.1-r1 - ./pcap-usb-linux.c:228: error: storage size of 'ctrl' isn't known
Product: Gentoo/Alt Reporter: Rabbe Fogelholm <rabbe>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED OBSOLETE    
Severity: normal CC: netmon
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info =net-libs/libpcap-1.1.1-r1
build.log
emerge --info
emerge log file
config.status

Description Rabbe Fogelholm 2011-07-26 07:09:37 UTC
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
Comment 1 Rabbe Fogelholm 2011-07-26 07:14:53 UTC
Created attachment 280993 [details]
emerge --info =net-libs/libpcap-1.1.1-r1
Comment 2 Rabbe Fogelholm 2011-07-26 07:17:36 UTC
Created attachment 280995 [details]
build.log
Comment 3 David Relson 2011-12-19 01:33:59 UTC
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
Comment 4 David Relson 2011-12-19 01:38:21 UTC
Created attachment 296329 [details]
emerge --info
Comment 5 David Relson 2011-12-19 01:41:10 UTC
Created attachment 296331 [details]
emerge log file
Comment 6 David Relson 2011-12-19 01:45:13 UTC
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.
Comment 7 David Relson 2011-12-19 01:47:34 UTC
Created attachment 296335 [details]
config.status

line 794 is missing a matching \"

D["LINUX_USB_MON_DEV"]=" \"/dev/usage: udevinfo device"
Comment 8 David Relson 2011-12-19 02:04:51 UTC
Please disregard my comments on this bug.  I found a non-working wrapper for udevadm that was causing my problems.
Comment 9 Fabian Groffen gentoo-dev 2017-11-14 13:27:40 UTC
this was probably an OS-related issue, that has expired since