我试图安装一个罗塞威尔RNX-N600UBE无线网卡(拉林克RT2870芯片组)在卡利Linux的驱动程序。我从他们的网站下载了驱动程序并解压缩/解压缩,但是现在当我试图运行'make‘命令时,我会得到这个错误。
/home/fox/System/2011_0427_RT3572_Linux_STA_v2.5.0.0.DPO/os/linux/../../os/linux/rt_linux.c:1156:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
/home/fox/System/2011_0427_RT3572_Linux_STA_v2.5.0.0.DPO/os/linux/../../os/linux/rt_linux.c:1157:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
make[4]: *** [/home/fox/System/2011_0427_RT3572_Linux_STA_v2.5.0.0.DPO/os/linux/../../os/linux/rt_linux.o] Error 1
make[3]: *** [_module_/home/fox/System/2011_0427_RT3572_Linux_STA_v2.5.0.0.DPO/os/linux] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2发布于 2014-09-28 14:26:50
我在这个网站上找到了另一个驱动程序编译错误的修正:http://www.arnelborja.com/compiling-rt2870-wifi-driver-in-fedora/。
下面是修补程序的内容:
--- include/os/rt_linux.h 2013-09-12 13:27:14.000000000 +0800
+++ include/os/rt_linux.h.patched 2014-03-23 11:45:03.907628847 +0800
@@ -279,8 +279,8 @@ typedef struct file* RTMP_OS_FD;
typedef struct _OS_FS_INFO_
{
- int fsuid;
- int fsgid;
+ kuid_t fsuid;
+ kgid_t fsgid;
mm_segment_t fs;
} OS_FS_INFO;发布于 2014-04-16 10:31:42
make只报告错误,但实际上它们是编译器(可能是gcc)的错误:
error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’ 基本上,您的代码是错误的或不适合您的平台,但make的功能是正确的。
发布于 2016-07-17 15:56:15
这个解决方案对我有效。我遵循的程序是:
make (作为root),并得到了一个错误。所以,我做了上面的修改,它起了作用。make install (作为root),重新启动了计算机,并识别了无线接口。我配置了它,它起作用了。;)我的系统是:,内核3.16.0-4-AMD 64,使用gnome.
https://unix.stackexchange.com/questions/125039
复制相似问题