Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376435 - net-libs/libpcap-1.1.1-r1 - ./pcap-usb-linux.c:228: error: storage size of 'ctrl' isn't known
Summary: net-libs/libpcap-1.1.1-r1 - ./pcap-usb-linux.c:228: error: storage size of 'c...
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
Depends on:
Reported: 2011-07-26 07:09 UTC by Rabbe Fogelholm
Modified: 2017-11-14 13:27 UTC (History)
1 user (show)

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

emerge --info =net-libs/libpcap-1.1.1-r1 (1.txt,3.99 KB, text/plain)
2011-07-26 07:14 UTC, Rabbe Fogelholm
build.log (build.log,8.53 KB, text/plain)
2011-07-26 07:17 UTC, Rabbe Fogelholm
emerge --info (emerge-info-libpcap-1.1.1-r1.txt,5.51 KB, text/plain)
2011-12-19 01:38 UTC, David Relson
emerge log file (net-libs:libpcap-1.1.1-r1:20111216-224947.log,7.33 KB, text/plain)
2011-12-19 01:41 UTC, David Relson
config.status (config.status,30.18 KB, text/plain)
2011-12-19 01:47 UTC, David Relson

Note You need to log in before you can comment on or make changes to this bug.
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]
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: (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]

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