From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: libnfnetlink.h include generates problems... Date: Wed, 13 Jun 2007 11:28:07 +0200 Message-ID: <466FB8A7.1030601@netfilter.org> References: <466DC10A.50805@packetdropped.org> <466E770E.5020404@netfilter.org> <466FB463.2020801@packetdropped.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: Netfilter Development Mailinglist To: aton Return-path: In-Reply-To: <466FB463.2020801@packetdropped.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org aton wrote: > Pablo Neira Ayuso schrieb: >> aton wrote: >>> in one of my programs, i include the following two files: >>> >>> #include >>> #include >>> >>> 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