Hi, I'll be honest, I'm completely lost here. I was asked to update an existing dissector built with VS2008 using nmake (wireshark v.1.6.10). I want to rebuild it using VS2013. I've followed the developers guide and verified that my build environment works by building wireshark 2.2 using cmake. But when I try to build using msbuild, I get the following output...
) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(525): error C2057: expected constant expression (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(526): error C2057: expected constant expression (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(527): error C2057: expected constant expression (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(528): error C2057: expected constant expression (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(531): error C2057: expected constant expression (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(534): error C2057: expected constant expression (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(535): error C2057: expected constant expression (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(536): error C2057: expected constant expression (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(538): error C2057: expected constant expression (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(538): error C2085: 'field_display_e' : not in formal parameter list (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(562): error C2085: 'hf_ref_type': not in formal parameter list (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(565): error C2085: 'header_field_info' : not in formal parameter list (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(584): error C2061: syntax error: identifier 'hf_ref_type' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(586): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(587): error C2059: syntax error: '}' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(606): error C2061: syntax error: identifier 'header_field_info' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(607): error C2059: syntax error: '}' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(620): error C2016: C requires that a struct or union has at least one member (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(620): error C2061: syntax error: identifier 'header_field_info' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(630): error C2059: syntax error: '}' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(708): error C2061: syntax error: identifier 'field_info' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(710): error C2059: syntax error: '}' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(713): error C2061: syntax error: identifier 'proto_tree' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(713): error C2059: syntax error: ';' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(715): error C2061: syntax error: identifier 'proto_item' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(715): error C2059: syntax error: ';' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(810): error C2143: syntax error: missing ')' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(810): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(810): error C2059: syntax error: ',' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(810): error C2059: syntax error: ')' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(811): error C2143: syntax error: missing ')' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(811): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(811): error C2059: syntax error: ',' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(811): error C2059: syntax error: ')' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(813): error C2143: syntax error: missing ')' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(813): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(814): error C2146: syntax error: missing ';' before identifier 'func' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(814): error C2059: syntax error: 'type' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(814): error C2059: syntax error: ')' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(816): error C2143: syntax error: missing ')' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(816): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(817): error C2146: syntax error: missing ';' before identifier 'func' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(817): error C2059: syntax error: 'type' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(817): error C2059: syntax error: ')' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(862): error C2143: syntax error: missing ')' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(862): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(862): error C2059: syntax error: 'type' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(862): error C2059: syntax error: ')' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(868): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(868): error C2143: syntax error: missing ')' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(868): error C2370: 'gint' : redefinition; different storage class (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(868): error C2146: syntax error: missing ';' before identifier 'idx' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(868): error C2059: syntax error: ')' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(873): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(873): error C2143: syntax error: missing ')' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(873): error C2059: syntax error: ')' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(878): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(878): error C2143: syntax error: missing ')' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(878): error C2059: syntax error: ')' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(884): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(884): error C2143: syntax error: missing ')' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(884): error C2059: syntax error: 'type' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(884): error C2059: syntax error: ')' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(890): error C2143: syntax error: missing ')' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(890): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(890): error C2059: syntax error: 'type' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(890): error C2059: syntax error: ')' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(897): error C2143: syntax error: missing ')' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(897): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(897): error C2059: syntax error: 'type' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(897): error C2059: syntax error: ')' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(904): error C2143: syntax error: missing ')' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(904): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(904): error C2059: syntax error: 'type' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(904): error C2059: syntax error: ')' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(910): error C2143: syntax error: missing ')' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(910): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(910): error C2370: 'gint' : redefinition; different storage class (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(910): error C2146: syntax error: missing ';' before identifier 'length' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(910): error C2059: syntax error: ')' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(922): error C2143: syntax error: missing ')' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(922): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(922): error C2371: 'tvbuff_t' :redefinition; different basic types (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(922): error C2143: syntax error: missing ';' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(922): error C2370: 'gint' : redefinition; different storage class (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(922): error C2146: syntax error: missing ';' before identifier 'end' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(922): error C2059: syntax error: ')' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(928): error C2143: syntax error: missing ')' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(928): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(928): error C2059: syntax error: ')' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(934): error C2143: syntax error: missing '{' before '*' (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
c:\development\wireshark\epan\proto.h(934): fatal error C1003: error count exceeds 100; stopping compilation (C:\Development\wireshark\plugins\incjet\packet-incjet.c) [C:\Development\wsbuild32\plugins\incjet\incjet.vcxproj]
2 Warning(s)
103 Error(s)
Time Elapsed 00:02:23.55
Any ideas what’s going on? I can provide my dissector code if needed.
Thanks,
Ahmed Awale
asked 25 Jan ‘17, 13:32
aawale15
6●1●1●4
accept rate: 0%
Have you made code changes to the old dissector code to make it compatible with the wireshark fucntions of v2.2?
One changes is that
Should be unconditionally included, see other plugins.
Yes, I’ve included config.h in my plugin source. And I have made code chagnes…I used the gyrphon source as a reference and my plugin follows the same format. I’ve looked through README.plugins as well, and followed the “Update old style plugins” section.
Could I send over my code to either of you via email, git, etc…Anders or koundi? I’m really lost and my predecessor didn’t leave much behind to help.
Thanks for your help in advance!
Is there a document available that highlights differences in API between each wireshark release (or when a change was made)?
No not really. You could try to find the commit that introduced or removed the API and see what changes were done.
@aawale Is your code not proprietary. In general, when I hear a custom plugin I think of it as some kind of proprietary dissector. If that is not the case I don't mind helping you.
But as Anders already said, the best thing you can start rectifying the compiler errors for Wireshark functions one by one, you can check other dissectors in 1.6 that use the same API and compare it to the same dissector in 2.2 . That should give you some idea where to start!
That's a great point koundi...the plugin does dissector our protocol which I know is proprietary. I will run that by the VP of our company.
Do you think it's easier to take an existing dissector in 2.2 and try to modify that dissector with our protocol. or should I stick with the approach of updating our 1.6 dissector to build with 2.2???
@aawale I think you misunderstood what I said. I meant if your proprietary dissector uses some function call in 1.6 that isn't supported in 2.2 then you should see other protocol dissectors that use the same function and compare that dissector with its 2.2 version which will give you some idea what changes are to be made.
Ofcourse that will just give you a place to start ideally, you should be looking for all the code changes in the commit that changed the function in the dissector code.
Can you show us the first lines of your plugin, the include section?
One way of finding out what is wrong would be to just compile a stub dissector eg reduce your dissectr to the pare minimum and make that compile and then add back the code piece by piece until the first breacage and then figure out what is wrong with that piece. BTW what is at line 525 in your version of proto.h?
I was able to make some progress guys. Now I am seeing no errors but 1 warning...
Any ideas?
This is the typedef in 1.6:
while this is the one in 2.2:
So I think this has to do with dissector registration.Hey, guys.I wanted to pick up where I left off. I should have compiled Wireshark and verified that it runs before hacking the Wireshark sources for my project. I am now seeing the following errors after following Wireshark's Win32/64: Step-by-Step Guide. Any ideas? (see comment below)
Build FAILED. "C:\Development\wsbuild32\Wireshark.sln" (default target) (1) -> "C:\Development\wsbuild32\epan\dissectors\dissectors.vcxproj.metaproj" ( default target) (19) -> "C:\Development\wsbuild32\epan\dissectors\dissectors.vcxproj" (default target) (92) -> (ClCompile target) -> C:\Development\wireshark\epan\dissectors\packet-ipv6.c(2093): error C2 275: 'guint16' : illegal use of this type as an expression [C:\Development\wsbuild32\epan\dissectors\dissectors.vcxproj] C:\Development\wireshark\epan\dissectors\packet-ipv6.c(2093): error C2 146: syntax error : missing ';' before identifier 'mapped_port' [C:\Development\wsbuild32\epan\dissectors\dissectors.vcxproj] C:\Development\wireshark\epan\dissectors\packet-ipv6.c(2093): error C2 065: 'mapped_port' : undeclared identifier [C:\Development\wsbuild32\epan\dissectors\dissectors.vcxproj] C:\Development\wireshark\epan\dissectors\packet-ipv6.c(2104): error C2065: 'mapped_port' : undeclared identifier [C:\Development\wsbuild32\epan\dissectors\dissectors.vcxproj] C:\Development\wireshark\epan\dissectors\packet-usb-i1d3.c(434): error C2275: 'guint32' : illegal use of this type as an expression [C:\Development\wsbuild32\epan\dissectors\dissectors.vcxproj] C:\Development\wireshark\epan\dissectors\packet-usb-i1d3.c(434): errorC2146: syntax error : missing ';' before identifier 'response_code' [C:\Development\wsbuild32\epan\dissectors\dissectors.vcxproj] C:\Development\wireshark\epan\dissectors\packet-usb-i1d3.c(434): errorC2065: 'response_code' : undeclared identifier [C:\Development\wsbuild32\epan\dissectors\dissectors.vcxproj] C:\Development\wireshark\epan\dissectors\packet-usb-i1d3.c(436): errorC2065: 'response_code' : undeclared identifier [C:\Development\wsbuild32\epan\dissectors\dissectors.vcxproj] C:\Development\wireshark\epan\dissectors\packet-usb-i1d3.c(438): errorC2065: 'response_code' : undeclared identifier [C:\Development\wsbuild32\epan\dissectors\dissectors.vcxproj] C:\Development\wireshark\epan\dissectors\packet-usb-i1d3.c(439): errorC2065: 'response_code' : undeclared identifier [C:\Development\wsbuild32\epan\dissectors\dissectors.vcxproj] C:\Development\wireshark\epan\dissectors\packet-usb-i1d3.c(442): errorC2065: 'response_code' : undeclared identifier [C:\Development\wsbuild32\epan\dissectors\dissectors.vcxproj]
Time Elapsed 00:05:55.48
This is a better approach, first get a functioning build system, then modify that.
Can you post the output of your CMake generation step please, e.g.
I want to see the contents of cmake.txt
My CMakeOutput.txt?? located in C:\Development\wsbuild32\CMakeFiles
That file is well over 2500 characters...can't fit in a comment.
Add it as an "answer" and I'll convert it to a comment.
cmake.txt: https://drive.google.com/open?id=0B-_XzBvJXAX3S3RfTUdOMl9SRTQ
Take a look at link above grahamb. That should be what you're looking for. Thanks!