IPtables 1.2.11 compiling error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi people,

I´m having trouble compiling iptables 1.2.11 (in order to have the "string" 
match module - it´s not included in the standard RPM)...
I´m using Fedora 2 (full install) and when I try to compile, I receive 
"#error including kernel header in userspace; use the glibc headers 
instead!". My kernel sources are located in /usr/src/linux-2.6.5-1.358, 
uname -r = 2.6.5-1.358, iptables v1.2.11.

Is there any other way to have the "libipt_string" module compiled? I´ve 
googled about these errors, but coudn´t find any info that helped me to 
solve the problem... This is the output I get:

[root@server01 iptables-1.2.11]# make KERNEL_DIR=/usr/src/linux-2.6.5-1.358
Extensions found: IPv4:recent IPv6:ah IPv6:esp IPv6:frag IPv6:ipv6header 
IPv6:hbh IPv6:dst IPv6:rt
cc -O2 -Wall -Wunused -I/usr/src/linux-2.6.5-1.358/include -Iinclude/ -DIPTABLES_VERSION=\"1.2.11\" 
  -D_UNKNOWN_KERNEL_POINTER_SIZE -fPIC -o extensions/libipt_ah_sh.o -c 
extensions/libipt_ah.c
In file included from /usr/src/linux-2.6.5-1.358/include/linux/config.h:4,
                 from 
/usr/src/linux-2.6.5-1.358/include/linux/netfilter_ipv4.h:8,
                 from 
/usr/src/linux-2.6.5-1.358/include/linux/netfilter_ipv4/ip_tables.h:25,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_ah.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in 
userspace
In file included from 
/usr/src/linux-2.6.5-1.358/include/linux/netfilter_ipv4.h:8,
                 from 
/usr/src/linux-2.6.5-1.358/include/linux/netfilter_ipv4/ip_tables.h:25,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_ah.c:8:
/usr/src/linux-2.6.5-1.358/include/linux/config.h:6:2: #error including 
kernel header in userspace; use the glibc headers instead!
make: *** [extensions/libipt_ah_sh.o] Error 1

Mark Jones 





[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux