LinuxSir.cn,穿越时空的Linuxsir!

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

企业4的2.6.9编译2.4.21内核出现问题

[复制链接]
发表于 2007-5-9 14:03:12 | 显示全部楼层 |阅读模式
因为要用的软件需要在2.4的内核下运行,而我现在装的是2.6的内核,想在2.6下编译2.4的内核,make dep之前都没有问题,make bzImage就有错了。错误貌似是一些冲突:

n file included from /usr/src/linux-2.4.21/include/linux/sched.h:23,
from /usr/src/linux-2.4.21/include/linux/mm.h:4,
from /usr/src/linux-2.4.21/include/linux/slab.h:14,
from /usr/src/linux-2.4.21/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.21/include/linux/smp.h:29: error: conflicting types for 'smp_ send_reschedule'
/usr/src/linux-2.4.21/include/asm/smp.h:42: error: previous declaration of 'smp_ send_reschedule' was here
/usr/src/linux-2.4.21/include/linux/smp.h:29: error: conflicting types for 'smp_ send_reschedule'
/usr/src/linux-2.4.21/include/asm/smp.h:42: error: previous declaration of 'smp_ send_reschedule' was here
In file included from /usr/src/linux-2.4.21/include/linux/unistd.h:9,
from init/main.c:17:
/usr/src/linux-2.4.21/include/asm/unistd.h:375: warning: conflicting types for b uilt-in function '_exit'
make: *** [init/main.o] 错误 1

相关版本信息:

Linux 2.6.9-22.EL ,企业4。
gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)

我使用的命令:
make dep
make clean
make bzImage

谢谢!
发表于 2007-5-14 17:22:53 | 显示全部楼层
肯定不行了,2.4内核的系统要升级到2.6内核需要升级很多东西,论坛里有方法。反过来也一样不行。Rh4太新了,建议还是换个低版本。
回复 支持 反对

使用道具 举报

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

本版积分规则

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