This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

which static library define epan_init, etc?

0

which wireshark static library on linux define

  • epan_init,
  • proto_item_fill_label,
  • g_sprintf,
  • g_assertion_message_expr,
  • register_all_protocol_handoffs,
  • register_all_protocols,
  • frame_data_set_before_dissect,
  • g_malloc0

thank you very much.

asked 10 Nov '12, 00:09

ylda_ljm0620's gravatar image

ylda_ljm0620
31101013
accept rate: 0%

edited 10 Nov '12, 06:07

Jaap's gravatar image

Jaap ♦
11.7k16101


One Answer:

1

Whether a library is static or dynamic depends on how it's built, not what it defines.

The libraries that define those functions are:

  • epan_init - libwireshark
  • proto_item_fill_label - libwireshark
  • g_sprintf - glib
  • g_assertion_message_expr - glib
  • register_all_protocol_handoffs - libwireshark
  • register_all_protocols - libwireshark
  • frame_data_set_before_dissect - libwireshark
  • g_malloc0 - glib

Whether the machine you're using has static versions of either of those libraries depends on how the libraries were built and, if GLib and Wireshark are provided as packages for your system, whether static versions of the libraries are provided in any of those packages and, if so, whether they're provided in a separate package and whether that package is installed on your machine.

answered 10 Nov '12, 17:19

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%