From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nishit Shah Subject: Re: arptables ruleset not working when compiling on fedora6,7,8/centos 5/redhat 5 Date: Wed, 8 Jul 2009 12:27:17 +0530 Message-ID: References: <4A48E14A.3060708@trash.net> <4A4B32C4.8050800@trash.net> <4A50A3BA.8060905@pandora.be> <4A52567A.3080202@pandora.be> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Patrick McHardy , Richard Horton , netfilter-devel@vger.kernel.org, netfilter@vger.kernel.org To: Bart De Schuymer , Jan Engelhardt Return-path: In-Reply-To: Sender: netfilter-owner@vger.kernel.org List-Id: netfilter-devel.vger.kernel.org Should I wait for another version to test ? Rgds, Nishit Shah. On Tue, Jul 7, 2009 at 1:31 AM, Jan Engelhardt wrot= e: > On Monday 2009-07-06 21:54, Bart De Schuymer wrote: > >> Jan Engelhardt schreef: >>>> Nishit, please try the attached file. It uses more recent kernel h= eaders that >>>> use x_tables. I prefer that approach... >>>> >>> >>> You need to use the unifdef'ed headers or funny things like >>> compiler complaining about __user might pop up. >>> >> The tarball I sent compiled fine on my (old) system. Does it give su= ch warnings >> on your system? > > You bet. iptables was also cursed by this [our own lack of using > unifdefed headers from the start] before: > > > $ make > cc -O2 -Wall -Wunused -I.//include/ -Iinclude/ -DARPTABLES_VERSION=3D= \"0.0.3-4\" > -c -o arptables-standalone.o arptables-standalone.c > In file included from .//include/libarptc/libarptc.h:6, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from .//include/arptables.h:5, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from arptables-standalone.c:38: > .//include/linux/netfilter_arp/arp_tables.h:19:28: error: linux/compi= ler.h: No > such file or directory > In file included from .//include/libarptc/libarptc.h:6, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from .//include/arptables.h:5, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 from arptables-standalone.c:38: > .//include/linux/netfilter_arp/arp_tables.h:183: error: expected `:',= `,', `;', > `}' or `__attribute__' before `*' token > make: *** [arptables-standalone.o] Error 1 >