Wireshark-dev: Re: [Wireshark-dev] Undefined symbol tvb_find_tvb
From: Jeff Morriss <[email protected]>
Date: Tue, 26 Jul 2011 13:06:08 -0400
Chris Maynard wrote:
Jeff Morriss <[email protected]> writes:

Mariusz Okrój wrote:
Hi,
I'm getting "Couldn't load module
/home/marok/wireshark/lib/wireshark/plugins/1.6.0/xmpp.so:
/home/marok/wireshark/lib/wireshark/plugins/1.6.0/xmpp.so: undefined
symbol: tvb_find_tvb" during the wireshark startup.

What may cause this problem? I'm using many functions from tvbuff.h,
but only using this one the problem occurs.
I don't see a response to this, but the problem is/was that this function is not in epan/libwireshark.def (so the function is not exported from libwireshark).
Chris fixed that in this revision:

http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=38169
Sorry I forgot to respond.  Thanks Jeff.  I actually wasn't sure if this was the
problem or not in Mariusz's case because wouldn't this only be a problem for a
Windows plugin (i.e., xmpp.dll)?  Well in any case, the function wasn't
Remember that since r35145 (and probably some other revs as the kinks 
got worked out), libtool-based builds only export the listed symbols. 
(Hmmm, I wonder if cmake has that same functionality.)