Kismet Wireless

Kismet Forums

 

Posted by:Michiel
Subject:Pcapsource.cc error
Date:08:36:25 10/12/2008

Hello,

Compiling on OpenSolaris using gmake the following error i got.

Michiel@LaptopMichiel:~/Download/kismet-2008-05-R1# gmake
g++ -O2 -Wall -DVERSION_MAJOR=\"2008\" -DVERSION_MINOR=\"05\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c util.cc -o util.o
g++ -O2 -Wall -DVERSION_MAJOR=\"2008\" -DVERSION_MINOR=\"05\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c cygwin_utils.cc -o cygwin_utils.o
g++ -O2 -Wall -DVERSION_MAJOR=\"2008\" -DVERSION_MINOR=\"05\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c ringbuf.cc -o ringbuf.o
g++ -O2 -Wall -DVERSION_MAJOR=\"2008\" -DVERSION_MINOR=\"05\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c configfile.cc -o configfile.o
g++ -O2 -Wall -DVERSION_MAJOR=\"2008\" -DVERSION_MINOR=\"05\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c speech.cc -o speech.o
g++ -O2 -Wall -DVERSION_MAJOR=\"2008\" -DVERSION_MINOR=\"05\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c ifcontrol.cc -o ifcontrol.o
g++ -O2 -Wall -DVERSION_MAJOR=\"2008\" -DVERSION_MINOR=\"05\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c iwcontrol.cc -o iwcontrol.o
g++ -O2 -Wall -DVERSION_MAJOR=\"2008\" -DVERSION_MINOR=\"05\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c madwifing_control.cc -o madwifing_control.o
g++ -O2 -Wall -DVERSION_MAJOR=\"2008\" -DVERSION_MINOR=\"05\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c packet.cc -o packet.o
In file included from packet.h:22,
from packet.cc:21:
config.h:260:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/stdio.h:40,
from packet.cc:19:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -O2 -Wall -DVERSION_MAJOR=\"2008\" -DVERSION_MINOR=\"05\" -DVERSION_TINY=\"R1\" -DTIMESTAMP=\"`cat TIMESTAMP`\" -g -O2 -c pcapsource.cc -o pcapsource.o
In file included from pcapsource.cc:127:
pcapsource.h:130: error: `u_int16_t' does not name a type
pcapsource.h:131: error: `u_int16_t' does not name a type
pcapsource.h:132: error: `u_int16_t' does not name a type
pcapsource.h:133: error: `u_int8_t' does not name a type
pcapsource.h:134: error: `u_int8_t' does not name a type
pcapsource.h:135: error: `u_int8_t' does not name a type
pcapsource.h:136: error: `u_int8_t' does not name a type
pcapsource.h:137: error: `u_int16_t' does not name a type
pcapsource.h:138: error: `u_int16_t' does not name a type
pcapsource.cc: In member function `int PcapSource::BSD2KisPack(kis_packet*, uint8_t*, uint8_t*)':
pcapsource.cc:733: error: 'struct PcapSource::bsd_80211_header' has no member named 'wi_signal'
pcapsource.cc:734: error: 'struct PcapSource::bsd_80211_header' has no member named 'wi_silence'
pcapsource.cc: In member function `int PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)':
pcapsource.cc:820: error: `u_int8_t' does not name a type
pcapsource.cc:821: error: `u_int16_t' does not name a type
pcapsource.cc:822: error: `u_int32_t' does not name a type
pcapsource.cc:823: error: `u_int64_t' does not name a type
pcapsource.cc:828: error: `u_int8_t' does not name a type
pcapsource.cc:829: error: `u_int16_t' does not name a type
pcapsource.cc:830: error: `u_int32_t' does not name a type
pcapsource.cc:831: error: `u_int64_t' does not name a type
pcapsource.cc:834: error: `u_int32_t' undeclared (first use this function)
pcapsource.cc:834: error: (Each undeclared identifier is reported only once for each function it appears in.)
pcapsource.cc:834: error: expected `;' before "present"
pcapsource.cc:835: error: `presentp' undeclared (first use this function)
pcapsource.cc:835: error: `last_presentp' undeclared (first use this function)
pcapsource.cc:836: error: use of enum `ieee80211_radiotap_type' without previous declaration
pcapsource.cc:836: error: invalid type in declaration before ';' token
pcapsource.cc:844: error: invalid application of `sizeof' to incomplete type `ieee80211_radiotap_header'
pcapsource.cc:850: error: `u_int16_t' undeclared (first use this function)
pcapsource.cc:850: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:850: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:850: error: expected primary-expression before "const"
pcapsource.cc:850: error: expected `)' before "const"
pcapsource.cc:856: error: expected `)' before "for"
pcapsource.cc:856: error: expected `)' before ';' token
pcapsource.cc:856: error: expected `)' before ';' token
pcapsource.cc:857: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:857: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:857: error: expected primary-expression before "const"
pcapsource.cc:857: error: expected `)' before "const"
pcapsource.cc:858: error: expected `)' before ';' token
pcapsource.cc:858: error: expected `)' before ';' token
pcapsource.cc:858: error: expected `)' before ';' token
pcapsource.cc:859: error: expected `;' before ')' token
pcapsource.cc:862: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:862: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:862: error: expected primary-expression before "const"
pcapsource.cc:862: error: expected `)' before "const"
pcapsource.cc:868: error: expected `)' before "packet"
pcapsource.cc:868: error: expected `)' before ';' token
pcapsource.cc:868: error: expected `)' before ';' token
pcapsource.cc:868: error: expected `)' before ';' token
pcapsource.cc:872: error: invalid use of undefined type `struct ieee80211_radiotap_header'
pcapsource.cc:833: error: forward declaration of `struct ieee80211_radiotap_header'
pcapsource.cc:874: error: `present' undeclared (first use this function)
pcapsource.cc:874: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:874: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:874: error: expected primary-expression before "const"
pcapsource.cc:874: error: expected `)' before "const"
pcapsource.cc:874: error: expected `)' before ';' token
pcapsource.cc:874: error: expected `)' before ';' token
pcapsource.cc:874: error: `next_present' undeclared (first use this function)
pcapsource.cc:879: error: use of enum `ieee80211_radiotap_type' without previous declaration
pcapsource.cc:883: error: `IEEE80211_RADIOTAP_FLAGS' undeclared (first use this function)
pcapsource.cc:884: error: `IEEE80211_RADIOTAP_RATE' undeclared (first use this function)
pcapsource.cc:885: error: `IEEE80211_RADIOTAP_DB_ANTSIGNAL' undeclared (first use this function)
pcapsource.cc:886: error: `IEEE80211_RADIOTAP_DB_ANTNOISE' undeclared (first use this function)
pcapsource.cc:887: error: `IEEE80211_RADIOTAP_DBM_ANTSIGNAL' undeclared (first use this function)
pcapsource.cc:888: error: `IEEE80211_RADIOTAP_DBM_ANTNOISE' undeclared (first use this function)
pcapsource.cc:889: error: `IEEE80211_RADIOTAP_ANTENNA' undeclared (first use this function)
pcapsource.cc:890: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u8'
pcapsource.cc:892: error: `IEEE80211_RADIOTAP_DBM_TX_POWER' undeclared (first use this function)
pcapsource.cc:895: error: `IEEE80211_RADIOTAP_CHANNEL' undeclared (first use this function)
pcapsource.cc:896: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u16'
pcapsource.cc:896: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:896: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:896: error: expected primary-expression before "const"
pcapsource.cc:896: error: expected `)' before "const"
pcapsource.cc:896: error: expected `)' before ';' token
pcapsource.cc:896: error: expected `)' before ';' token
pcapsource.cc:897: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u16'
pcapsource.cc:898: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u16'
pcapsource.cc:898: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:898: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:898: error: expected primary-expression before "const"
pcapsource.cc:898: error: expected `)' before "const"
pcapsource.cc:898: error: expected `)' before ';' token
pcapsource.cc:898: error: expected `)' before ';' token
pcapsource.cc:899: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u16'
pcapsource.cc:901: error: `IEEE80211_RADIOTAP_FHSS' undeclared (first use this function)
pcapsource.cc:902: error: `IEEE80211_RADIOTAP_LOCK_QUALITY' undeclared (first use this function)
pcapsource.cc:903: error: `IEEE80211_RADIOTAP_TX_ATTENUATION' undeclared (first use this function)
pcapsource.cc:904: error: `IEEE80211_RADIOTAP_DB_TX_ATTENUATION' undeclared (first use this function)
pcapsource.cc:905: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u16'
pcapsource.cc:905: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:905: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:905: error: expected primary-expression before "const"
pcapsource.cc:905: error: expected `)' before "const"
pcapsource.cc:905: error: expected `)' before ';' token
pcapsource.cc:905: error: expected `)' before ';' token
pcapsource.cc:906: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u16'
pcapsource.cc:908: error: `IEEE80211_RADIOTAP_TSFT' undeclared (first use this function)
pcapsource.cc:909: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u64'
pcapsource.cc:909: error: `u_int64_t' undeclared (first use this function)
pcapsource.cc:909: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:909: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:909: error: expected primary-expression before "const"
pcapsource.cc:909: error: expected `)' before "const"
pcapsource.cc:909: error: expected `)' before ';' token
pcapsource.cc:909: error: expected `)' before ';' token
pcapsource.cc:910: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u64'
pcapsource.cc:931: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u16'
pcapsource.cc:931: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u16'
pcapsource.cc:932: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u16'
pcapsource.cc:934: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u16'
pcapsource.cc:936: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u16'
pcapsource.cc:938: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u16'
pcapsource.cc:940: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u16'
pcapsource.cc:942: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u16'
pcapsource.cc:949: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u8'
pcapsource.cc:964: error: 'union PcapSource::Radiotap2KisPack(kis_packet*, uint8_t*, uint8_t*)::<anonymous>' has no member named 'u8'
pcapsource.cc:1018: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:1018: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:1018: error: expected primary-expression before "const"
pcapsource.cc:1018: error: expected `)' before "const"
pcapsource.cc:1018: error: expected `)' before ';' token
pcapsource.cc:1018: error: expected `)' before ';' token
pcapsource.cc:1018: error: expected `)' before ';' token
pcapsource.cc:1019: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:1019: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:1019: error: expected primary-expression before "const"
pcapsource.cc:1019: error: expected `)' before "const"
pcapsource.cc:1019: error: expected `)' before ';' token
pcapsource.cc:1019: error: expected `)' before ';' token
pcapsource.cc:1019: error: expected `)' before ';' token
pcapsource.cc:1020: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:1020: error: ISO C++ forbids declaration of `type name' with no type
pcapsource.cc:1020: error: expected primary-expression before "const"
pcapsource.cc:1020: error: expected `)' before "const"
pcapsource.cc:1020: error: expected `)' before ';' token
pcapsource.cc:1020: error: expected `)' before ';' token
gmake: *** [pcapsource.o] Error 1


Any suggestions ?


Reply to this message