I did an svn update on the code directory and now the build fails. The code built fine previously along with the plugin I've written, and I'm sure I've not made any changes to any other .c or .h files. This is what I get before build stops: c:\wireshark\epan\except.h(96) : error C2054: expected '(' to follow 'WS_MSVC_NO RETURN' c:\wireshark\epan\except.h(96) : error C2085: 'except_rethrow' : not in formal p arameter list c:\wireshark\epan\except.h(97) : error C2082: redefinition of formal parameter ' WS_MSVC_NORETURN' c:\wireshark\epan\except.h(97) : error C2143: syntax error : missing ';' before 'type' c:\wireshark\epan\except.h(97) : error C2085: 'except_throw' : not in formal par ameter 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_throwd' : not in formal pa rameter 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_throwf' : not in formal pa rameter list c:\wireshark\epan\except.h(100) : error C2085: 'except_unhandled_catcher' : not in formal parameter list c:\wireshark\epan\except.h(101) : error C2085: 'except_code' : not in formal par ameter list c:\wireshark\epan\except.h(102) : error C2085: 'except_group' : not in formal pa rameter list c:\wireshark\epan\except.h(103) : error C2085: 'except_message' : not in formal parameter list c:\wireshark\epan\except.h(104) : error C2085: 'except_data' : not in formal par ameter list c:\wireshark\epan\except.h(105) : error C2085: 'except_take_data' : not in forma l parameter list c:\wireshark\epan\except.h(106) : error C2085: 'except_set_allocator' : not in f ormal parameter list c:\wireshark\epan\except.h(107) : error C2085: 'except_alloc' : not in formal pa rameter list c:\wireshark\epan\except.h(108) : error C2085: 'except_free' : not in formal par ameter list c:\wireshark\epan\tvbuff.h(62) : error C2085: 'tvbuff_type' : not in formal para meter list c:\wireshark\epan\tvbuff.h(65) : error C2085: 'tvbuff_t' : not in formal paramet er list c:\wireshark\epan\tvbuff.h(117) : error C2085: 'tvbuff_free_cb_t' : not in forma l parameter list c:\wireshark\epan\tvbuff.h(122) : error C2085: 'tvbuff_t' : not in formal parame ter list c:\wireshark\epan\tvbuff.h(122) : error C2143: syntax error : missing ';' before '*' c:\wireshark\epan\tvbuff.h(128) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(128) : error C2143: syntax error : missing ')' before '*' c:\wireshark\epan\tvbuff.h(128) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(128) : warning C4142: benign redefinition of type c:\wireshark\epan\tvbuff.h(128) : error C2370: 'guint32' : redefinition; differe nt storage class
declaration of 'guint32' c:\wireshark\epan\tvbuff.h(128) : error C2146: syntax error : missing ';' before identifier 'bit_offset' c:\wireshark\epan\tvbuff.h(128) : error C2059: syntax error : 'type' c:\wireshark\epan\tvbuff.h(128) : error C2059: syntax error : ')' c:\wireshark\epan\tvbuff.h(135) : error C2143: syntax error : missing ')' before '*' c:\wireshark\epan\tvbuff.h(135) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(135) : error C2059: syntax error : ')' c:\wireshark\epan\tvbuff.h(135) : error C2059: syntax error : ';' c:\wireshark\epan\tvbuff.h(142) : error C2143: syntax error : missing ')' before '*' c:\wireshark\epan\tvbuff.h(142) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(142) : error C2059: syntax error : ')' c:\wireshark\epan\tvbuff.h(142) : error C2059: syntax error : ';' c:\wireshark\epan\tvbuff.h(148) : error C2143: syntax error : missing ')' before '*' c:\wireshark\epan\tvbuff.h(148) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(148) : error C2059: syntax error : ',' c:\wireshark\epan\tvbuff.h(148) : error C2059: syntax error : ')' c:\wireshark\epan\tvbuff.h(159) : error C2143: syntax error : missing ')' before '*' c:\wireshark\epan\tvbuff.h(159) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(159) : error C2143: syntax error : missing ';' before '*' c:\wireshark\epan\tvbuff.h(159) : error C2059: syntax error : ')' c:\wireshark\epan\tvbuff.h(161) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(161) : error C2143: syntax error : missing ')' before '*' c:\wireshark\epan\tvbuff.h(161) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(161) : error C2371: 'guint8' : redefinition; differen t basic types
declaration of 'guint8' c:\wireshark\epan\tvbuff.h(161) : warning C4228: nonstandard extension used : qu alifiers after comma in declarator list are ignored c:\wireshark\epan\tvbuff.h(161) : error C2143: syntax error : missing ';' before '*' c:\wireshark\epan\tvbuff.h(161) : warning C4142: benign redefinition of type c:\wireshark\epan\tvbuff.h(161) : error C2370: 'guint' : redefinition; different storage class
claration of 'guint' c:\wireshark\epan\tvbuff.h(161) : warning C4228: nonstandard extension used : qu alifiers after comma in declarator list are ignored c:\wireshark\epan\tvbuff.h(161) : error C2146: syntax error : missing ';' before identifier 'length' c:\wireshark\epan\tvbuff.h(162) : error C2059: syntax error : 'type' c:\wireshark\epan\tvbuff.h(162) : error C2059: syntax error : ')' c:\wireshark\epan\tvbuff.h(165) : error C2143: syntax error : missing ')' before '*' c:\wireshark\epan\tvbuff.h(165) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(165) : error C2059: syntax error : ',' c:\wireshark\epan\tvbuff.h(166) : error C2059: syntax error : ')' c:\wireshark\epan\tvbuff.h(172) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(188) : error C2143: syntax error : missing ')' before '*' c:\wireshark\epan\tvbuff.h(188) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(188) : error C2143: syntax error : missing ';' before '*' c:\wireshark\epan\tvbuff.h(189) : error C2370: 'gint' : redefinition; different storage class
claration of 'gint' c:\wireshark\epan\tvbuff.h(189) : warning C4228: nonstandard extension used : qu alifiers after comma in declarator list are ignored c:\wireshark\epan\tvbuff.h(189) : error C2146: syntax error : missing ';' before identifier 'backing_offset' c:\wireshark\epan\tvbuff.h(189) : error C2059: syntax error : 'type' c:\wireshark\epan\tvbuff.h(189) : error C2059: syntax error : ')' c:\wireshark\epan\tvbuff.h(193) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(193) : error C2143: syntax error : missing ')' before '*' c:\wireshark\epan\tvbuff.h(193) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(194) : error C2370: 'gint' : redefinition; different storage class
claration of 'gint' c:\wireshark\epan\tvbuff.h(194) : warning C4228: nonstandard extension used : qu alifiers after comma in declarator list are ignored c:\wireshark\epan\tvbuff.h(194) : error C2146: syntax error : missing ';' before identifier 'backing_offset' c:\wireshark\epan\tvbuff.h(194) : error C2059: syntax error : 'type' c:\wireshark\epan\tvbuff.h(194) : 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 C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(199) : error C2370: 'gint' : redefinition; different storage class
claration of 'gint' c:\wireshark\epan\tvbuff.h(199) : warning C4228: nonstandard extension used : qu alifiers after comma in declarator list are ignored c:\wireshark\epan\tvbuff.h(199) : error C2146: syntax error : missing ';' before identifier 'backing_offset' c:\wireshark\epan\tvbuff.h(199) : error C2059: syntax error : ')' c:\wireshark\epan\tvbuff.h(206) : error C2143: syntax error : missing ')' before '*' c:\wireshark\epan\tvbuff.h(206) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(206) : error C2143: syntax error : missing ';' before '*' c:\wireshark\epan\tvbuff.h(206) : error C2059: syntax error : ')' c:\wireshark\epan\tvbuff.h(209) : error C2143: syntax error : missing ')' before '*' c:\wireshark\epan\tvbuff.h(209) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(209) : error C2143: syntax error : missing ';' before '*' c:\wireshark\epan\tvbuff.h(209) : error C2059: syntax error : ')' c:\wireshark\epan\tvbuff.h(213) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(217) : error C2143: syntax error : missing ')' before '*' c:\wireshark\epan\tvbuff.h(217) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(217) : error C2059: syntax error : ')' c:\wireshark\epan\tvbuff.h(221) : error C2143: syntax error : missing ')' before '*' c:\wireshark\epan\tvbuff.h(221) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(221) : error C2059: syntax error : ')' c:\wireshark\epan\tvbuff.h(221) : error C2059: syntax error : ';' c:\wireshark\epan\tvbuff.h(226) : error C2143: syntax error : missing ')' before '*' c:\wireshark\epan\tvbuff.h(226) : error C2143: syntax error : missing '{' before '*' c:\wireshark\epan\tvbuff.h(226) : error C2059: syntax error : ',' c:\wireshark\epan\tvbuff.h(226) : fatal error C1003: error count exceeds 100; st opping compilation NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\cl.EXE"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. C:\wireshark> Could someone please tell me what's going on? asked 06 Nov '12, 06:06 SidR |
2 Answers:
If your plugin(s) have #ifdef HAVE_CONFIG_H # include "config.h" #endif You have to change that to #include "config.h" answered 06 Nov '12, 06:52 Anders ♦ |
Where is your svn working copy connected to, trunk or a release branch (hint use If you're using the trunk, then occasional breakage does happen. Looking at the buildbot waterfall display will tell you what the last revision to successfully build was, (currently r45948). I've just locally built that version without a problem so it looks like the problem is at your end if you're at that same revision. Have you changed anything since your last successful compile? Have you tried a answered 06 Nov '12, 06:24 grahamb ♦ I did a make distclean. Still the same problem. svn info gave the following: Path: . Working Copy Root Path: C:\wireshark URL: http://anonsvn.wireshark.org/wireshark/trunk Repository Root: http://anonsvn.wireshark.org/wireshark Repository UUID: f5534014-38df-0310-8fa8-9805f1628bb7 Revision: 45948 Node Kind: directory Schedule: normal Last Changed Author: darkjames Last Changed Rev: 45948 Last Changed Date: 2012-11-06 18:58:59 +0530 (Tue, 06 Nov 2012) (06 Nov '12, 06:33) SidR Hmm...also there seems to be a "tree conflict" for configure.in. Could this be the culprit? (06 Nov '12, 06:36) SidR Any tree conflict should be resolved, it means that your working copy is not in sync with the repository and may not be in a buildable state, although configure.in isn't used for the Windows build. (06 Nov '12, 06:55) grahamb ♦ |
It works! Thanks a lot! What will the effect of this change be? Will my plugin still be compatible will 1.8.0-1.8.2?
Now my plugin doesn't work on on Wireshark 1.8.3 or older. I expect I'll have to maintain separate versions then.