Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: [Wireshark-dev] Undefined references when linking with libwireshark (1.0.0)

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: Eloy Paris <peloy@xxxxxxxxxx>
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.-

  • Prev by Date: Re: [Wireshark-dev] Sharkfest roadmap sessions summary
  • Next by Date: Re: [Wireshark-dev] Sharkfest roadmap sessions summary
  • Previous by thread: Re: [Wireshark-dev] [Wireshark-commits] rev 24770: /trunk/packaging/ /trunk/packaging/nsis/: Makefile.nmake wireshark.nsi /trunk/packaging/portableapps/win32/: makenmake.pl /trunk/packaging/u3/win32/: makenmake.pl
  • Next by thread: [Wireshark-dev] buildbot failure in OSX-10.4-PPC
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation