LinuxSir.cn,穿越时空的Linuxsir!

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

为什么Linux设备驱动程序2 的源码不能用?

[复制链接]
发表于 2003-9-27 00:45:30 | 显示全部楼层 |阅读模式
我用的是RH9把ldd2的源码和rh9的源码编译错误:
/usr/src/linux-2.4/include/linux/modules/i386_ksyms.ver:92:1: warning: this is the location of the previous definition
In file included from pipe.c:29:
/usr/src/linux-2.4/include/linux/malloc.h:4:2: #error linux/malloc.h is deprecated, use linux/slab.h instead.
make: *** [.depend] Error 1

我又下载了2.4.20的源码,编译没有问题,但就是不能插入insmod出错。说内核版本是2.4.20-8和编译的模块不匹配。 真不知道RH9是怎么回事?
    有没有实验成功的牛人啊?有什么办法吗?谢谢了。
发表于 2003-10-17 16:48:15 | 显示全部楼层
需要做一些修改的,我有改好的源码,给我邮件,我发给你.
我的email  
hubeichenrui@163.net
发表于 2003-11-29 21:43:23 | 显示全部楼层
此本书我才看完前三章,只实验成了一个例子“Hello world!”。
发表于 2003-11-30 18:25:14 | 显示全部楼层
I can carry on none of it!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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