* Compiling libnetfilter_queue-1.0.2
@ 2012-10-26 11:21 Rob Sterenborg (lists)
2012-10-26 12:57 ` Jan Engelhardt
0 siblings, 1 reply; 5+ messages in thread
From: Rob Sterenborg (lists) @ 2012-10-26 11:21 UTC (permalink / raw)
To: Netfilter
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compiling libnetfilter_queue-1.0.2
2012-10-26 11:21 Compiling libnetfilter_queue-1.0.2 Rob Sterenborg (lists)
@ 2012-10-26 12:57 ` Jan Engelhardt
2012-10-26 13:43 ` Rob Sterenborg (lists)
2012-11-13 17:58 ` Don bham
0 siblings, 2 replies; 5+ messages in thread
From: Jan Engelhardt @ 2012-10-26 12:57 UTC (permalink / raw)
To: Rob Sterenborg (lists); +Cc: Netfilter
On Friday 2012-10-26 13:21, Rob Sterenborg (lists) wrote:
> 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.)
I have seen this before - it is a bug in CentOS's glibc.
Commit id of the fix is (glibc.git) 15bac72bac03faeb3b725b1d208c62160f0c3ad7.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compiling libnetfilter_queue-1.0.2
2012-10-26 12:57 ` Jan Engelhardt
@ 2012-10-26 13:43 ` Rob Sterenborg (lists)
2012-11-13 17:58 ` Don bham
1 sibling, 0 replies; 5+ messages in thread
From: Rob Sterenborg (lists) @ 2012-10-26 13:43 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: Netfilter
On 10/26/2012 02:57 PM, Jan Engelhardt wrote:
>
> On Friday 2012-10-26 13:21, Rob Sterenborg (lists) wrote:
>> 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.)
>
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compiling libnetfilter_queue-1.0.2
2012-10-26 12:57 ` Jan Engelhardt
2012-10-26 13:43 ` Rob Sterenborg (lists)
@ 2012-11-13 17:58 ` Don bham
2012-11-14 8:29 ` Rob Sterenborg (lists)
1 sibling, 1 reply; 5+ messages in thread
From: Don bham @ 2012-11-13 17:58 UTC (permalink / raw)
To: netfilter
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?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Compiling libnetfilter_queue-1.0.2
2012-11-13 17:58 ` Don bham
@ 2012-11-14 8:29 ` Rob Sterenborg (lists)
0 siblings, 0 replies; 5+ messages in thread
From: Rob Sterenborg (lists) @ 2012-11-14 8:29 UTC (permalink / raw)
To: Don bham; +Cc: netfilter
On 11/13/2012 06:58 PM, Don bham wrote:
> 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?
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-11-14 8:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-26 11:21 Compiling libnetfilter_queue-1.0.2 Rob Sterenborg (lists)
2012-10-26 12:57 ` Jan Engelhardt
2012-10-26 13:43 ` Rob Sterenborg (lists)
2012-11-13 17:58 ` Don bham
2012-11-14 8:29 ` Rob Sterenborg (lists)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).