bugzilla-daemon at bugzilla.netfilter.org
2011-Aug-31 18:03 UTC
[Bug 743] New: Errors in compiling nfqnl_test.c
http://bugzilla.netfilter.org/show_bug.cgi?id=743 Summary: Errors in compiling nfqnl_test.c Product: netfilter/iptables Version: linux-2.6.x Platform: All OS/Version: Ubuntu Status: NEW Severity: enhancement Priority: P5 Component: netfilter hooks AssignedTo: netfilter-buglog at lists.netfilter.org ReportedBy: rachushah83 at gmail.com Estimated Hours: 0.0 Hi, I have installed iptables, libnfnetlink and libnetfilter_queue on Ubuntu 10.04 and kernel version 2.6.32 When I try to compile nfqnl_test.c, I get following errors. /tmp/cclJyK12.o: In function `print_pkt(nfq_data*)': nfqnl_test.c:(.text+0x15): undefined reference to `nfq_get_msg_packet_hdr' nfqnl_test.c:(.text+0x73): undefined reference to `nfq_get_nfmark' nfqnl_test.c:(.text+0x9a): undefined reference to `nfq_get_indev' nfqnl_test.c:(.text+0xc1): undefined reference to `nfq_get_outdev' nfqnl_test.c:(.text+0xef): undefined reference to `nfq_get_payload' /tmp/cclJyK12.o: In function `cb(nfq_q_handle*, nfgenmsg*, nfq_data*, void*)': nfqnl_test.c:(.text+0x173): undefined reference to `nfq_set_verdict' /tmp/cclJyK12.o: In function `main': nfqnl_test.c:(.text+0x1a8): undefined reference to `nfq_open' nfqnl_test.c:(.text+0x204): undefined reference to `nfq_unbind_pf' nfqnl_test.c:(.text+0x25c): undefined reference to `nfq_bind_pf' nfqnl_test.c:(.text+0x2c4): undefined reference to `nfq_create_queue' nfqnl_test.c:(.text+0x328): undefined reference to `nfq_set_mode' nfqnl_test.c:(.text+0x36c): undefined reference to `nfq_fd' nfqnl_test.c:(.text+0x39a): undefined reference to `nfq_handle_packet' nfqnl_test.c:(.text+0x3f8): undefined reference to `nfq_destroy_queue' nfqnl_test.c:(.text+0x410): undefined reference to `nfq_close' collect2: ld returned 1 exit status Can you please guide me to resolve the issue? Thanks. -- Configure bugmail: http://bugzilla.netfilter.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are watching all bug changes.
bugzilla-daemon at bugzilla.netfilter.org
2013-Feb-14 16:30 UTC
[Bug 743] Errors in compiling nfqnl_test.c
http://bugzilla.netfilter.org/show_bug.cgi?id=743 Pablo Neira Ayuso <pablo at netfilter.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |pablo at netfilter.org Resolution| |WORKSFORME --- Comment #1 from Pablo Neira Ayuso <pablo at netfilter.org> 2013-02-14 17:30:51 CET --- You have to use: gcc -lnetfilter_queue nfqnl_test.c -o nfql_test Mind the -l option for gcc to specify the library. or simply run "./configure && make check'' under libnetfilter_queue source code tree. -- Configure bugmail: http://bugzilla.netfilter.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
Seemingly Similar Threads
- forwarding packets to service in same host without using loopback network
- [Bug 846] New: ./nfqnl_test usage ! no activity shown
- [Bug 837] New: Large ICMP packets are lost
- traffic distribution not happening in centos 6.5
- [Bug 1440] New: kernel oops allowing a connection with nfq_set_verdict() on kernel 5.7.x with hardening parameters