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

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

From: "David Bunch" <davidvonz@xxxxxxxxx>
Date: Mon, 5 Feb 2007 09:53:21 -0800
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.plugin and 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