fedora + iptables + compile errors
Posted: Tue Aug 31, 2004 6:11 am
sorry for the long post . . but here's what's happening.
this is a fedora system. trying to put in that iptables patch.
[root@fw root]# ls
grsecurity-1.2.11-iptables.patch iptables-1.2.11.tar patch-o-matic-ng-20040621
grsecurity-2.0.1-2.6.7.patch linux-2.6.7.tar.gz patch-o-matic-ng-20040621.tar
[root@fw root]# tar xf iptables-1.2.11.tar && tar zxf linux-2.6.7.tar.gz
[root@fw root]# ls
grsecurity-1.2.11-iptables.patch iptables-1.2.11 linux-2.6.7 patch-o-matic-ng-20040621
grsecurity-2.0.1-2.6.7.patch iptables-1.2.11.tar linux-2.6.7.tar.gz patch-o-matic-ng-20040621.tar
[root@fw root]# mv linux-2.6.7 /usr/src/linux && mv iptables-1.2.11 /usr/src/iptables
[root@fw root]# mv grsecurity-1.2.11-iptables.patch /usr/src/iptables/ && mv grsecurity-2.0.1-2.6.7.patch /usr/src/linux/
[root@fw root]# cd /usr/src/iptables/
[root@fw iptables]# patch -p1 < grsecurity-1.2.11-iptables.patch
patching file extensions/Makefile
patching file extensions/libipt_stealth.c
[root@fw iptables]# make KERNEL_DIR=/usr/src/linux/
Making dependencies: please wait...
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from libiptc/libip4tc.c:29:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from iptables.c:39:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from iptables-standalone.c:38:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_recent.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_ULOG.c:18:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_TTL.c:12:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_TRACE.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_TOS.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_TCPMSS.c:10:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_TARPIT.c:4:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_SNAT.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_SAME.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_REJECT.c:9:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_REDIRECT.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_NOTRACK.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_NETMAP.c:10:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_MIRROR.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_MASQUERADE.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_MARK.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_LOG.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_ECN.c:16:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_DSCP.c:17:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_DNAT.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_CONNMARK.c:27:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_CLASSIFY.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_unclean.c:5:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_udp.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_ttl.c:12:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_tos.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_tcpmss.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_tcp.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_state.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_standard.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_sctp.c:17:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_rpc.c:52:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_realm.c:12:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_pkttype.c:17:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_physdev.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_owner.c:10:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_multiport.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_mark.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_mac.c:12:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_limit.c:11:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_length.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_iprange.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_icmp.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_helper.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_esp.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_ecn.c:15:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_dscp.c:20:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_conntrack.c:11:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_connmark.c:28:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_connlimit.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/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/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_stealth.c:10:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
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//include -Iinclude/ -DIPTABLES_VERSION=\"1.2.11\" -D_UNKNOWN_KERNEL_POINTER_SIZE -fPIC -o extensions/libipt_stealth_sh.o -c extensions/libipt_stealth.c
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_stealth.c:10:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_stealth.c:10:
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:255: warning: no semicolon at end of struct or union
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:255: error: syntax error before '*' token
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:259: error: syntax error before '}' token
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning: type defaults to `int' in declaration of `DECLARE_MUTEX'
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning: parameter names (without types) in function declaration
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning: `DECLARE_MUTEX' declared `static' but never defined
make: *** [extensions/libipt_stealth_sh.o] Error 1
[root@fw iptables]# gcc --version
gcc (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
what's going on?
this is a fedora system. trying to put in that iptables patch.
[root@fw root]# ls
grsecurity-1.2.11-iptables.patch iptables-1.2.11.tar patch-o-matic-ng-20040621
grsecurity-2.0.1-2.6.7.patch linux-2.6.7.tar.gz patch-o-matic-ng-20040621.tar
[root@fw root]# tar xf iptables-1.2.11.tar && tar zxf linux-2.6.7.tar.gz
[root@fw root]# ls
grsecurity-1.2.11-iptables.patch iptables-1.2.11 linux-2.6.7 patch-o-matic-ng-20040621
grsecurity-2.0.1-2.6.7.patch iptables-1.2.11.tar linux-2.6.7.tar.gz patch-o-matic-ng-20040621.tar
[root@fw root]# mv linux-2.6.7 /usr/src/linux && mv iptables-1.2.11 /usr/src/iptables
[root@fw root]# mv grsecurity-1.2.11-iptables.patch /usr/src/iptables/ && mv grsecurity-2.0.1-2.6.7.patch /usr/src/linux/
[root@fw root]# cd /usr/src/iptables/
[root@fw iptables]# patch -p1 < grsecurity-1.2.11-iptables.patch
patching file extensions/Makefile
patching file extensions/libipt_stealth.c
[root@fw iptables]# make KERNEL_DIR=/usr/src/linux/
Making dependencies: please wait...
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from libiptc/libip4tc.c:29:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from iptables.c:39:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from iptables-standalone.c:38:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_recent.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_ULOG.c:18:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_TTL.c:12:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_TRACE.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_TOS.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_TCPMSS.c:10:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_TARPIT.c:4:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_SNAT.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_SAME.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_REJECT.c:9:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_REDIRECT.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_NOTRACK.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_NETMAP.c:10:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_MIRROR.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_MASQUERADE.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_MARK.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_LOG.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_ECN.c:16:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_DSCP.c:17:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_DNAT.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_CONNMARK.c:27:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_CLASSIFY.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_unclean.c:5:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_udp.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_ttl.c:12:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_tos.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_tcpmss.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_tcp.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_state.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_standard.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_sctp.c:17:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_rpc.c:52:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_realm.c:12:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_pkttype.c:17:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_physdev.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_owner.c:10:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_multiport.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_mark.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_mac.c:12:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_limit.c:11:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_length.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_iprange.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_icmp.c:7:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_helper.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_esp.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_ecn.c:15:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_dscp.c:20:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_conntrack.c:11:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_connmark.c:28:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_connlimit.c:8:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/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/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_stealth.c:10:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
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//include -Iinclude/ -DIPTABLES_VERSION=\"1.2.11\" -D_UNKNOWN_KERNEL_POINTER_SIZE -fPIC -o extensions/libipt_stealth_sh.o -c extensions/libipt_stealth.c
In file included from /usr/src/linux/include/linux/config.h:4,
from /usr/src/linux/include/linux/netfilter_ipv4.h:8,
from /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:25,
from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_stealth.c:10:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from include/libiptc/libiptc.h:6,
from include/iptables.h:5,
from extensions/libipt_stealth.c:10:
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:255: warning: no semicolon at end of struct or union
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:255: error: syntax error before '*' token
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:259: error: syntax error before '}' token
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning: type defaults to `int' in declaration of `DECLARE_MUTEX'
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning: parameter names (without types) in function declaration
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning: `DECLARE_MUTEX' declared `static' but never defined
make: *** [extensions/libipt_stealth_sh.o] Error 1
[root@fw iptables]# gcc --version
gcc (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
what's going on?