免费注册 查看新帖 |

Chinaunix

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

[网络管理] 升级iptables出错,请大侠给看看 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-11 20:27 |只看该作者 |倒序浏览
Extensions found: IPv4:recent IPv6:esp
cc -O2 -Wall -Wunused -I"/lib/modules/2.6.9-42.EL/build"/include -Iinclude/ -DIPTABLES_VERSION=\"1.3.8\"  -fPIC -o extensions/libipt_ah_sh.o -c extensions/libipt_ah.c
In file included from /lib/modules/2.6.9-42.EL/build/include/linux/netfilter_ipv4.h:8,
                 from /lib/modules/2.6.9-42.EL/build/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:
/lib/modules/2.6.9-42.EL/build/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
我gongle过error including kernel header in userspace; use the glibc headers instead!也有人出现过这个错误,可没有看到怎么解决的方法。

论坛徽章:
0
2 [报告]
发表于 2007-12-11 21:37 |只看该作者

回复 #1 shined_zhang 的帖子

//#ifndef __KERNEL__

  //#error including kernel header in userspace; use the glibc headers instead!

  //#endif

把上面出问题的.h文件中的上面三行代码注释掉,重新编译

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
3 [报告]
发表于 2007-12-12 08:42 |只看该作者
没有内核头文件或源代码。

论坛徽章:
0
4 [报告]
发表于 2007-12-13 16:13 |只看该作者
原帖由 CIT 于 2007-12-11 21:37 发表
//#ifndef __KERNEL__

  //#error including kernel header in userspace; use the glibc headers instead!

  //#endif

把上面出问题的.h文件中的上面三行代码注释掉,重新编译



我看了  已经是注释掉了的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP