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
6●1●1●2
accept rate: 0%