while compiling the airsnort package when i gave command make its giving error as follows.Can u tell me why its happening......
In file included from callbacks.c:4:
/usr/include/linux/wireless.h:650: error: expected specifier-qualifier-list before ‘_s32’
/usr/include/linux/wireless.h:663: error: expected specifier-qualifier-list before ‘__u16’
/usr/include/linux/wireless.h:677: error: expected specifier-qualifier-list before ‘__s32’
/usr/include/linux/wireless.h:688: error: expected specifier-qualifier-list before ‘__u8’
/usr/include/linux/wireless.h:704: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/wireless.h:717: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/wireless.h:725: error: field ‘addr’ has incomplete type
/usr/include/linux/wireless.h:744: error: expected specifier-qualifier-list before ‘__u8’
/usr/include/linux/wireless.h:806: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/wireless.h:820: error: expected specifier-qualifier-list before ‘__u16’
/usr/include/linux/wireless.h:834: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/wireless.h:842: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/wireless.h:851: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/wireless.h:863: error: expected specifier-qualifier-list before ‘__u16’
/usr/include/linux/wireless.h:886: error: ‘IFNAMSIZ’ undeclared here (not in a function)
/usr/include/linux/wireless.h:901: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/wireless.h:945: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/wireless.h:1046: error: expected specifier-qualifier-list before ‘__u32’
/usr/include/linux/wireless.h:1064: error: expected specifier-qualifier-list before ‘__u16’
callbacks.c:10:18: error: pcap.h: No such file or directory
In file included from callbacks.c:25:
PacketSource.h:149: error: expected specifier-qualifier-list before ‘pcap_t’
PacketSource.h:174: warning: ‘struct pcap_pkthdr’ declared inside parameter list
PacketSource.h:174: warning: its scope is only this definition or declaration, which is probably not what you want
PacketSource.h:175: warning: ‘struct pcap_pkthdr’ declared inside parameter list
callbacks.c: In function ‘fillDeviceList’:
callbacks.c:136: error: storage size of ‘ir’ isn’t known
callbacks.c:144: error: ‘IFF_LOOPBACK’ undeclared (first use in this function)
callbacks.c:144: error: (Each undeclared identifier is reported only once
callbacks.c:144: error: for each function it appears in.)
make[2]: *** [callbacks.o] Error 1
make[2]: Leaving directory `/opt/air/airsnort-0.2.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/air/airsnort-0.2.7'
make: *** [all] Error 2




--Thanks & Regards

Sandeep NS