免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: platinum
打印 上一主题 下一主题

netfilter module - domain v0.0.2 发布 [复制链接]

论坛徽章:
0
21 [报告]
发表于 2006-08-11 14:11 |只看该作者
N多错误啊
[root@RHEL4 domain-0.0.2]# make KERNEL_SRC=/usr/src/linux IPTABLES_SRC=/usr/src/iptables install
make -C /usr/src/linux SUBDIRS=/data/soft/domain-0.0.2 modules
make[1]: Entering directory `/usr/src/linux-2.6.9'
Makefile:461: .config: No such file or directory
  CC [M]  /data/soft/domain-0.0.2/ipt_domain.o
In file included from include/linux/module.h:9,
                 from /data/soft/domain-0.0.2/ipt_domain.c:4:
include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
In file included from include/linux/module.h:10,
                 from /data/soft/domain-0.0.2/ipt_domain.c:4:
include/linux/sched.h:4:36: asm/param.h: No such file or directory
In file included from include/linux/types.h:13,
                 from include/linux/capability.h:16,
                 from include/linux/sched.h:7,
                 from include/linux/module.h:10,
                 from /data/soft/domain-0.0.2/ipt_domain.c:4:
include/linux/posix_types.h:47:29: asm/posix_types.h: No such file or directory
In file included from include/linux/capability.h:16,
                 from include/linux/sched.h:7,
                 from include/linux/module.h:10,
                 from /data/soft/domain-0.0.2/ipt_domain.c:4:
include/linux/types.h:14:23: asm/types.h: No such file or directory
In file included from include/linux/capability.h:16,
                 from include/linux/sched.h:7,
                 from include/linux/module.h:10,
                 from /data/soft/domain-0.0.2/ipt_domain.c:4:
include/linux/types.h:18: error: syntax error before "__kernel_dev_t"
include/linux/types.h:18: warning: type defaults to `int' in declaration of `__kernel_dev_t'
include/linux/types.h:18: warning: data definition has no type or storage class
include/linux/types.h:21: error: syntax error before "dev_t"
include/linux/types.h:21: warning: type defaults to `int' in declaration of `dev_t'
include/linux/types.h:21: warning: data definition has no type or storage class
include/linux/types.h:22: error: syntax error before "ino_t"
include/linux/types.h:22: warning: type defaults to `int' in declaration of `ino_t'
make[2]: *** Deleting file `/data/soft/domain-0.0.2/ipt_domain.o'
make[2]: *** [/data/soft/domain-0.0.2/ipt_domain.o] Interrupt
make[1]: *** [_module_/data/soft/domain-0.0.2] Interrupt
make: *** [ipt_domain.ko] Interrupt
..
.
.
.
.
.{standard input}:5163: Error: symbol `ops' is already defined
{standard input}:5503: Error: symbol `stats' is already defined
{standard input}:5624: Error: symbol `lock' is already defined
{standard input}:5915: Error: symbol `id' is already defined
{standard input}:5963: Error: symbol `protocol' is already defined
{standard input}:6022: Error: symbol `user' is already defined
{standard input}:6045: Error: symbol `data' is already defined
{standard input}:6050: Error: symbol `user' is already defined
{standard input}:6109: Error: symbol `code' is already defined
{standard input}:6121: Error: symbol `len' is already defined
make[2]: *** [/data/soft/domain-0.0.2/ipt_domain.o] Error 1
make[1]: *** [_module_/data/soft/domain-0.0.2] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.9'
make: *** [ipt_domain.ko] Error 2




[root@RHEL4 domain-0.0.2]# uname -a
Linux RHEL4 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686 i686 i386 GNU/Linux

论坛徽章:
0
22 [报告]
发表于 2006-09-18 11:54 |只看该作者
楼上的,我的问题竟然与你一样一样的

论坛徽章:
0
23 [报告]
发表于 2006-09-18 14:43 |只看该作者
Makefile:461: .config: No such file or directory

没生成内核需要的配置

make menuconfig
保存退出

论坛徽章:
0
24 [报告]
发表于 2006-09-18 15:10 |只看该作者
原帖由 platinum 于 2006-9-18 14:43 发表
Makefile:461: .config: No such file or directory

没生成内核需要的配置

make menuconfig
保存退出


啥意思?
我们用AS4.0
就不能用您的 domain 这个模块了吗>

论坛徽章:
0
25 [报告]
发表于 2006-09-18 15:45 |只看该作者
你编过内核吗?
你的系统有内核源码吗?
如果没有这方面经验,确实不太好弄。。。

论坛徽章:
0
26 [报告]
发表于 2006-09-18 15:51 |只看该作者
我没编译过内核的经验
但是我的系统是有内核源码的

那是不是我的系统的内核的问题,如果我选择较低的版本是不是就可以了
如果是的话,在redhat中,我该选哪个版本的?
还请白金大哥指教!!!

论坛徽章:
0
27 [报告]
发表于 2006-09-18 21:34 |只看该作者
你需要重新编译你的内核,不关版本的事情
先进行配置,
可以先搜索一下编译内核的帖子,很多的

论坛徽章:
0
28 [报告]
发表于 2006-09-19 08:20 |只看该作者
我安装完后,实际使用效果不是很少。比如,我禁止了btchina.net。结果客户端仍然可以访问,有时候就不能访问。但bt2.btchina.net没有被禁止掉

论坛徽章:
0
29 [报告]
发表于 2006-09-19 09:13 |只看该作者
原帖由 lihn 于 2006-9-19 08:20 发表
我安装完后,实际使用效果不是很少。比如,我禁止了btchina.net。结果客户端仍然可以访问,有时候就不能访问。但bt2.btchina.net没有被禁止掉

请问你用的什么 “客户端” ?

论坛徽章:
0
30 [报告]
发表于 2006-09-19 09:58 |只看该作者
客户端用的windows Xp+sp2 系统 ,Internet Explorer
在网关上用的命令:iptables -A FORWARD -m domain --name "btchina.net" -j DROP
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP