<DIV>
<DIV>Hello Mr. Stevens,</DIV>
<DIV> </DIV>
<DIV>My intention is aply in the kernel l7-filter.</DIV>
<DIV>I resolve this problem comenting all lines </DIV>
<DIV>in config.h, the iptables was compilled.</DIV>
<DIV> </DIV>
<DIV>Usualy, I open the file INSTALL in tarballs.</DIV>
<DIV>And I see the options and try to choose a best form</DIV>
<DIV>to install any program. Itīs can to be a rule ?</DIV>
<DIV> </DIV>
<DIV>All the programs, if i user ./configure ; make ; make install</DIV>
<DIV>will be installed with success ?</DIV>
<DIV> </DIV>
<DIV>With RPM, i create iptables  rpm with checkinstall, when I try to install it, conflict with kernel 2.6, iīm using the kernel 2.6.12. But I don't create using rpmbuild, add patchs do file spec. </DIV>
<DIV> </DIV>
<DIV>Att,</DIV>
<DIV> </DIV>
<DIV>Rodrigo Faria</DIV></DIV>
<DIV> </DIV>
<DIV>> Rodrigo Faria Tavares wrote:</DIV>
<DIV>> > Hello,</DIV>
<DIV>> > </DIV>
<DIV>> > I try to recompile iptables 1.2.11.</DIV>
<DIV>> > </DIV>
<DIV>> > [root@faria iptables-1.2.11]# make</DIV>
<DIV>> > KERNEL_DIR=/usr/src/linux-2.6.12</DIV>
<DIV>> > Extensions found: IPv4:addrtype IPv4:CLUSTERIP IPv4:layer7 IPv4:recent </DIV>
<DIV>> > IPv6:ah IPv6:esp IPv6:frag</DIV>
<DIV>> > IPv6:ipv6header IPv6:hbh IPv6:dst IPv6:rt cc -O2 -Wall -Wunused </DIV>
<DIV>> > -I/usr/src/linux-2.6.12/include -Iinclude/ </DIV>
<DIV>> > -DIPTABLES_VERSION=\"1.2.11\" -fPIC -o</DIV>
<DIV>> > extensions/libipt_ah_sh.o -c extensions/libipt_ah.c In file included from</DIV>
<DIV>> > /usr/src/linux-2.6.12/include/linux/netfilter_ipv4.h:8,</DIV>
<DIV>> > from</DIV>
<DIV>> > /usr/src/linux-2.6.12/include/linux/netfilter_ipv4/ip_tables.h:26,</DIV>
<DIV>> > from include/libiptc/libiptc.h:6,</DIV>
<DIV>> > from include/iptables.h:5,</DIV>
<DIV>> > from extensions/libipt_ah.c:8:</DIV>
<DIV>> > /usr/src/linux-2.6.12/include/linux/config.h:6:2:</DIV>
<DIV>> > #error including kernel header in userspace; use the</DIV>
<DIV>> > glibc headers instead!</DIV>
<DIV>> > make: ** [extensions/libipt_ah_sh.o] Erro 1</DIV>
<DIV>> > [root@faria iptables-1.2.11]#</DIV>
<DIV>> > </DIV>
<DIV>> > I search for solutions in google, but in donīt have success.</DIV>
<DIV>> </DIV>
<DIV>> It's probably a LOT smarter to just update the binary RPM. Is there a</DIV>
<DIV>> reason you're trying to build it from source?</DIV>
<DIV>> </DIV>
<DIV>> If you insist on building the source, did you run "./configure" before</DIV>
<DIV>> you ran "make"? The sequence to build things from a tarball normally</DIV>
<DIV>> is:</DIV>
<DIV>> </DIV>
<DIV>> $ cd /some/working/directory</DIV>
<DIV>> $ tar xzf name-of-tarball.gz</DIV>
<DIV>> $ cd directory/created/by/tar/command</DIV>
<DIV>> $ ./configure</DIV>
<DIV>> $ make</DIV>
<DIV>> $ su</DIV>
<DIV>> # make install</DIV>
<DIV>> </DIV>
<DIV>> The "./configure" configures the source code for your environment and</DIV>
<DIV>> will (usually) figure out which set of header files to use. Also note</DIV>
<DIV>> that the vast majority of tarballs will, by default, try to install into</DIV>
<DIV>> /usr/local. You may want to "./configure --prefix=/" to make it install</DIV>
<DIV>> into the root of your filesystem (most Red Hat RPMs are set up to do</DIV>
<DIV>> that). You can get a list of what options configure uses by running</DIV>
<DIV>> the command as:</DIV>
<DIV>> </DIV>
<DIV>> $ ./configure --help</DIV>
<DIV>> </DIV>
<DIV>> ----------------------------------------------------------------------</DIV>
<DIV>> - Rick Stevens, Senior Systems Engineer rstevens@vitalstream.com -</DIV>
<DIV>> - VitalStream, Inc. http://www.vitalstream.com -</DIV>
<DIV>> - -</DIV>
<DIV>> - What's small, yellow and very, VERY dangerous? The root canary! -</DIV>
<DIV>> ----------------------------------------------------------------------</DIV>