Compiling libnetfilter_queue-1.0.2
Hi,
I'm having trouble compiling libnetfilter_queue-1.0.2.
The system is a CentOS-6 x64_64 with all updates, gcc 4.4.6 (distro), glibc-2.12, with vanilla 3.6.3 kernel (distro is 2.6.32).
Libnfnetlink, libmnl and libnetfilter_* compiled fine.
I'm doing:
$ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure
(Doesn't complain about anything, libnfnetlink and libmnl are found.)
$ make make all-recursive make[1]: Entering directory `/usr/local/src/netfilter/libnetfilter_queue-1.0.2' Making all in src make[2]: Entering directory `/usr/local/src/netfilter/libnetfilter_queue-1.0.2/src' CC libnetfilter_queue.lo CC nlmsg.lo CC extra/checksum.lo CC extra/ipv6.lo CC extra/tcp.lo CC extra/ipv4.lo extra/ipv4.c: In function 'nfq_ip_snprintf': extra/ipv4.c:141: error: 'tos' undeclared (first use in this function) extra/ipv4.c:141: error: (Each undeclared identifier is reported only once extra/ipv4.c:141: error: for each function it appears in.) make[2]: *** [extra/ipv4.lo] Error 1 make[2]: Leaving directory `/usr/local/src/netfilter/libnetfilter_queue-1.0.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/netfilter/libnetfilter_queue-1.0.2' make: *** [all] Error 2
Any help would be appreciated.
If I omitted any data that I shouldn't have, please let me know and I'll provide it.
--
Rob
Quoted 5 lines · Rob Sterenborg (lists)
CC extra/ipv4.lo
extra/ipv4.c: In function 'nfq_ip_snprintf':extra/ipv4.c:141: error: 'tos' undeclared (first use in this function)extra/ipv4.c:141: error: (Each undeclared identifier is reported only onceextra/ipv4.c:141: error: for each function it appears in.)
I have seen this before - it is a bug in CentOS's glibc.
Commit id of the fix is (glibc.git) 15bac72bac03faeb3b725b1d208c62160f0c3ad7.
Quoted 10 lines · Jan Engelhardt
Quoted 5 lines · Rob Sterenborg (lists)
CC extra/ipv4.lo
extra/ipv4.c: In function 'nfq_ip_snprintf':extra/ipv4.c:141: error: 'tos' undeclared (first use in this function)extra/ipv4.c:141: error: (Each undeclared identifier is reported only onceextra/ipv4.c:141: error: for each function it appears in.)I have seen this before - it is a bug in CentOS's glibc.
Commit id of the fix is (glibc.git)15bac72bac03faeb3b725b1d208c62160f0c3ad7.
Thanks. Works perfectly.
--
Rob
I have seen this before - it is a bug in CentOS's glibc.
Commit id of the fix is (glibc.git) 15bac72bac03faeb3b725b1d208c62160f0c3ad7. --
To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo <at> vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
How do i implement this fix please?
Quoted 10 lines · Don bham
I have seen this before - it is a bug in CentOS's glibc.
Commit id of the fix is (glibc.git)15bac72bac03faeb3b725b1d208c62160f0c3ad7. --
To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo <at> vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.htmlHow do i implement this fix please?
Well, just putting 15bac72bac03faeb3b725b1d208c62160f0c3ad7 in Google refers you to the patch (I think the 2nd or 3rd url should get you going).
After downloading the diff, you can apply it to the system's header file: /usr/include/netinet/ip.h.
Compile libnetfilter_queue-1.0.2 and IIRC it should work just fine.
--
Rob