From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: Fix --with-kernel for libnfnetlink Date: Fri, 21 Apr 2006 15:12:10 +0200 Message-ID: <20060421131210.GA10173@localhost.localdomain> References: <859616420604200825o71f81878lbbb45251f1e0330d@mail.gmail.com> <4447E23E.4090204@trash.net> <859616420604210021y53dda87ai64678342068ed43f@mail.gmail.com> <20060421110954.GA4403@localhost.localdomain> <4448D4A9.1080809@ufomechanic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netfilter-devel@lists.netfilter.org, Patrick McHardy , Pablo Neira Ayuso Return-path: To: Amin Azez Content-Disposition: inline In-Reply-To: <4448D4A9.1080809@ufomechanic.net> 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 On Fri, Apr 21, 2006 at 01:48:41PM +0100, Amin Azez wrote: > Pablo Neira Ayuso wrote: > > >Why do you need this parameter? the netfilter libraries don't require > >kernel headers anymore since they are already bundled in the package > >provided. For example, see include/libnfnetlink/linux_nfnetlink.h. We > >have had several problems with iptables and the kernel headers in the > >past: compilation warnings, breakages... That is the reason why we > >decided to do so. > > > >On the other hand, autogen.sh automates the copy of these headers, > >so you could choose them via KERNEL_DIR but you need some important > >reason to do that. > > I needed it because (at the time) I was working on netfilter and > changing it. I was building multiple kernels with different modifications. > > It's possibly only useful for developers (but this is netfilter-devel). Still, why such thing would be useful? I just noticed that this thread started from "Problem with compiling libnfnetlink". Could you check that you have /usr/include/asm/types.h installed? it seems that your system doesn't find the definition of __u32. It's true that this is defined in a kernel header but such file is usually provided by the linux-kernel-header package, that is the case of debian. I think that is a reasonable requirement to compile libnfnetlink. -- 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