Hi,
I'm trying to compile a plugin for Wireshark version 1.10.5 and am getting the following error:
c:\wireshark\epan\except.h(97) : error C2054: expected '(' to follow 'WS_MSVC_NORETURN'
c:\wireshark\epan\except.h(97) : error C2085: 'except_rethrow' : not in formal parameter list
c:\wireshark\epan\except.h(98) : error C2082: redefinition of formal parameter 'WS_MSVC_NORETURN'
c:\wireshark\epan\except.h(98) : error C2143: syntax error : missing ';' before 'type'
c:\wireshark\epan\except.h(98) : error C2085: 'except_throw' : not in formal parameter list
c:\wireshark\epan\except.h(99) : error C2082: redefinition of formal parameter 'WS_MSVC_NORETURN'
c:\wireshark\epan\except.h(99) : error C2143: syntax error : missing ';' before 'type'
c:\wireshark\epan\except.h(99) : error C2085: 'except_throwd' : not in formal parameter list
c:\wireshark\epan\except.h(100) : error C2082: redefinition of formal parameter 'WS_MSVC_NORETURN'
c:\wireshark\epan\except.h(100) : error C2143: syntax error : missing ';' before 'type'
c:\wireshark\epan\except.h(100) : error C2085: 'except_throwf' : not in formal parameter list
c:\wireshark\epan\except.h(101) : error C2085: 'except_unhandled_catcher' : not in formal parameter list
c:\wireshark\epan\except.h(102) : error C2085: 'except_code' : not in formal parameter list
c:\wireshark\epan\except.h(103) : error C2085: 'except_group' : not in formal parameter list
c:\wireshark\epan\except.h(104) : error C2085: 'except_message' : not in formal parameter list
c:\wireshark\epan\except.h(105) : error C2085: 'except_data' : not in formal parameter list
c:\wireshark\epan\except.h(106) : error C2085: 'except_take_data' : not in formal parameter list
c:\wireshark\epan\except.h(107) : error C2085: 'except_set_allocator' : not in formal parameter list
c:\wireshark\epan\except.h(108) : error C2085: 'except_alloc' : not in formal parameter list
c:\wireshark\epan\except.h(109) : error C2085: 'except_free' : not in formal parameter list
C:\wireshark\epan/tvbuff.h(59) : error C2085: 'tvbuff_type' : not in formal parameter list
C:\wireshark\epan/tvbuff.h(70) : error C2085: 'tvb_backing_t' : not in formal parameter list
C:\wireshark\epan/tvbuff.h(81) : error C2085: 'tvb_comp_t' : not in formal parameter list
C:\wireshark\epan/tvbuff.h(83) : error C2085: 'tvbuff_free_cb_t' : not in formal parameter list
C:\wireshark\epan/tvbuff.h(87) : error C2016: C requires that a struct or union has at least one member
C:\wireshark\epan/tvbuff.h(87) : error C2061: syntax error : identifier 'tvbuff_type'
C:\wireshark\epan/tvbuff.h(100) : error C2016: C requires that a struct or union has at least one member
C:\wireshark\epan/tvbuff.h(100) : error C2061: syntax error : identifier 'tvb_backing_t'
C:\wireshark\epan/tvbuff.h(101) : error C2061: syntax error : identifier 'composite'
C:\wireshark\epan/tvbuff.h(101) : error C2059: syntax error : ';'
C:\wireshark\epan/tvbuff.h(102) : error C2059: syntax error : '}'
C:\wireshark\epan/tvbuff.h(122) : error C2061: syntax error : identifier 'free_cb'
C:\wireshark\epan/tvbuff.h(122) : error C2059: syntax error : ';'
C:\wireshark\epan/tvbuff.h(123) : error C2059: syntax error : '}'
C:\wireshark\epan/tvbuff.h(158) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(179) : error C2143: syntax error : missing ')' before '*'
C:\wireshark\epan/tvbuff.h(179) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(179) : error C2059: syntax error : ')'
C:\wireshark\epan/tvbuff.h(179) : error C2059: syntax error : ';'
C:\wireshark\epan/tvbuff.h(182) : error C2143: syntax error : missing ')' before '*'
C:\wireshark\epan/tvbuff.h(182) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(182) : error C2059: syntax error : ')'
C:\wireshark\epan/tvbuff.h(182) : error C2059: syntax error : ';'
C:\wireshark\epan/tvbuff.h(185) : error C2143: syntax error : missing ')' before '*'
C:\wireshark\epan/tvbuff.h(185) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(185) : error C2059: syntax error : ','
C:\wireshark\epan/tvbuff.h(185) : error C2059: syntax error : ')'
C:\wireshark\epan/tvbuff.h(192) : error C2143: syntax error : missing ')' before '*'
C:\wireshark\epan/tvbuff.h(192) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(192) : error C2059: syntax error : ','
C:\wireshark\epan/tvbuff.h(192) : error C2059: syntax error : ')'
C:\wireshark\epan/tvbuff.h(198) : error C2143: syntax error : missing ')' before '*'
C:\wireshark\epan/tvbuff.h(198) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(198) : error C2059: syntax error : ','
C:\wireshark\epan/tvbuff.h(198) : error C2059: syntax error : ')'
C:\wireshark\epan/tvbuff.h(210) : error C2143: syntax error : missing ')' before '*'
C:\wireshark\epan/tvbuff.h(210) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(210) : error C2143: syntax error : missing ';' before '*'
C:\wireshark\epan/tvbuff.h(210) : error C2059: syntax error : ')'
C:\wireshark\epan/tvbuff.h(212) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(212) : error C2143: syntax error : missing ')' before '*'
C:\wireshark\epan/tvbuff.h(212) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(212) : error C2371: 'guint8' : redefinition; different basic types
C:\wireshark-win32-libs-1.6\gtk2\lib\glib-2.0\include\glibconfig.h(36) : see declaration of 'guint8'
C:\wireshark\epan/tvbuff.h(212) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
C:\wireshark\epan/tvbuff.h(212) : error C2143: syntax error : missing ';' before '*'
C:\wireshark\epan/tvbuff.h(212) : warning C4142: benign redefinition of type
C:\wireshark\epan/tvbuff.h(212) : error C2370: 'guint' : redefinition; different storage class
C:\wireshark-win32-libs-1.6\gtk2\include\glib-2.0\glib/gtypes.h(56) : see declaration of 'guint'
C:\wireshark\epan/tvbuff.h(212) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
C:\wireshark\epan/tvbuff.h(212) : error C2146: syntax error : missing ';' before identifier 'length'
C:\wireshark\epan/tvbuff.h(212) : warning C4142: benign redefinition of type
C:\wireshark\epan/tvbuff.h(213) : error C2059: syntax error : 'type'
C:\wireshark\epan/tvbuff.h(213) : error C2059: syntax error : ')'
C:\wireshark\epan/tvbuff.h(216) : error C2143: syntax error : missing ')' before '*'
C:\wireshark\epan/tvbuff.h(216) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(216) : error C2059: syntax error : ','
C:\wireshark\epan/tvbuff.h(217) : error C2059: syntax error : ')'
C:\wireshark\epan/tvbuff.h(220) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(237) : error C2143: syntax error : missing ')' before '*'
C:\wireshark\epan/tvbuff.h(237) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(237) : error C2143: syntax error : missing ';' before '*'
C:\wireshark\epan/tvbuff.h(238) : error C2370: 'gint' : redefinition; different storage class
C:\wireshark-win32-libs-1.6\gtk2\include\glib-2.0\glib/gtypes.h(50) : see declaration of 'gint'
C:\wireshark\epan/tvbuff.h(238) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
C:\wireshark\epan/tvbuff.h(238) : error C2146: syntax error : missing ';' before identifier 'backing_offset'
C:\wireshark\epan/tvbuff.h(238) : error C2059: syntax error : 'type'
C:\wireshark\epan/tvbuff.h(238) : error C2059: syntax error : ')'
C:\wireshark\epan/tvbuff.h(242) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(242) : error C2143: syntax error : missing ')' before '*'
C:\wireshark\epan/tvbuff.h(242) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(243) : error C2370: 'gint' : redefinition; different storage class
C:\wireshark-win32-libs-1.6\gtk2\include\glib-2.0\glib/gtypes.h(50) : see declaration of 'gint'
C:\wireshark\epan/tvbuff.h(243) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
C:\wireshark\epan/tvbuff.h(243) : error C2146: syntax error : missing ';' before identifier 'backing_offset'
C:\wireshark\epan/tvbuff.h(243) : error C2059: syntax error : 'type'
C:\wireshark\epan/tvbuff.h(243) : error C2059: syntax error : ')'
C:\wireshark\epan/tvbuff.h(247) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(247) : error C2143: syntax error : missing ')' before '*'
C:\wireshark\epan/tvbuff.h(247) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(248) : error C2370: 'gint' : redefinition; different storage class
C:\wireshark-win32-libs-1.6\gtk2\include\glib-2.0\glib/gtypes.h(50) : see declaration of 'gint'
C:\wireshark\epan/tvbuff.h(248) : warning C4228: nonstandard extension used : qualifiers after comma in declarator list are ignored
C:\wireshark\epan/tvbuff.h(248) : error C2146: syntax error : missing ';' before identifier 'backing_offset'
C:\wireshark\epan/tvbuff.h(248) : error C2059: syntax error : ')'
C:\wireshark\epan/tvbuff.h(255) : error C2143: syntax error : missing ')' before '*'
C:\wireshark\epan/tvbuff.h(255) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(255) : error C2143: syntax error : missing ';' before '*'
C:\wireshark\epan/tvbuff.h(255) : error C2059: syntax error : ')'
C:\wireshark\epan/tvbuff.h(258) : error C2143: syntax error : missing ')' before '*'
C:\wireshark\epan/tvbuff.h(258) : error C2143: syntax error : missing '{' before '*'
C:\wireshark\epan/tvbuff.h(258) : error C2143: syntax error : missing ';' before '*'
C:\wireshark\epan/tvbuff.h(258) : error C2059: syntax error : ')'
C:\wireshark\epan/tvbuff.h(258) : fatal error C1003: error count exceeds 100; stopping compilation
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
I know this question is similar to http://ask.wireshark.org/questions/15580/windows-build-suddenly-failed-after-svn-sync but the solution to this question didnt help me. I tried changing the include in my plugin file the way the solution to that question suggested and the build still failed. Also when i tried to build this plugin using version 1.11.3 it worked fine, however i need to use 1.10.5 so i dont know what to do.
Thanks in advance
asked 13 Jan '14, 08:07
Hockeyfreak889
16●1●1●4
accept rate: 0%
edited 13 Jan '14, 08:47
grahamb ♦
19.8k●3●30●206
There are API and changes to #includes between 1.10.x and 1.11.x so I'd compare with the includes of the plugins that ship with 1.10.x. If you show us the include section of your plugin we might be able to figure out what the problem is.
the include section of the plugin consists of the following:
Note: The Q&A markup doesn't play nicely with #includes.
I don't have a 1.10 ref handy, how is "config.h" included in the "standard" plugins?
1.10 plugins that is.
Looking at packet-gryphon.c as an example, it's just:
Is that a supported build platform?
The Developer's Guide mentions MSVC 2010 because that's what the official releases use, but MSVC 2008 is still supported, as indicated in section 4.4.1 Toolchain Package Alternatives.
O.K. thanks