LinuxSir.cn,穿越时空的Linuxsir!

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

安装Realtek驱动遇到的问题

[复制链接]
发表于 2011-2-7 11:04:57 | 显示全部楼层 |阅读模式
在ubuntu 10.10中安装Realtek声卡驱动,make时出现无法找到modversions.h文件的错误,详细如下:
---------------------------------------------------------------------------------------------
cc1: fatal error: /lib/modules/2.6.35-25-generic/build/include/linux/modversions.h: 没有那个文件或目录
---------------------------------------------------------------------------------------------

在 /lib/modules/2.6.35-25-generic/build/include/config文件夹下发现modversions.h,但是文件大小为0,将其拷贝到/lib/modules/2.6.35-25-generic/build/include/linux/下,重新编译,出现如下错误:
---------------------------------------------------------------------------------------------
/lib/modules/2.6.35-25-generic/build/include/linux/gameport.h: In function ‘gameport_register_driver’:
/lib/modules/2.6.35-25-generic/build/include/linux/gameport.h:154: error: ‘KBUILD_MODNAME’ undeclared (first use in this function)
/lib/modules/2.6.35-25-generic/build/include/linux/gameport.h:154: error: (Each undeclared identifier is reported only once
/lib/modules/2.6.35-25-generic/build/include/linux/gameport.h:154: error: for each function it appears in.)
---------------------------------------------------------------------------------------------

不知道怎么解决,在网上搜索也没有什么结果,有xd知道怎么解决吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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