LinuxSir.cn,穿越时空的Linuxsir!

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

2.6.10内核编译错误,请问什么原因?

[复制链接]
发表于 2005-2-18 13:51:30 | 显示全部楼层 |阅读模式
编译错误信息如下:

In file included from drivers/char/drm/gamma_drv.c:40:
drivers/char/drm/drm_agpsupport.h: In function `gamma_agp_uninit':
drivers/char/drm/drm_agpsupport.h:431: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:582)
In file included from drivers/char/drm/gamma_drv.c:42:
drivers/char/drm/gamma_context.h: In function `gamma_context_switch_complete':
drivers/char/drm/gamma_context.h:193: error: structure has no member named `next_buffer'
drivers/char/drm/gamma_context.h:193: error: structure has no member named `next_buffer'
In file included from drivers/char/drm/gamma_drv.c:44:
drivers/char/drm/gamma_old_dma.h: In function `gamma_clear_next_buffer':
drivers/char/drm/gamma_old_dma.h:40: error: structure has no member named `next_buffer'
drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue'
drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue'
drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue'
drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue'
drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue'
drivers/char/drm/gamma_old_dma.h:41: error: structure has no member named `next_queue'
drivers/char/drm/gamma_old_dma.h:42: error: structure has no member named `next_queue'
drivers/char/drm/gamma_old_dma.h:44: error: structure has no member named `next_queue'
In file included from drivers/char/drm/gamma_drv.c:46:
drivers/char/drm/drm_drv.h: In function `gamma_release':
drivers/char/drm/drm_drv.h:807: warning: implicit declaration of function `gamma_ctxbitmap_free'
In file included from drivers/char/drm/gamma_drv.c:58:
drivers/char/drm/drm_stub.h: In function `gamma_stub_putminor':
drivers/char/drm/drm_stub.h:148: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:582)
drivers/char/drm/drm_stub.h:150: warning: `inter_module_unregister' is deprecated (declared at include/linux/module.h:578)
drivers/char/drm/drm_stub.h: In function `gamma_stub_register':
drivers/char/drm/drm_stub.h:206: warning: `inter_module_register' is deprecated (declared at include/linux/module.h:577)
drivers/char/drm/drm_stub.h:216: warning: `inter_module_unregister' is deprecated (declared at include/linux/module.h:578)
make[3]: *** [drivers/char/drm/gamma_drv.o] Error 1
make[2]: *** [drivers/char/drm] Error 2
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2

似乎不管我怎么配置,这个模块必须被编译,我按照提示只是做了
make menuconfig
make
出错!
 楼主| 发表于 2005-2-21 00:12:16 | 显示全部楼层
没有人给出提示吗?
回复 支持 反对

使用道具 举报

发表于 2005-2-21 00:42:18 | 显示全部楼层
内核源码包解压在哪里了?
回复 支持 反对

使用道具 举报

发表于 2005-2-21 02:58:36 | 显示全部楼层
常识性错误, 编译内核怎么会有make命令, 应该是四步
make bzImage,
make modules,
make modules_install,
make install
回复 支持 反对

使用道具 举报

发表于 2005-2-21 09:04:46 | 显示全部楼层
常识性错误, 编译内核怎么会有make命令, 应该是四步
make bzImage,
make modules,
make modules_install,
make install

2.6内核使用make编译,不需要make bzImage、make modules了。
回复 支持 反对

使用道具 举报

发表于 2005-2-21 16:24:10 | 显示全部楼层
感谢楼上大哥
以后你就是我大哥 ! 哥, 哥, 哥 !
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-21 23:14:29 | 显示全部楼层
Post by mascot
感谢楼上大哥
以后你就是我大哥 ! 哥, 哥, 哥 !


不知道你是真心还是怎么,但是请去看2.6内核的README。
aaccdd所说不错。

我把源码解压在/usr/src。 root 权限,操作系统debian sarge。机器是IBM X20。
原来的内核是2.6.8,由于不支持IBM的acpi扩展,想升级到2.6.10。
回复 支持 反对

使用道具 举报

发表于 2005-2-22 11:15:33 | 显示全部楼层
我也經常遇到編譯錯誤, 我覺的應該是gcc配置的問題,可是不知道怎麽解決
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-22 17:56:24 | 显示全部楼层
坛子里就没有编译2.6.10内核的吗,编译正常的也可以说说啊!
我是用的
ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.10.tar.bz2
回复 支持 反对

使用道具 举报

发表于 2005-2-22 22:20:21 | 显示全部楼层
我是apt-get install kernel-image-2.6.10-1 的……
楼主既然用的Debian 为什么不直接apt呢 要不用synapic也可以啊
回复 支持 反对

使用道具 举报

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

本版积分规则

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