|
在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知道怎么解决吗? |
|