首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

centos6.2编译安装compat-wireless时报错。求教!该如何解决

2012-05-28 
centos6.2编译安装compat-wireless时报错。求教!系统是装在VM虚拟机下的,版本是centos6.2。想装无线网卡,但

centos6.2编译安装compat-wireless时报错。求教!
系统是装在VM虚拟机下的,版本是centos6.2。想装无线网卡,但在编译compat-wireless时报错。
请教原因和解决方法。多谢!

报错如下:

Assembly code
make -C /lib/modules/2.6.32-220.e16.x86_64/build M=/root/compat-wireless-2012-05-10 modulesmake[1]: Entering directory '/usr/src/kernels/2.6.32-220.e16.x86_64'  CC [M] /root/compat-wireless-2012-05-10/compat/main.oIn dile included from /root/compat-wireless-2012-05-10/include/linux/compat-2.6.h:55,                 from <command-line>:0:/root/compat-wireless-2012-05-10/include/linux/compat-2.6.35.h:27: error:static declaration of 'irq_set_affinity_hint' follows non-static declarationinclude/linux/interrupt.h:218: note: previous declaration of 'irq_set_affinity_hint' was hereIn file included from /root/compat-wireless-2012-05-10/include/linux/compat-2.6.h:61,                 from <command-line>:0:/root/compat-wireless-2012-05-10/include/linux/compat-3.1.h:11: error: redefinition of '__netdev_alloc_skb_ip_align'include/linux/skbuff.h:1512: note: previous definition of '__netdev_alloc_skb_ip_align' was heremake[3]: *** [/root/compat-wireless-2012-05-10/compat/main.o] Error 1make[2]: *** [/root/compat-wireless-2012-05-10/compat] Error 2make[1]: *** [_module_/root/compat-wireless-2012-05-10] Error 2make[1]: *** Leaving directory '/usr/src/kernels/2.6.32-220.e16.x86_64'make: *** [modules] Error 2




[解决办法]
看样你下的驱动包里有自带的兼容头文件, 里面的函数和系统里的头文件的函数名重复声明了.

你去驱动包里的这两个头文件, 注释掉这两个函数就行了.

热点排行