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

Hello, community. I keep getting this error in the ...fn.c file while compiling my dissector. What would be the reason for it?

Best regards Ewgenij

asked 17 Dec '12, 02:36

Ewgenijkkg's gravatar image

accept rate: 60%

OK, I figured it out :-) My main ASN.1 file imported structure definitions from other ASN.1 files. But these files were absent in the dissector development folder. Nor did I use them as input arguments in the asn2wrs call. Nevertheless asn2wrs compiler did not report any errors. The errors became obvious later, at compile time of the resulting C-Sources. That was the error output I asked my question for.

Hmm, actually I would expect asn2wrs to notice the missing files to be included. Why doesn't it do that?



permanent link

answered 08 Jan '13, 06:48

Ewgenijkkg's gravatar image

accept rate: 60%

Hi, You need to give more background for some one to be able to answer. I think you asked about asn2wrs before if that's the case your problem might be that that functions are declared in the wrong order you may have to do a forward declaration of the function or move the include. Look at other template files.

permanent link

answered 17 Dec '12, 04:57

Anders's gravatar image

Anders ♦
accept rate: 17%

Hello, thank you for the answer. What background would help? Actually, this error occurs a lot of time and concerns different asn objects...

(18 Dec '12, 04:38) Ewgenijkkg

If you are planning to release your dissector to Wireshark we could set up the asn directory and actually see your source files which would be easier. Otherwise a small piece of the template file and some more of the error log might help.

(18 Dec '12, 06:14) Anders ♦
Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 17 Dec '12, 02:36

question was seen: 5,036 times

last updated: 08 Jan '13, 06:48

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