Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] basic dissector plugin compile error

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Mon, 5 Feb 2007 20:15:22 +0100 (CET)
Hi,

Loose the registration functions in your dissector. These get generated by
the makefile. See the latest doc/README.plugin.

Thanx,
Jaap

On Mon, 5 Feb 2007, David Bunch wrote:

> Hey,
> I did read the latest README.plugin
> Thats how I got this far.  I don't know what I am missing.   The linker
> keeps failing and I keep getting this error.  I followed the
> README.pluginand I got my base code from the developer's guide.  Its
> the same skeleton
> code, I just filled in the Variable names for my protocol.
>
> .libs/blksh.la-1.o(.rodata+0x0): In function `plugin_register':
> /home/deb32/wireshark-0.99.4/plugins/blksh/plugin.c:19: multiple
> definition of `version'
> .libs/packet-blksh.o(.rodata+0x0):/home/deb32/wireshark-0.99.4
> /plugins/blksh/packet-blksh.c:39:
> first defined here
> .libs/blksh.la-1.o(.text+0x0): In function `plugin_register':
> /home/deb32/wireshark-0.99.4/plugins/blksh/plugin.c:19: multiple
> definition of `plugin_register'
> .libs/packet-blksh.o(.text+0x0):/home/deb32/wireshark-0.99.4
> /plugins/blksh/packet-blksh.c:39:
> first defined here
> /usr/bin/ld: Warning: size of symbol `plugin_register' changed from 39
> to 27 in .libs/blksh.la-1.o
> .libs/blksh.la-1.o(.text+0x1c): In function `plugin_reg_handoff':
> /home/deb32/wireshark-0.99.4/plugins/blksh/plugin.c:25: multiple
> definition of `plugin_reg_handoff'
> .libs/packet-blksh.o(.text+0x28):/home/deb32/wireshark-0.99.4
> /plugins/blksh/packet-blksh.c:47:
> first defined here
> make[3]: *** [blksh.la] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
>
> --
> Whoever fights monsters should see to it that in the process he does not
> become a monster.  And when you look into an abyss, the abyss also looks
> into you.
> -- Friedrich Nietzsche
>