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

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%


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.

permanent link

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
Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×7
×6

question asked: 25 Oct '12, 18:53

question was seen: 2,124 times

last updated: 12 Nov '12, 23:55

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