* Failed to compile libnetfilter_queeu 1.0.1 under Centos 6.2
@ 2012-01-16 11:22 Andres Velasco Garcia
2012-01-16 12:18 ` Jan Engelhardt
2012-01-16 15:58 ` Pablo Neira Ayuso
0 siblings, 2 replies; 7+ messages in thread
From: Andres Velasco Garcia @ 2012-01-16 11:22 UTC (permalink / raw)
To: netfilter
I could not find a netfilter_queue RPM for Centos 6.2 so went to compile it (after successfully installing nfnetflink RPMs).
The error I got was:
make[1]: Entering directory `/home/dev/software/libnetfilter_queue-1.0.1/src'
CC libnetfilter_queue.lo
In file included from ../include/libnetfilter_queue/libnetfilter_queue.h:19,
from libnetfilter_queue.c:34:
../include/libnetfilter_queue/linux_nfnetlink_queue.h:8:42: error: libnfnetlink/linux_nfnetlink.h: No such file or directory
I solved it by modifying the following header:
libnetfilter_queue-1.0.1/include/libnetfilter_queue/linux_nfnetlink_queue.h
as follows:
//#include <libnfnetlink/linux_nfnetlink.h>
#include <linux/netfilter/nfnetlink.h>
Am I missing something?
Andres Velasco
M: +34 670 40 73 69
Skype: newwwave.andres.velasco
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Failed to compile libnetfilter_queeu 1.0.1 under Centos 6.2
2012-01-16 11:22 Failed to compile libnetfilter_queeu 1.0.1 under Centos 6.2 Andres Velasco Garcia
@ 2012-01-16 12:18 ` Jan Engelhardt
2012-01-16 15:59 ` Andres Velasco Garcia
2012-01-16 15:58 ` Pablo Neira Ayuso
1 sibling, 1 reply; 7+ messages in thread
From: Jan Engelhardt @ 2012-01-16 12:18 UTC (permalink / raw)
To: Andres Velasco Garcia; +Cc: netfilter
On Monday 2012-01-16 12:22, Andres Velasco Garcia wrote:
>I could not find a netfilter_queue RPM for Centos 6.2
As major contributor to iptables and opensuse maintainer for their
security:netfilter subproject, I also try keeping around builds for
other distros.
http://dl.medozas.de/repos/netfilter/CentOS_6/
>../include/libnetfilter_queue/linux_nfnetlink_queue.h:8:42: error:
>libnfnetlink/linux_nfnetlink.h: No such file or directory
>solved using
>//#include <libnfnetlink/linux_nfnetlink.h>
>#include <linux/netfilter/nfnetlink.h>
>Am I missing something?
Are you missing libnfnetlink, perhaps?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Failed to compile libnetfilter_queeu 1.0.1 under Centos 6.2
2012-01-16 11:22 Failed to compile libnetfilter_queeu 1.0.1 under Centos 6.2 Andres Velasco Garcia
2012-01-16 12:18 ` Jan Engelhardt
@ 2012-01-16 15:58 ` Pablo Neira Ayuso
2012-08-30 12:45 ` Guillaume Rembert
1 sibling, 1 reply; 7+ messages in thread
From: Pablo Neira Ayuso @ 2012-01-16 15:58 UTC (permalink / raw)
To: Andres Velasco Garcia; +Cc: netfilter
On Mon, Jan 16, 2012 at 12:22:02PM +0100, Andres Velasco Garcia wrote:
>
> I could not find a netfilter_queue RPM for Centos 6.2 so went to compile it (after successfully installing nfnetflink RPMs).
>
> The error I got was:
>
> make[1]: Entering directory `/home/dev/software/libnetfilter_queue-1.0.1/src'
> CC libnetfilter_queue.lo
> In file included from ../include/libnetfilter_queue/libnetfilter_queue.h:19,
> from libnetfilter_queue.c:34:
> ../include/libnetfilter_queue/linux_nfnetlink_queue.h:8:42: error: libnfnetlink/linux_nfnetlink.h: No such file or directory
>
>
> I solved it by modifying the following header:
>
> libnetfilter_queue-1.0.1/include/libnetfilter_queue/linux_nfnetlink_queue.h
>
> as follows:
>
> //#include <libnfnetlink/linux_nfnetlink.h>
> #include <linux/netfilter/nfnetlink.h>
>
> Am I missing something?
You have to install libnfnetlink. Make sure the headers are installed
in a place where libnetfilter_queue can find them.
Alternatively:
./configure --prefix=/usr
usually provides the expected result.
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Failed to compile libnetfilter_queeu 1.0.1 under Centos 6.2
2012-01-16 12:18 ` Jan Engelhardt
@ 2012-01-16 15:59 ` Andres Velasco Garcia
0 siblings, 0 replies; 7+ messages in thread
From: Andres Velasco Garcia @ 2012-01-16 15:59 UTC (permalink / raw)
To: jengelh; +Cc: netfilter
Please let me explain;
I actually had compiled and run netfilter_queue successfully.
My only concern was that the 1.0.1 source I downloaded from netfilter.org included the following header:
#include <libnfnetlink/linux_nfnetlink.h>
while my Centos 6.2 system featured the following one (after installing nfnetlink packages):
#include <linux/netfilter/nfnetlink.h>
So I was wondering if the first one (linux_nfnetlink.h) was a result of some error or maybe it depends on the distros.
Thanks for your attention
Andres Velasco
M: +34 670 40 73 69
Skype: newwwave.andres.velasco
----------------------------------------
> Date: Mon, 16 Jan 2012 13:18:15 +0100
> From: jengelh@medozas.de
> To: telecom.andresvelasco@hotmail.com
> CC: netfilter@vger.kernel.org
> Subject: Re: Failed to compile libnetfilter_queeu 1.0.1 under Centos 6.2
>
> On Monday 2012-01-16 12:22, Andres Velasco Garcia wrote:
>
> >I could not find a netfilter_queue RPM for Centos 6.2
>
>
> As major contributor to iptables and opensuse maintainer for their
> security:netfilter subproject, I also try keeping around builds for
> other distros.
> http://dl.medozas.de/repos/netfilter/CentOS_6/
>
> >../include/libnetfilter_queue/linux_nfnetlink_queue.h:8:42: error:
> >libnfnetlink/linux_nfnetlink.h: No such file or directory
> >solved using
> >//#include <libnfnetlink/linux_nfnetlink.h>
> >#include <linux/netfilter/nfnetlink.h>
> >Am I missing something?
>
> Are you missing libnfnetlink, perhaps?
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Failed to compile libnetfilter_queeu 1.0.1 under Centos 6.2
[not found] <CAFs09d4CPqyotppJCm4ZxYDxe6KGO5ZtTtSZztRDuXD55u5s3A@mail.gmail.com>
@ 2012-06-29 21:36 ` David Hajoglou
2012-06-29 21:51 ` Jan Engelhardt
0 siblings, 1 reply; 7+ messages in thread
From: David Hajoglou @ 2012-06-29 21:36 UTC (permalink / raw)
To: netfilter
I hope the message subject will make it to the appropriate thread, but
if not, I'm responding to
http://marc.info/?l=netfilter&m=132671646831409
In short, the original problem was linked to a missing
/usr/include/libnfnetlink/linux_nfnetlink.h
I too had the same problem but it was with an RRM of libnfnetlink form
the epel repo http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/libnfnetlink-devel.html
After getting a hold of the source rpm off that repo I found that
they're patching to remove both linux_nfnetlink.h and
linux_nfnetlink_compat.h and instead, pointing libnfnetlink.h at the
kernel header nfnetlink.h.
I'm not sure if this is a good thing or bad thing as it impacted my
ability to build DAQ (for snort). My install of libnetfilter_queue
references #include <libnfnetlink/linux_nfnetlink.h> which makes the
install of DAQ fail. I could patch and rebuild libnetfilter_queue or
I could rebuild libnfnetlink, or I could make some hacky edits here
and there. It is friday and beer drinking might just be in order for
these fixes so no telling what I might attempt :)
Thanks,
-hojo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Failed to compile libnetfilter_queeu 1.0.1 under Centos 6.2
2012-06-29 21:36 ` David Hajoglou
@ 2012-06-29 21:51 ` Jan Engelhardt
0 siblings, 0 replies; 7+ messages in thread
From: Jan Engelhardt @ 2012-06-29 21:51 UTC (permalink / raw)
To: David Hajoglou; +Cc: netfilter
On Friday 2012-06-29 23:36, David Hajoglou wrote:
>I hope the message subject will make it to the appropriate thread, but
>if not, I'm responding to
>http://marc.info/?l=netfilter&m=132671646831409
This post references dl.medozas.de, which has been replaced by
dl.inai.de in the meantime.
>In short, the original problem was linked to a missing
>/usr/include/libnfnetlink/linux_nfnetlink.h
libnetfilter_queue provides its own copies of certain headers exactly
because they may not be present (or present and too old) in
/usr/include.
>I too had the same problem but it was with an RRM of libnfnetlink form
>the epel repo
>http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/libnfnetlink-devel.html
> After getting a hold of the source rpm off that repo I found that
>they're patching to remove both linux_nfnetlink.h and
>linux_nfnetlink_compat.h and instead, pointing libnfnetlink.h at the
>kernel header nfnetlink.h.
epel bugs to epel people.
>I'm not sure if this is a good thing or bad thing as it impacted my
>ability to build DAQ (for snort). My install of libnetfilter_queue
>references #include <libnfnetlink/linux_nfnetlink.h> which makes the
>install of DAQ fail.
An original libnetfilter_queue also has that line -- commented out.
#include <libnfnetlink/libnfnetlink.h>
// #include <libnfnetlink/liunx_nfnetlink.h>
#include <libnetfilter_queue/linux_nfnetlink_queue.h>
> I could patch and rebuild libnetfilter_queue or
>I could rebuild libnfnetlink, or I could make some hacky edits here
>and there. It is friday and beer drinking might just be in order for
>these fixes so no telling what I might attempt :)
You could grab libnetfilter_queue - or for that matter the entire stack
- from dl.inai.de/repos/CentOS_6 and see if that works.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Failed to compile libnetfilter_queeu 1.0.1 under Centos 6.2
2012-01-16 15:58 ` Pablo Neira Ayuso
@ 2012-08-30 12:45 ` Guillaume Rembert
0 siblings, 0 replies; 7+ messages in thread
From: Guillaume Rembert @ 2012-08-30 12:45 UTC (permalink / raw)
To: netfilter
I had the same issue. Fixing this problem was done not by modifying the code as
you did, but by installing both: libnfnetlink AND libnfnetlink-devel.
Just add EPEL repository and execute:
yum install libnfnetlink*
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-08-30 12:45 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-16 11:22 Failed to compile libnetfilter_queeu 1.0.1 under Centos 6.2 Andres Velasco Garcia
2012-01-16 12:18 ` Jan Engelhardt
2012-01-16 15:59 ` Andres Velasco Garcia
2012-01-16 15:58 ` Pablo Neira Ayuso
2012-08-30 12:45 ` Guillaume Rembert
[not found] <CAFs09d4CPqyotppJCm4ZxYDxe6KGO5ZtTtSZztRDuXD55u5s3A@mail.gmail.com>
2012-06-29 21:36 ` David Hajoglou
2012-06-29 21:51 ` Jan Engelhardt
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).