This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Build Errors for Custom Plugin in epan\proto.h

0

I'm trying to add a custom plugin to a Wireshark built from source for Windows. The plugin has previously been successfully added to a Wireshark built from source for Linux, and the code has not been changed. I've gotten Wireshark to build successfully from source without adding the plugin, and have built it successfully with the plugin in the plugins folder but without any of the changes to add it as an extension.

When I change the custom.example files as directed in the README.plugins file, I immediately run into build errors. There are hundreds of compilation errors not in any of the source files, but in wireshark\epan\proto.h. They're all of the syntax error type, things like missing parenthesis and nonstandard extensions used. The plugin files compiled successfully for linux--why would they not work here? And why would the errors show up in epan\proto.h?

asked 19 Jan '15, 06:49

mehubb985's gravatar image

mehubb985
118810
accept rate: 0%


One Answer:

0

It's possible the plugin includes header files only found on Linux, or includes something that then breaks subsequent includes, e.g. proto.h.

Redirect the build output to a file, e.g. nmake -f makefile.nmake > test.txt 2>&1 and look at the first errors found, you can post it here as a comment.

answered 19 Jan '15, 09:03

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%