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

Hi, I recently made changes to a dissector file: packets-ssl-utils.c . I added code which uses API calls from libnetfilter_queue. Sample code and api calls are here

When I try to compile wireshark I face the following errors

    make[2]: Entering directory '/home/machine/wireshark-2.0.4'
  CXXLD    wireshark
epan/.libs/libwireshark.so: undefined reference to `nfq_get_indev'
epan/.libs/libwireshark.so: undefined reference to `nfq_create_queue'
epan/.libs/libwireshark.so: undefined reference to `nfq_nfnlh'
epan/.libs/libwireshark.so: undefined reference to `nfq_close'
epan/.libs/libwireshark.so: undefined reference to `nfq_set_verdict'
epan/.libs/libwireshark.so: undefined reference to `nfq_get_payload'
epan/.libs/libwireshark.so: undefined reference to `nfq_set_mode'
epan/.libs/libwireshark.so: undefined reference to `nfq_get_outdev'
epan/.libs/libwireshark.so: undefined reference to `nfq_get_msg_packet_hdr'
epan/.libs/libwireshark.so: undefined reference to `nfq_bind_pf'
epan/.libs/libwireshark.so: undefined reference to `nfq_destroy_queue'
epan/.libs/libwireshark.so: undefined reference to `nfq_open'
epan/.libs/libwireshark.so: undefined reference to `nfq_unbind_pf'
epan/.libs/libwireshark.so: undefined reference to `nfq_get_nfmark'
epan/.libs/libwireshark.so: undefined reference to `nfq_handle_packet'
epan/.libs/libwireshark.so: undefined reference to `nfnl_fd'
collect2: error: ld returned 1 exit status

The typical way to compile a file using libnetfitler_queue is

gcc -Wall -o test nfqnl_test.c -lnfnetlink -lnetfilter_queue

So I added -lnfnetlink -lnetfilter_queue to the CFLAGS in the make file of the epan directory. However I still am not able to compile the source code.

Can someone please guide me how to compile the project properly.

asked 30 Sep '16, 18:01

Abhi93's gravatar image

Abhi93
6112
accept rate: 0%

Be the first one to answer this question!
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:

×41
×18
×4
×2
×2

question asked: 30 Sep '16, 18:01

question was seen: 976 times

last updated: 30 Sep '16, 18:01

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