LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 767|回复: 2

求助:给内核打补丁出错

[复制链接]
发表于 2006-6-3 20:24:12 | 显示全部楼层 |阅读模式
下载了patch-o-matic .把time添加进内核编译的时候报如下错误:
[root@localhost linux-2.6.15]# make modules
  CHK     include/linux/version.h
  SPLIT   include/linux/autoconf.h -> include/config/*
  CC [M]  net/ipv4/netfilter/ipt_time.o
net/ipv4/netfilter/ipt_time.c: In function `match':
net/ipv4/netfilter/ipt_time.c:69: error: structure has no member named `stamp'
net/ipv4/netfilter/ipt_time.c: At top level:
net/ipv4/netfilter/ipt_time.c:128: warning: initialization makes integer from pointer without a cast
net/ipv4/netfilter/ipt_time.c:128: error: initializer element is not computable at load time
net/ipv4/netfilter/ipt_time.c:128: error: (near initialization for `time_match.revision')
net/ipv4/netfilter/ipt_time.c:128: warning: initialization from incompatible pointer type
net/ipv4/netfilter/ipt_time.c:128: warning: initialization from incompatible pointer type
make[3]: *** [net/ipv4/netfilter/ipt_time.o] 错误 1
make[2]: *** [net/ipv4/netfilter] 错误 2
make[1]: *** [net/ipv4] 错误 2
make: *** [net] 错误 2
这是什么原因呢/
发表于 2006-6-3 23:35:45 | 显示全部楼层
有的补丁就是不能用,也许是gcc的语法问题,也许是其他的问题,试试旧的gcc?或者换一个内核版本。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-4 11:40:56 | 显示全部楼层
可我编译了2.6.13和2.6.15都有这个问题阿?
以前编译过2.6.16,所以应该不是gcc的问题!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表