kali linux下make安装TAR包(一个网卡驱动)时报错,怎么办
已经解压在root下,文件夹名为BCM4313DRIVER里面有src、lib、Makefileroot@kali:~/BCM4313DRIVER#makeKBUILD_...
已经解压在root下,文件夹名为BCM4313DRIVER
里面有src、lib、Makefile
root@kali:~/BCM4313DRIVER# make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/linux-headers-3.18.0-kali3-686-pae'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
CC [M] /root/BCM4313DRIVER/src/wl/sys/wl_linux.o
/root/BCM4313DRIVER/src/wl/sys/wl_linux.c: In function ‘wl_alloc_linux_if’:
/root/BCM4313DRIVER/src/wl/sys/wl_linux.c:1310:64: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
/root/BCM4313DRIVER/src/wl/sys/wl_linux.c:1310:8: error: ‘alloc_netdev’ undeclared (first use in this function)
/root/BCM4313DRIVER/src/wl/sys/wl_linux.c:1310:8: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [/root/BCM4313DRIVER/src/wl/sys/wl_linux.o] 错误 1
make[3]: *** [_module_/root/BCM4313DRIVER] 错误 2
make[2]: *** [sub-make] 错误 2
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/usr/src/linux-headers-3.18.0-kali3-686-pae'
make: *** [all] 错误 2 展开
里面有src、lib、Makefile
root@kali:~/BCM4313DRIVER# make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/linux-headers-3.18.0-kali3-686-pae'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
CC [M] /root/BCM4313DRIVER/src/wl/sys/wl_linux.o
/root/BCM4313DRIVER/src/wl/sys/wl_linux.c: In function ‘wl_alloc_linux_if’:
/root/BCM4313DRIVER/src/wl/sys/wl_linux.c:1310:64: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
/root/BCM4313DRIVER/src/wl/sys/wl_linux.c:1310:8: error: ‘alloc_netdev’ undeclared (first use in this function)
/root/BCM4313DRIVER/src/wl/sys/wl_linux.c:1310:8: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [/root/BCM4313DRIVER/src/wl/sys/wl_linux.o] 错误 1
make[3]: *** [_module_/root/BCM4313DRIVER] 错误 2
make[2]: *** [sub-make] 错误 2
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/usr/src/linux-headers-3.18.0-kali3-686-pae'
make: *** [all] 错误 2 展开
展开全部
一般驱动程序都会自带一个configure脚本的,你看看源代码里有没有提供这个脚本
而且你的linux是什么版本的呢?从提示缺少raw_io.h看,很有可能你的linux版本与你的驱动不合
貌似8192C是磊科NW336无线网卡吧,如果是的话,可以参考一下http://darksun.blog.51cto.com/3874064/961236这篇文章
而且你的linux是什么版本的呢?从提示缺少raw_io.h看,很有可能你的linux版本与你的驱动不合
貌似8192C是磊科NW336无线网卡吧,如果是的话,可以参考一下http://darksun.blog.51cto.com/3874064/961236这篇文章
追问
网卡是BCM4313。没有脚本。linux,是kali版本。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询