* libnfnetlink.h include generates problems...
@ 2007-06-11 21:39 aton
2007-06-11 22:07 ` [Patch 0/2] " Eric Leblond
2007-06-12 10:35 ` Pablo Neira Ayuso
0 siblings, 2 replies; 8+ messages in thread
From: aton @ 2007-06-11 21:39 UTC (permalink / raw)
To: Netfilter Development Mailinglist
in one of my programs, i include the following two files:
#include <linux/netfilter.h>
#include <libnetfilter_queue/libnetfilter_queue.h>
while a few of my header files include each other i get errors from
these nfqueue header:
In file included from /usr/include/sys/uio.h:24,
from /usr/include/sys/socket.h:27,
from /usr/local/include/libnfnetlink/libnfnetlink.h:19,
from
/usr/local/include/libnetfilter_queue/libnetfilter_queue.h:16,
from misc.h:14,
from packeter.c:9:
/usr/include/sys/types.h:62: error: conflicting types for 'dev_t'
/usr/include/linux/types.h:27: error: previous declaration of 'dev_t'
was here
/usr/include/sys/types.h:72: error: conflicting types for 'mode_t'
/usr/include/linux/types.h:33: error: previous declaration of 'mode_t'
was here
/usr/include/sys/types.h:77: error: conflicting types for 'nlink_t'
/usr/include/linux/types.h:36: error: previous declaration of 'nlink_t'
was here
etc. etc.
i talked to some guys from ##c on freenode, and they said, probably
libnfnetlink.h should not directly include linux/types.h
sorry if this is my mistake, i am not very good at this stuff
greetings, aton
^ permalink raw reply [flat|nested] 8+ messages in thread* [Patch 0/2] Re: libnfnetlink.h include generates problems...
2007-06-11 21:39 libnfnetlink.h include generates problems aton
@ 2007-06-11 22:07 ` Eric Leblond
2007-06-11 22:10 ` [Patch 1/2] " Eric Leblond
2007-06-11 22:11 ` [Patch 0/2] " Eric Leblond
2007-06-12 10:35 ` Pablo Neira Ayuso
1 sibling, 2 replies; 8+ messages in thread
From: Eric Leblond @ 2007-06-11 22:07 UTC (permalink / raw)
To: aton; +Cc: Netfilter Development Mailinglist
[-- Attachment #1: Type: text/plain, Size: 805 bytes --]
Hi,
Le lundi 11 juin 2007 à 23:39 +0200, aton a écrit :
> in one of my programs, i include the following two files:
>
> #include <linux/netfilter.h>
> #include <libnetfilter_queue/libnetfilter_queue.h>
>
> while a few of my header files include each other i get errors from
> these nfqueue header:
>
> In file included from /usr/include/sys/uio.h:24,
> /usr/include/sys/types.h:62: error: conflicting types for 'dev_t'
> /usr/include/linux/types.h:27: error: previous declaration of 'dev_t'
> was here
>
> i talked to some guys from ##c on freenode, and they said, probably
> libnfnetlink.h should not directly include linux/types.h
This seems to be the case as we discus on #netfilter. I'm sending two
patches which fix this issue.
BR,
--
Eric Leblond <eric@inl.fr>
INL
[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Patch 1/2] Re: libnfnetlink.h include generates problems...
2007-06-11 22:07 ` [Patch 0/2] " Eric Leblond
@ 2007-06-11 22:10 ` Eric Leblond
2007-06-13 18:51 ` Pablo Neira Ayuso
2007-06-11 22:11 ` [Patch 0/2] " Eric Leblond
1 sibling, 1 reply; 8+ messages in thread
From: Eric Leblond @ 2007-06-11 22:10 UTC (permalink / raw)
To: aton; +Cc: Netfilter Development Mailinglist
[-- Attachment #1.1: Type: text/plain, Size: 88 bytes --]
Hi,
Here's the patch for libnfnetlink.
BR,
--
Eric Leblond <eric@inl.fr>
INL
[-- Attachment #1.2: libnfnetlink.diff --]
[-- Type: text/x-patch, Size: 413 bytes --]
Index: include/libnfnetlink/libnfnetlink.h
===================================================================
--- include/libnfnetlink/libnfnetlink.h (révision 6853)
+++ include/libnfnetlink/libnfnetlink.h (copie de travail)
@@ -16,7 +16,6 @@
#endif
#include <sys/socket.h> /* for sa_family_t */
-#include <linux/types.h>
#include <linux/netlink.h>
#include <libnfnetlink/linux_nfnetlink.h>
[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Patch 1/2] Re: libnfnetlink.h include generates problems...
2007-06-11 22:10 ` [Patch 1/2] " Eric Leblond
@ 2007-06-13 18:51 ` Pablo Neira Ayuso
0 siblings, 0 replies; 8+ messages in thread
From: Pablo Neira Ayuso @ 2007-06-13 18:51 UTC (permalink / raw)
To: Eric Leblond; +Cc: Netfilter Development Mailinglist, aton
Eric Leblond wrote:
> Here's the patch for libnfnetlink.
Both applied. Thanks Eric.
--
The dawn of the fourth age of Linux firewalling is coming; a time of
great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Patch 0/2] Re: libnfnetlink.h include generates problems...
2007-06-11 22:07 ` [Patch 0/2] " Eric Leblond
2007-06-11 22:10 ` [Patch 1/2] " Eric Leblond
@ 2007-06-11 22:11 ` Eric Leblond
1 sibling, 0 replies; 8+ messages in thread
From: Eric Leblond @ 2007-06-11 22:11 UTC (permalink / raw)
To: aton; +Cc: Netfilter Development Mailinglist
[-- Attachment #1.1: Type: text/plain, Size: 93 bytes --]
Hi,
Here's the patch for libnetilter_queue.
BR,
--
Eric Leblond <eric@inl.fr>
INL
[-- Attachment #1.2: libnetfilter_queue.diff --]
[-- Type: text/x-patch, Size: 473 bytes --]
Index: include/libnetfilter_queue/linux_nfnetlink_queue.h
===================================================================
--- include/libnetfilter_queue/linux_nfnetlink_queue.h (révision 6872)
+++ include/libnetfilter_queue/linux_nfnetlink_queue.h (copie de travail)
@@ -5,7 +5,6 @@
#define aligned_u64 unsigned long long __attribute__((aligned(8)))
#endif
-#include <linux/types.h>
#include <libnfnetlink/linux_nfnetlink.h>
enum nfqnl_msg_types {
[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: libnfnetlink.h include generates problems...
2007-06-11 21:39 libnfnetlink.h include generates problems aton
2007-06-11 22:07 ` [Patch 0/2] " Eric Leblond
@ 2007-06-12 10:35 ` Pablo Neira Ayuso
2007-06-13 9:09 ` aton
1 sibling, 1 reply; 8+ messages in thread
From: Pablo Neira Ayuso @ 2007-06-12 10:35 UTC (permalink / raw)
To: aton; +Cc: Netfilter Development Mailinglist
aton wrote:
> in one of my programs, i include the following two files:
>
> #include <linux/netfilter.h>
> #include <libnetfilter_queue/libnetfilter_queue.h>
>
> while a few of my header files include each other i get errors from
> these nfqueue header:
>
> In file included from /usr/include/sys/uio.h:24,
> from /usr/include/sys/socket.h:27,
> from /usr/local/include/libnfnetlink/libnfnetlink.h:19,
> from
> /usr/local/include/libnetfilter_queue/libnetfilter_queue.h:16,
> from misc.h:14,
> from packeter.c:9:
> /usr/include/sys/types.h:62: error: conflicting types for 'dev_t'
> /usr/include/linux/types.h:27: error: previous declaration of 'dev_t'
> was here
> /usr/include/sys/types.h:72: error: conflicting types for 'mode_t'
> /usr/include/linux/types.h:33: error: previous declaration of 'mode_t'
> was here
> /usr/include/sys/types.h:77: error: conflicting types for 'nlink_t'
> /usr/include/linux/types.h:36: error: previous declaration of 'nlink_t'
> was here
> etc. etc.
>
> i talked to some guys from ##c on freenode, and they said, probably
> libnfnetlink.h should not directly include linux/types.h
What version of libnfnetlink are you using? This problem is supposed to
be fixed already in 0.0.25.
--
The dawn of the fourth age of Linux firewalling is coming; a time of
great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: libnfnetlink.h include generates problems...
2007-06-12 10:35 ` Pablo Neira Ayuso
@ 2007-06-13 9:09 ` aton
2007-06-13 9:28 ` Pablo Neira Ayuso
0 siblings, 1 reply; 8+ messages in thread
From: aton @ 2007-06-13 9:09 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: Netfilter Development Mailinglist
Pablo Neira Ayuso schrieb:
> aton wrote:
>> in one of my programs, i include the following two files:
>>
>> #include <linux/netfilter.h>
>> #include <libnetfilter_queue/libnetfilter_queue.h>
>>
>> while a few of my header files include each other i get errors from
>> these nfqueue header:
>>
>> In file included from /usr/include/sys/uio.h:24,
>> from /usr/include/sys/socket.h:27,
>> from /usr/local/include/libnfnetlink/libnfnetlink.h:19,
>> from
>> /usr/local/include/libnetfilter_queue/libnetfilter_queue.h:16,
>> from misc.h:14,
>> from packeter.c:9:
>> /usr/include/sys/types.h:62: error: conflicting types for 'dev_t'
>> /usr/include/linux/types.h:27: error: previous declaration of 'dev_t'
>> was here
>> /usr/include/sys/types.h:72: error: conflicting types for 'mode_t'
>> /usr/include/linux/types.h:33: error: previous declaration of 'mode_t'
>> was here
>> /usr/include/sys/types.h:77: error: conflicting types for 'nlink_t'
>> /usr/include/linux/types.h:36: error: previous declaration of 'nlink_t'
>> was here
>> etc. etc.
>>
>> i talked to some guys from ##c on freenode, and they said, probably
>> libnfnetlink.h should not directly include linux/types.h
>
> What version of libnfnetlink are you using? This problem is supposed to
> be fixed already in 0.0.25.
>
i am using libnfnetlink-0.0.25 and libnetfilter_queue-0.0.13.
i compiled it myself and did not use the packaged version of the gentoo
portage system
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: libnfnetlink.h include generates problems...
2007-06-13 9:09 ` aton
@ 2007-06-13 9:28 ` Pablo Neira Ayuso
0 siblings, 0 replies; 8+ messages in thread
From: Pablo Neira Ayuso @ 2007-06-13 9:28 UTC (permalink / raw)
To: aton; +Cc: Netfilter Development Mailinglist
aton wrote:
> Pablo Neira Ayuso schrieb:
>> aton wrote:
>>> in one of my programs, i include the following two files:
>>>
>>> #include <linux/netfilter.h>
>>> #include <libnetfilter_queue/libnetfilter_queue.h>
>>>
>>> while a few of my header files include each other i get errors from
>>> these nfqueue header:
>>>
>>> In file included from /usr/include/sys/uio.h:24,
>>> from /usr/include/sys/socket.h:27,
>>> from /usr/local/include/libnfnetlink/libnfnetlink.h:19,
>>> from
>>> /usr/local/include/libnetfilter_queue/libnetfilter_queue.h:16,
>>> from misc.h:14,
>>> from packeter.c:9:
>>> /usr/include/sys/types.h:62: error: conflicting types for 'dev_t'
>>> /usr/include/linux/types.h:27: error: previous declaration of 'dev_t'
>>> was here
>>> /usr/include/sys/types.h:72: error: conflicting types for 'mode_t'
>>> /usr/include/linux/types.h:33: error: previous declaration of 'mode_t'
>>> was here
>>> /usr/include/sys/types.h:77: error: conflicting types for 'nlink_t'
>>> /usr/include/linux/types.h:36: error: previous declaration of 'nlink_t'
>>> was here
>>> etc. etc.
>>>
>>> i talked to some guys from ##c on freenode, and they said, probably
>>> libnfnetlink.h should not directly include linux/types.h
>> What version of libnfnetlink are you using? This problem is supposed to
>> be fixed already in 0.0.25.
>
> i am using libnfnetlink-0.0.25 and libnetfilter_queue-0.0.13.
> i compiled it myself and did not use the packaged version of the gentoo
> portage system
ACK. I'll apply Eric's patches asap.
--
The dawn of the fourth age of Linux firewalling is coming; a time of
great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-06-13 18:51 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-11 21:39 libnfnetlink.h include generates problems aton
2007-06-11 22:07 ` [Patch 0/2] " Eric Leblond
2007-06-11 22:10 ` [Patch 1/2] " Eric Leblond
2007-06-13 18:51 ` Pablo Neira Ayuso
2007-06-11 22:11 ` [Patch 0/2] " Eric Leblond
2007-06-12 10:35 ` Pablo Neira Ayuso
2007-06-13 9:09 ` aton
2007-06-13 9:28 ` Pablo Neira Ayuso
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.