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

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

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?

permanent link

answered 02 Aug '12, 22:27

Anders's gravatar image

Anders ♦
4.6k952
accept rate: 17%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×110
×37
×20
×5

question asked: 02 Aug '12, 06:27

question was seen: 3,022 times

last updated: 02 Aug '12, 22:27

p​o​w​e​r​e​d by O​S​Q​A