Wireshark mailing list archives
Re: Adding tap to dissector causes build errors in tap.h?
From: Shawn Mayer <mayer_sr () wvwc edu>
Date: Sun, 11 Apr 2010 17:52:13 -0400
After reverting back to the original file I found that tap.h throws
errors even if the only change I make is adding the "#include <tap.h>".
I've tried including it in packet-aim.c and packet-aim-messaging.c with
the same results:
register.c
packet-aim-messaging.c
c:\wireshark\epan\tap.h(31) : error C2143: syntax error : missing ')'
before '*'
c:\wireshark\epan\tap.h(31) : error C2081: 'packet_info' : name in
formal parame
ter list illegal
c:\wireshark\epan\tap.h(31) : error C2143: syntax error : missing '{'
before '*'
c:\wireshark\epan\tap.h(31) : error C2371: 'epan_dissect_t' :
redefinition; diff
erent basic types
c:\wireshark\epan\epan.h(32) : see declaration of 'epan_dissect_t'
c:\wireshark\epan\tap.h(31) : error C2143: syntax error : missing ';'
before '*'
c:\wireshark\epan\tap.h(31) : error C2059: syntax error : 'type'
c:\wireshark\epan\tap.h(31) : error C2059: syntax error : ')'
c:\wireshark\epan\tap.h(43) : error C2143: syntax error : missing ')'
before '*'
c:\wireshark\epan\tap.h(43) : error C2081: 'packet_info' : name in
formal parame
ter list illegal
c:\wireshark\epan\tap.h(43) : error C2143: syntax error : missing '{'
before '*'
c:\wireshark\epan\tap.h(43) : error C2059: syntax error : 'type'
c:\wireshark\epan\tap.h(43) : error C2059: syntax error : ')'
c:\wireshark\epan\tap.h(51) : error C2146: syntax error : missing ')'
before ide
ntifier 'tap_packet'
c:\wireshark\epan\tap.h(51) : error C2081: 'tap_packet_cb' : name in
formal para
meter list illegal
c:\wireshark\epan\tap.h(51) : error C2061: syntax error : identifier
'tap_packet
'
c:\wireshark\epan\tap.h(51) : error C2059: syntax error : ';'
c:\wireshark\epan\tap.h(51) : error C2059: syntax error : ','
c:\wireshark\epan\tap.h(51) : error C2059: syntax error : ')'
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio
9.0\VC\BIN
\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio
9.0\VC\BIN
\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio
9.0\VC\BIN
\nmake.exe"' : return code '0x2'
Stop.
c:\wireshark>
Is tap.h broken?
On 4/11/2010 12:45 AM, Shawn Mayer wrote:
Following the instructions in the README.tapping file I've added the #include<tap.h>, the tap handler and the calls to tap_queue. When I build its giving me errors for tap.h in addition to the dissector I've modified? Shawn NTMail K12 - the Mail Server for Education ___________________________________________________________________________ Sent via: Wireshark-dev mailing list<wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
NTMail K12 - the Mail Server for Education ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Adding tap to dissector causes build errors in tap.h? Shawn Mayer (Apr 10)
- Re: Adding tap to dissector causes build errors in tap.h? Shawn Mayer (Apr 11)
- Re: Adding tap to dissector causes build errors in tap.h? Maynard, Chris (Apr 11)
- Re: Adding tap to dissector causes build errors in tap.h? Shawn Mayer (Apr 11)
- Re: Adding tap to dissector causes build errors in tap.h? Bill Meier (Apr 11)
- Re: Adding tap to dissector causes build errors in tap.h? Shawn Mayer (Apr 11)
- Re: Adding tap to dissector causes build errors in tap.h? Maynard, Chris (Apr 11)
- Re: Adding tap to dissector causes build errors in tap.h? Maynard, Chris (Apr 11)
- Re: Adding tap to dissector causes build errors in tap.h? Shawn Mayer (Apr 11)
