* Problem compiling libipq example
@ 2010-05-12 21:16 Zerouali Mehdi
[not found] ` <AANLkTimepNQyRqTryraxJuAPV6_zgt3CkC0beCd86O-z@mail.gmail.com>
2010-05-13 7:58 ` Jan Engelhardt
0 siblings, 2 replies; 4+ messages in thread
From: Zerouali Mehdi @ 2010-05-12 21:16 UTC (permalink / raw)
To: Netfilter Mailing list
Hello all,
I am using this mailing list as the last chance to get a solution to my
problem. I hope my simple question is not going to bother you too much.
I am trying to compile and run the simpliest program that uses libipq, the
man example program.
When I try to compile it, I get the following error code:
In file included from example.c:2:
/usr/include/linux/netfilter.h:55: error: field ‘in’ has incomplete type
/usr/include/linux/netfilter.h:56: error: field ‘in6’has incomplete type
It looks like there is a problem with the netfilter header, that is not
able to load the in.h and in6.h librairies.
I installed all the necessary tools:
iptables 1.4.7
libnetfilter_queue 0.0.17 (the actual successor of ip_queue)
libnfnetlink 1.0.0
I am using Ubuntu 9.10, with the 2.6.31-14 kernel.
I of course searched for any solutions, and found that this problem has
been encountered in the past. However, I didn't get any relevant
information. Thanks in advance for your precious advices.
Cheers,
--
Mehdi Zerouali
INSA Lyon Student
KTH Stockholm Student
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" 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] 4+ messages in thread
* Re: Problem compiling libipq example
[not found] ` <AANLkTimepNQyRqTryraxJuAPV6_zgt3CkC0beCd86O-z@mail.gmail.com>
@ 2010-05-13 7:49 ` Zerouali Mehdi
0 siblings, 0 replies; 4+ messages in thread
From: Zerouali Mehdi @ 2010-05-13 7:49 UTC (permalink / raw)
To: Mistick Levi, Netfilter Mailing list
On Thu, 13 May 2010 01:42:30 +0300, Mistick Levi <gmistick@gmail.com>
wrote:
> Hi,
> You are missing the package: iptables-dev
> (http://packages.ubuntu.com/karmic/iptables-dev), and you need it for
> libipq development.
> For information about NF_QUEUE(ip_queue successor) Check this link:
> http://www.nufw.org/doc/libnetfilter_queue/modules.html - great
> documentation.
Thanks for your answer, but I already installed the package iptables-dev !
This is reallyt= weird, since I think that I installed all the required
components for libipq development.
I really don't know what to do now
> Cheers,
> Yechiel Levi
>
> also, you are missing one important package:
> iptables-dev
>
> On Thu, May 13, 2010 at 12:16 AM, Zerouali Mehdi
> <mehdi.zerouali@insa-lyon.fr> wrote:
>> Hello all,
>>
>> I am using this mailing list as the last chance to get a solution to my
>> problem. I hope my simple question is not going to bother you too much.
>>
>> I am trying to compile and run the simpliest program that uses libipq,
>> the
>> man example program.
>>
>> When I try to compile it, I get the following error code:
>>
>> In file included from example.c:2:
>> /usr/include/linux/netfilter.h:55: error: field ‘in’ has incomplete
type
>> /usr/include/linux/netfilter.h:56: error: field ‘in6’has incomplete
type
>>
>> It looks like there is a problem with the netfilter header, that is not
>> able to load the in.h and in6.h librairies.
>>
>> I installed all the necessary tools:
>> iptables 1.4.7
>> libnetfilter_queue 0.0.17 (the actual successor of ip_queue)
>> libnfnetlink 1.0.0
>>
>> I am using Ubuntu 9.10, with the 2.6.31-14 kernel.
>>
>> I of course searched for any solutions, and found that this problem has
>> been encountered in the past. However, I didn't get any relevant
>> information. Thanks in advance for your precious advices.
>>
>> Cheers,
>>
>> --
>> Mehdi Zerouali
>> INSA Lyon Student
>> KTH Stockholm Student
>> --
>> To unsubscribe from this list: send the line "unsubscribe
>> netfilter-devel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
Thank you for your precious time
--
Mehdi Zerouali
INSA Lyon Student
KTH Stockholm Student
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" 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] 4+ messages in thread
* Re: Problem compiling libipq example
2010-05-12 21:16 Problem compiling libipq example Zerouali Mehdi
[not found] ` <AANLkTimepNQyRqTryraxJuAPV6_zgt3CkC0beCd86O-z@mail.gmail.com>
@ 2010-05-13 7:58 ` Jan Engelhardt
2010-05-13 9:43 ` Zerouali Mehdi
1 sibling, 1 reply; 4+ messages in thread
From: Jan Engelhardt @ 2010-05-13 7:58 UTC (permalink / raw)
To: Zerouali Mehdi; +Cc: Netfilter Mailing list
On Wednesday 2010-05-12 23:16, Zerouali Mehdi wrote:
>
>I am using this mailing list as the last chance to get a solution to my
>problem. I hope my simple question is not going to bother you too much.
>
>I am trying to compile and run the simpliest program that uses libipq, the
>man example program.
>
>When I try to compile it, I get the following error code:
>
>In file included from example.c:2:
>/usr/include/linux/netfilter.h:55: error: field ‘in’ has incomplete type
>/usr/include/linux/netfilter.h:56: error: field ‘in6’has incomplete type
>
>It looks like there is a problem with the netfilter header, that is not
>able to load the in.h and in6.h librairies.
in and in6 are not libraries, they are struct members, and you
need #include <netinet/in.h> to get at their definition beforehand.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" 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] 4+ messages in thread
* Re: Problem compiling libipq example
2010-05-13 7:58 ` Jan Engelhardt
@ 2010-05-13 9:43 ` Zerouali Mehdi
0 siblings, 0 replies; 4+ messages in thread
From: Zerouali Mehdi @ 2010-05-13 9:43 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: Netfilter Mailing list
On Thu, 13 May 2010 09:58:02 +0200 (CEST), Jan Engelhardt
<jengelh@medozas.de> wrote:
> On Wednesday 2010-05-12 23:16, Zerouali Mehdi wrote:
>>
>>I am using this mailing list as the last chance to get a solution to my
>>problem. I hope my simple question is not going to bother you too much.
>>
>>I am trying to compile and run the simpliest program that uses libipq,
the
>>man example program.
>>
>>When I try to compile it, I get the following error code:
>>
>>In file included from example.c:2:
>>/usr/include/linux/netfilter.h:55: error: field ‘in’ has incomplete type
>>/usr/include/linux/netfilter.h:56: error: field ‘in6’has incomplete type
>>
>>It looks like there is a problem with the netfilter header, that is not
>>able to load the in.h and in6.h librairies.
>
> in and in6 are not libraries, they are struct members, and you
> need #include <netinet/in.h> to get at their definition beforehand.
Thank you for your answer, this actually fixes my problem, I am now able
to compile the program successfuly !
Cheers ^^ !
> --
> To unsubscribe from this list: send the line "unsubscribe
netfilter-devel"
> in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Mehdi Zerouali
INSA Lyon Student
KTH Stockholm Student
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" 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] 4+ messages in thread
end of thread, other threads:[~2010-05-13 9:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-12 21:16 Problem compiling libipq example Zerouali Mehdi
[not found] ` <AANLkTimepNQyRqTryraxJuAPV6_zgt3CkC0beCd86O-z@mail.gmail.com>
2010-05-13 7:49 ` Zerouali Mehdi
2010-05-13 7:58 ` Jan Engelhardt
2010-05-13 9:43 ` Zerouali Mehdi
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).