This is our old Q&A Site. Please post any new questions and answers at

I make myown dynamic library( according to libs of wiresahrk and glib.

(libglib-2.0.a libglib-2.0.a libgthread-2.0.a libairpdcap.a libdfilter.a libdissectors.a libftypes.a libwireshark.a libwiretap.a libwsutil.a libwireshark_asmopt.a libwireshark_generated.a libdirtydissectors.a )

include path(glib-2.0,wireshark,wireshark/epan). can be made successfully, but loaded fail.

ldd -r, errors are as follow:

undefined symbol: proto_item_fill_label (./

undefined symbol: g_sprintf (./

undefined symbol: g_assertion_message_expr (./

undefined symbol: register_all_protocol_handoffs (./

undefined symbol: register_all_protocols (./

undefined symbol: epan_init (./

undefined symbol: epan_dissect_init (./

undefined symbol: frame_data_set_before_dissect (./

undefined symbol: epan_dissect_run (./

undefined symbol: epan_dissect_cleanup (./

undefined symbol: g_malloc0 (./

what is the reason? someone help me, please. Thank you very much.

asked 10 Nov '12, 00:03

ylda_ljm0620's gravatar image

accept rate: 0%

I have built and loaded successfully. I use the glib-2.0 which is installed.

In makefile, there are:

VPATH = -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include

GLIB_DIR =/usr/lib

WIRESHARKLIB_DIR =../wireshark/lib

ZIPLIB_DIR = ../zip

LIBS = /usr/lib

LIBS = -L$(GLIB_DIR) -lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -L$(WIRESHARKLIB_DIR) -lairpdcap -ldfilter -ldissectors -lftypes -lwireshark -lwiretap -lwsutil -lwireshark_asmopt -lwireshark_generated -ldirtydissectors \ -L$(ZIPLIB_DIR) -lz \ -lpthread -ldl -lrt -rdynamic


permanent link

answered 12 Nov '12, 22:40

ylda_ljm0620's gravatar image

accept rate: 0%

edited 12 Nov '12, 22:42

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 10 Nov '12, 00:03

question was seen: 4,257 times

last updated: 12 Nov '12, 22:42

p​o​w​e​r​e​d by O​S​Q​A