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

amin protocol compilation

0

while compiling the AMIN protocol,the command nmake all gives these errors:

packet-amin.c
packet-amin.c(78) : error C2220: warning treated as error - no 'object' file generated
packet-amin.c(78) : warning C4013: 'dissector_add' undefined; assuming extern returning int
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\Bin\cl.EXE"' : return code '0x2'.

i had removed ",0" from plugin.rc file in amin dir as suggested somewhere.but still build doesn't work. somebody..help !!

asked 07 Apr '13, 23:45

ajain's gravatar image

ajain
146711
accept rate: 0%

edited 08 Apr '13, 02:52

grahamb's gravatar image

grahamb ♦
19.8k330206

Where does the dissector source come from, what version of Wireshark was it created for and what version of Wireshark are you attempting to compile?

(08 Apr '13, 02:52) grahamb ♦

http://www.codeproject.com/Articles/19426/Creating-Your-Own-Custom-Wireshark-Dissector provides the source file.i'm trying to compile it for WS 1.8.5,not sure what ver it was created for?

(08 Apr '13, 03:26) ajain

The article is dated July 2007, so that would probably have been around the 0.99.6 timeframe. A lot of water (and code) as been under the bridge since then, so the dissector may not compile in its original form with 1.8.5.

(08 Apr '13, 04:32) grahamb ♦

dissector_add() has been deprecated in fawor of dissector_add_uint().

(08 Apr '13, 04:34) Anders ♦

so no way of compiling this dissector?can u provide any other ex?where and how would i compile my dissector?

(08 Apr '13, 05:40) ajain

Have a look in the Developers Guide. It is maintained by the Wireshark Developers, so is up to date with the latest dissector practice and not just tossed over the wall and left to languish like the CodeProject dissector.

(08 Apr '13, 06:12) grahamb ♦
showing 5 of 6 show 1 more comments

One Answer:

0

Edit the packet-amin.c file and replace all occurrences of dissector_add with dissector_add_uint.

answered 08 Apr '13, 20:13

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%