免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2629 | 回复: 15
打印 上一主题 下一主题

请问编译iptables-1.3.1出错问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-04-17 10:24 |只看该作者 |倒序浏览
系统为rhel as4,内核原代码树为ftp://updates.redhat.com提供for rhel as4 的kernel-2.6.9-5.0.3.EL.src.rpm ,rpm -ivh kernel-2.6.9-5.0.3.EL.src.rpm 安装内核原代码后编译iptables使用参数
make KERNEL_DIR=/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9
编译时提示如下错误:
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from libiptc/libip4tc.c:29:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from iptables.c:39:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from iptables-standalone.c:38:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_recent.c:8:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_ULOG.c:18:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_TTL.c:12:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_TRACE.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_TOS.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_TCPMSS.c:10:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_TARPIT.c:4:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_SNAT.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_SAME.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_REJECT.c:9:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_REDIRECT.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_NOTRACK.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_NETMAP.c:10:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_MIRROR.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_MASQUERADE.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_MARK.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_LOG.c:8:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_ECN.c:16:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_DSCP.c:17:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_DNAT.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_CONNMARK.c:27:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_CLASSIFY.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_unclean.c:5:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_udp.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_ttl.c:12:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_tos.c:8:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_tcpmss.c:8:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_tcp.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_state.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_standard.c:8:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_sctp.c:17:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_rpc.c:52:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_realm.c:12:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_pkttype.c:17:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_physdev.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_owner.c:10:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_multiport.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_mark.c:8:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_mac.c:12:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_limit.c:11:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_length.c:8:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_iprange.c:8:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_icmp.c:7:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_helper.c:8:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_hashlimit.c:18:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_esp.c:8:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_ecn.c:15:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_dscp.c:20:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_conntrack.c:11:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_connmark.c:28:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_connlimit.c:8:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_comment.c:14:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_addrtype.c:9:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_ah.c:8:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/config.h:6:2: #error including kernel header in userspace; use the glibc headers instead!
In file included from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4.h:8,
                 from /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/include/linux/netfilter_ipv4/ip_tables.h:26,
                 from include/libiptc/libiptc.h:6,
                 from include/iptables.h:5,
                 from extensions/libipt_ah.c:8:
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/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
以上信息是我用make KERNEL_DIR=/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9 2>;err.txt取得的,请问iptables-1.3.1不能使用redhat提供的修改过的内核原代码吗?

论坛徽章:
0
2 [报告]
发表于 2005-04-17 11:09 |只看该作者

请问编译iptables-1.3.1出错问题?

#error including kernel header in userspace; use the glibc headers instead!
从提示来看,像glibc头文件的问题
看一下系统是否安装了glibc及devel?

论坛徽章:
0
3 [报告]
发表于 2005-04-17 20:37 |只看该作者

请问编译iptables-1.3.1出错问题?

glibc和glibc-devel都已经安装了,下面是我系统已经安装的包!
[root@gateway iptables-1.3.1]# rpm -qa |grep glibc
glibc-2.3.4-2
glibc-headers-2.3.4-2
glibc-common-2.3.4-2
glibc-kernheaders-2.4-9.1.87
glibc-devel-2.3.4-2
[root@gateway iptables-1.3.1]# rpm -qa |grep kernel
kernel-utils-2.4-13.1.48
kernel-devel-2.6.9-5.EL
kernel-2.6.9-5.EL
kernel-hugemem-devel-2.6.9-5.EL
kernel-smp-devel-2.6.9-5.EL
是不是有个kernel-header的包没有装的问题?另我下载了for iptables-1.2.11的1.3.1补丁patch-iptables-1.3.0-1.3.1
是不是进入iptables-1.2.11的源码目录直接
patch -p1 < /patch所在目录/patch-iptables-1.3.0-1.3.1
后编译就可以升级到1.3.1了?

论坛徽章:
0
4 [报告]
发表于 2005-04-17 23:32 |只看该作者

请问编译iptables-1.3.1出错问题?

经过实验, 我在kernel.org下载的linux-2.4.29内核树后编译iptables也报同样的错误,请问是系统里缺少了哪个包呢?

论坛徽章:
0
5 [报告]
发表于 2005-04-17 23:56 |只看该作者

请问编译iptables-1.3.1出错问题?

gcc也应该有了吧?
kernel也make dep了?
真奇怪!

论坛徽章:
0
6 [报告]
发表于 2005-04-18 00:47 |只看该作者

请问编译iptables-1.3.1出错问题?

2.4.29的内核做了make dep后可以编译iptables-1.3.1了,2.6.9-5的
内核我编译都成功了,就是编译iptables过不去.我用google搜索#error including kernel header in userspace; use the glibc headers instead!
还是有很多人有同样问题,但好象没有找到好的解决方法.(我E文烂)
如果用2.6内核的话是不是得当前内核版本是这个内核版本才能编译iptables?
我的gcc安装情况
[root@gateway ~]# rpm -qa |grep gcc
gcc-g77-3.4.3-9.EL4
libgcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.EL4
gcc-java-3.4.3-9.EL4
gcc-3.4.3-9.EL4

论坛徽章:
0
7 [报告]
发表于 2005-04-18 01:06 |只看该作者

请问编译iptables-1.3.1出错问题?

我又去kernel.org下载了linux-2.6.11.7内核包后编译iptables也是同样错误,请问2.6内核没有make dep编译参数,怎样做依靠呢?

论坛徽章:
0
8 [报告]
发表于 2005-04-18 17:53 |只看该作者

请问编译iptables-1.3.1出错问题?

自己顶一下!

论坛徽章:
0
9 [报告]
发表于 2005-04-20 03:18 |只看该作者

请问编译iptables-1.3.1出错问题?

platinum  老大帮帮忙,我卡在这部分过不去,郁闷ing......

论坛徽章:
0
10 [报告]
发表于 2005-04-20 08:14 |只看该作者

请问编译iptables-1.3.1出错问题?

[quote]原帖由 "diypig"]platinum  老大帮帮忙,我卡在这部分过不去,郁闷ing......[/quote 发表:

对不起哦,我对KERNEL-2.6.X不感冒,很反感,所以没弄过
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP