Skip to contentSkip to conversation

Problem compiling libipq example

DISCUSSION Zerouali Mehdi 2 participants 4 messages May 12, 2010 – May 13, 2010 1 message not in the archive netfilter

lore
Share & tools
lore
#0 lore raw

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,

Signature · 7 lines
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 7 lines · Mistick Levi

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

Quoted 21 lines

Cheers,
Yechiel Levi

also, you are missing one important package:
iptables-dev

Quoted 13 lines · Zerouali Mehdi

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

Quoted 1 line
Quoted 1 line

/usr/include/linux/netfilter.h:56: error: field ‘in6’has incomplete

type

Quoted 17 lines
Quoted 17 lines

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,

Quoted 10 lines
Quoted 10 lines

--
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Thank you for your precious time

Signature · 7 lines
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw
In reply to Zerouali Mehdi
Quoted 7 lines · Zerouali Mehdi

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.

Quoted 8 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 6 lines · Jan Engelhardt
Quoted 5 lines · Zerouali Mehdi

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

Quoted 8 lines
Quoted 8 lines

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

Quoted 5 lines
Quoted 2 lines

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 ^^ !

Quoted 2 lines

--
To unsubscribe from this list: send the line "unsubscribe

netfilter-devel"

Quoted 3 lines

in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 7 lines
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html