linux 编译网卡驱动出错?

root@kali:~/Desktop/rtl8187L_linux_1041.0209.2012# make
make[1]: Entering directory `/usr/src/linux-headers-3.18.0-kali3-amd64'
CC [M] /root/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.o
/root/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:153:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rtl8187_usb_probe'
/root/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:155:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'rtl8187_usb_disconnect'
/root/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:168:12: error: 'rtl8187_usb_probe' undeclared here (not in a function)
/root/Desktop/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:169:16: error: 'rtl8187_usb_disconnect'

感觉是你编译的时候选错了宏,很可能是arch选错了,你好好看看追问

那应该怎么改呢? 驱动解压后Readme 中是说 make 然后 make install ,但是我执行第一步就出问题,刚接触Linux,这些问题都搞不懂

那应该怎么改呢? 驱动解压后Readme 中是说 make 然后 make install ,但是我执行第一步就出问题,刚接触Linux,这些问题都搞不懂

追答

额,那个readme就是简单的一说,具体肯定要看实际的编译的东西么.你打开r8187_core.c,看看函数rtl8187_usb_probe前后是不是有一些宏控制,然后再看看自己的配置是不是选上了相应的配置。谢谢

温馨提示:答案为网友推荐,仅供参考
第1个回答  2015-10-05
同样的问题,已经纠结了一周多了,不知道楼主解决了没有啊

相似回答