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

Error after adding Plugin: No protocol registrations found

0

Hello. I'm writing a postdissector plugin in C to look into the options field found in the tcp header. Unfortunately, the following error turns up when I try to build:

Making plugin.c (using python)
No protocol registrations found
NMAKE : fatal error U1077: 'C:\Python27\python.exe' : return code '0x1'
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.

It was building fine before I added the plugin and made changes as specified in README.plugins.
Could anyone please tell me what the problem could be?!!

Edit: I found out in another thread that the problem should be in my config.nmake file. However, I followed the instructions in the Win32 Step-by-Step Setup Guide carefully. I'm building this on a 64 bit Windows 7 system. Why does it still not build?

asked 02 Aug '12, 06:27

SidR's gravatar image

SidR
245121722
accept rate: 30%

edited 02 Aug '12, 21:46

1

I would guess the script are looking for something like this void proto_register_foo(void) { : }

and void proto_reg_handoff_foo(void) { : }

Do you have similar code in your plugin?

(02 Aug '12, 22:01) Anders ♦

That seems to be the problem.
Looks I have written it as void protocol_register_foo(void) instead of void proto_register_foo(). Thank you so much Anders!

(02 Aug '12, 22:20) SidR

One Answer:

1

I would guess the script are looking for something like this void proto_register_foo(void) { : }

and void proto_reg_handoff_foo(void) { : }

Do you have similar code in your plugin?

answered 02 Aug '12, 22:27

Anders's gravatar image

Anders ♦
4.6k952
accept rate: 17%