tcpdump mailing list archives

Problem with usb support


From: Michael Szalay <michael.szalay () basis06 ch>
Date: Wed, 24 Nov 2010 14:49:43 +0100 (CET)

Hi all

is it possible to configure libpcap.1.1.1 without usb support?
I do not need it and I have the following error:

./configure
...
configure: WARNING: linux/usbdevice_fs.h: present but cannot be compiled
configure: WARNING: linux/usbdevice_fs.h:     check for missing prerequisite headers?
configure: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation
configure: WARNING: linux/usbdevice_fs.h:     section "Present But Cannot Be Compiled"
configure: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result
configure: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence
...

make

gcc -O2 -fpic -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -c ./pcap-usb-linux.c
In file included from ./pcap-usb-linux.c:64:
/usr/include/linux/usbdevice_fs.h:49: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘*’ token
/usr/include/linux/usbdevice_fs.h:56: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘*’ token
/usr/include/linux/usbdevice_fs.h:66: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘*’ token
/usr/include/linux/usbdevice_fs.h:100: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘*’ token
/usr/include/linux/usbdevice_fs.h:116: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘*’ token
./pcap-usb-linux.c: In function ‘probe_devices’:
./pcap-usb-linux.c:264: error: ‘struct usbdevfs_ctrltransfer’ has no member named ‘requesttype’
./pcap-usb-linux.c:265: error: ‘struct usbdevfs_ctrltransfer’ has no member named ‘request’
./pcap-usb-linux.c:266: error: ‘struct usbdevfs_ctrltransfer’ has no member named ‘value’
./pcap-usb-linux.c:267: error: ‘struct usbdevfs_ctrltransfer’ has no member named ‘index’
./pcap-usb-linux.c:268: error: ‘struct usbdevfs_ctrltransfer’ has no member named ‘length’
./pcap-usb-linux.c:270: error: ‘struct usbdevfs_ctrltransfer’ has no member named ‘data

Regards
Michael


-- 
Michael Szalay                               Senior Software Engineer

basis06 AG, Birkenweg 61, CH-3013 Bern - Fon +41 31 311 32 22
http://www.basis06.ch - source of smart business 

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: