- 论坛徽章:
- 0
|
我下了2.4.20的内核,在redhat上编译,在/usr/src下建立了链接,打上了lvs的内核补丁linux-2.4.20-ipvs-1.0.9.patch.gz,然后make mrproper,在make menuconfig时安装网上的资料对lvs部分做了一些配置,在make dep,make clean后,make bzImage时,报以下错误(还有一些警告):
softirq.c: 在函数 ‘do_softirq’ 中:
softirq.c:79: 错误:自增运算中的左值无效
softirq.c:82: 错误:赋值运算中的左值无效
softirq.c:102: 错误:自减运算中的左值无效
softirq.c: 在函数 ‘cpu_raise_softirq’ 中:
softirq.c:116: 错误:赋值运算中的左值无效
softirq.c: 在函数 ‘tasklet_action’ 中:
softirq.c:205: 错误:赋值运算中的左值无效
softirq.c: 在函数 ‘tasklet_hi_action’ 中:
softirq.c:239: 错误:赋值运算中的左值无效
softirq.c: 在函数 ‘ksoftirqd’ 中:
softirq.c:380: 错误:赋值运算中的左值无效
make[2]: *** [softirq.o] 错误 1
make[2]: Leaving directory `/usr/src/linux-2.4.20/kernel'
make[1]: *** [first_rule] 错误 2
make[1]: Leaving directory `/usr/src/linux-2.4.20/kernel'
make: *** [_dir_kernel] 错误 2
我的机器是64位的,find后也没有offset.h文件,请问该如何解决这些问题?
另外,还有个问题,在 http://www.linuxvirtualserver.or ... ipvs-1.0.9.patch.gz补丁,用gzip -cd不能解压缩,我file这个文件,报linux-2.4.20-ipvs-1.0.9.patch.gz: 'diff' output text,是这个下载的补丁有问题吗?我在别的网站下载也是同样情况,请大家指点。谢谢!
[ 本帖最后由 na_wu_ri 于 2008-11-11 14:03 编辑 ] |
|