Wireshark-dev: [Wireshark-dev] Undefined references when linking with libwireshark (1.0.0)
From: Eloy Paris <[email protected]>
Date: Fri, 4 Apr 2008 18:37:18 -0400
Hello,

I get the following when I try to link my application against
libwireshark:

/usr/lib/wireshark/libwireshark.so: undefined reference to `g_module_open'
/usr/lib/wireshark/libwireshark.so: undefined reference to `g_module_error'
/usr/lib/wireshark/libwireshark.so: undefined reference to `g_module_close'
/usr/lib/wireshark/libwireshark.so: undefined reference to `g_module_symbol'
/usr/lib/wireshark/libwireshark.so: undefined reference to `g_module_supported'
collect2: ld returned 1 exit status

This is mentioned in
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2291#c2.

A workaround is to manually link with libgmodules-2.0, but I wonder
if this is something I should always do or if it really is a bug in
libwireshark. I should just be able to link with -lwireshark without
adding anything that libwireshark depends on, or no?

Thanks!

Eloy Paris.-