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

fragment_table_init (unknown symbol)

0

Hi,

I inherited some dissector code from a former colleague, which runs well under windows (V1.7.2). Now I wanted to port it to linux, using the latest wireshark code base (svn; but problem also occurs with latest stable).

My dissector plugin compiles without problems, but when starting wireshark, I get the error message undefined symbol: fragment_table_init.

Do I have to link my plugin against any library? Why is this not handled by make-dissector-reg or makefile.am or what else automatically?

Thanks for any help!

asked 11 Jul '13, 23:38

Atlantis's gravatar image

Atlantis
1112
accept rate: 0%

Oh - I forgot - I am running an Ubuntu 13.04 64bit Linux ...

(11 Jul '13, 23:39) Atlantis

One Answer:

3

The dissector does reassembly, and the reassembly APIs changed in 1.10. That's why it won't build; you're probably building against a recent version of Wireshark, either 1.10.0 or the trunk. ("Without problems" probably really means "without fatal errors"; it probably compiles with warnings that represent real problems.)

See, for example, the difference between revisions 48490 and 48491 of epan/dissectors/packet-ip.c for an example of the changes you will need to make in order to make the dissector work with Wireshark 1.10.0 or later.

answered 12 Jul '13, 00:54

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

Great - you saved my day ...

With the information from the mentioned patch I was able to modify my dissector. I still get lots of warnings from the code so maybe you are right that I got a severe warning previously but could not identify it due to all the other warnings ...

Thanks!

(12 Jul '13, 02:00) Atlantis

The Wireshark buildbots build most source files modules with the "warnings are errors" flag turned on in the compiler, so that various problems are caught. (The exceptions are mostly source files generated by Flex/yacc/Lemon/other code generators, where the warnings are difficult or impossible to eliminate.)

(12 Jul '13, 08:31) Guy Harris ♦♦