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

does have libwireshark static library(libwireshark.a) on linux ?

0

I compiled wireshark on linux successfully, but not found libwireshark static library(libwireshark.a) ,only found libwireshark.so libwireshark_generated.a libwireshark_asmopt.a.

secondary development wireshark on linux, there are errors as follows(why?):

   undefined symbol: proto_item_fill_label (./scandissectpkt.so)
   undefined symbol: g_sprintf     (./scandissectpkt.so)
   undefined symbol: g_assertion_message_expr      (./scandissectpkt.so)
   undefined symbol: register_all_protocol_handoffs        (./scandissectpkt.so)
   undefined symbol: register_all_protocols        (./scandissectpkt.so)
   undefined symbol: epan_init     (./scandissectpkt.so)
   undefined symbol: epan_dissect_init     (./scandissectpkt.so)
   undefined symbol: frame_data_set_before_dissect (./scandissectpkt.so)
   undefined symbol: epan_dissect_run      (./scandissectpkt.so)
   undefined symbol: epan_dissect_cleanup  (./scandissectpkt.so)
   undefined symbol: g_malloc0     (./scandissectpkt.so)

asked 25 Oct '12, 18:53

ylda_ljm0620's gravatar image

ylda_ljm0620
31101013
accept rate: 0%


One Answer:

0

libtool, by default, sets up the Makefile only to build dynamic libraries. You might try running the configure script with --enable-static and rebuilding (you might need to run make distclean first) and see whether that builds libwireshark.a.

answered 26 Oct '12, 18:24

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

Thank you very much. just ./configure --enable-static, then make, can build static library.

(12 Nov '12, 22:25) ylda_ljm0620