fedora + iptables + compile errors

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

fedora + iptables + compile errors

Postby sean » 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? :)
sean
 
Posts: 2
Joined: Tue Aug 31, 2004 6:08 am

Postby spender » Tue Aug 31, 2004 12:21 pm

Blame Fedora. Notice it's the header from /usr/include causing the problem (which is provided by Fedora). I don't use Fedora, so I don't have a solution to your problem, but others here may.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Postby fonya » Wed Sep 01, 2004 3:13 am

I can compile without any problem
fonya
 
Posts: 36
Joined: Thu Mar 28, 2002 11:22 am

Postby sean » Wed Sep 01, 2004 10:11 pm

:(

wait a sec. Sooo .. you can compile the iptables part without problems on fedora? Core 2? /usr/include problems . . what versions should I be looking for? which file is the 'bad' one? I can post it on here or anything else that you guys might find relevant. I'd like to get this fixed if at all possible :)

thanks
sean
sean
 
Posts: 2
Joined: Tue Aug 31, 2004 6:08 am

fedora + iptables + compile errors

Postby fonya » Thu Sep 02, 2004 2:38 am

wait a sec. Sooo .. you can compile the iptables part without problems on fedora? Core 2? /usr/include problems


What problem? Sorry, I'd missed somthing, I have no problem for compile. My "system" is not a clean fedora:
glibc-2.3.3.-27, with devel, and kernheaders-2.4-8.44
Other come from fedora developer version /was RawHide/:
gcc -3.4.1-9, compat-gcc-8-3.3.4.2
iptables-1.2.11-2, with disabled selinux /I can compile with selinux too, but I don't use selinux/
And I think the most important, I have a vanilla kernel, with grsec patch, and I applied some patch from topical patch-o-matic /for example tarpit patch :)/
I have some kernel patch too, but I think those are irrevelant this situation.
I did in the kernel three a "make config depend clean bzImage modules".
I make a test again, for clean build, the result is everything are ok:
http://mix.elgreco.hu/iptables_rpm_compile.out

Sorry, i can't help You too much.
fonya
 
Posts: 36
Joined: Thu Mar 28, 2002 11:22 am


Return to grsecurity support

cron