我无法使用“netis Wf2123”适配器(http://www.netis-systems.com/Suppory/de_details/id/1/de/89.html)。
我的操作系统:
Cat / etc / lsb-release
DISTRIB_ID = Ubuntu
DISTRIB_RELEASE = 16.04
DISTRIB_CODENAME = xenial
DISTRIB_DESCRIPTION = "Ubuntu 16.04.2 LTS"
Uname -a
Linux KB4051 4.4.0-79-generic # 100-Ubuntu SMP Wed May 17 19:58:14 UTC 2017 x86_64 x86_64 x86_64 GNU / Linux
从制造商网站下载的设备驱动程序“netis WF2123 Driver for Linux, 2017-02-21”
在编译时我收到以下消息:
Root @ KB4051: /tmp/drv.wlan.canon/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042# make
Make ARCH = x86_64 CROSS_COMPILE = -C /lib/modules/4.4.0-79-generic/build M = / tmp / drv.wlan.canon / rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042 modules
Make [1]: entering the directory "/usr/src/linux-headers-4.4.0-79-generic"
CC [M] /tmp/drv.wlan.canon/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042/core/rtw_cmd.o
CC [M] /tmp/drv.wlan.canon/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042/core/rtw_security.o
CC [M] /tmp/drv.wlan.canon/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042/core/rtw_debug.o
/tmp/drv.wlan.canon/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042/core/rtw_debug.c: In function 'dump_drv_version':
/tmp/drv.wlan.canon/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042/core/rtw_debug.c:71:64: error: macro "__DATE__" might prevent reproducible builds [-Werror = date-time]
DBG_871X_SEL_NL (sel, "build time:% s% s \ n", __DATE__, __TIME__);
^
/tmp/drv.wlan.canon/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042/core/rtw_debug.c:71:64: error: macro "__TIME__" might prevent reproducible builds [-Werror = date-time]
/tmp/drv.wlan.canon/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042/core/rtw_debug.c:71:64: error: macro "__DATE__" might prevent reproducible builds [-Werror = date-time]
/tmp/drv.wlan.canon/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042/core/rtw_debug.c:71:64: error: macro "__TIME__" might prevent reproducible builds [-Werror = date-time]
/tmp/drv.wlan.canon/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042/core/rtw_debug.c:71:64: error: macro "__DATE__" might prevent reproducible builds [-Werror = date-time]
/tmp/drv.wlan.canon/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042/core/rtw_debug.c:71:64: error: macro "__TIME__" might prevent reproducible builds [-Werror = date-time]
Cc1: some warnings being treated as errors
Scripts / Makefile.build: 258: runtime recipe error for the target "/tmp/drv.wlan.canon/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042/core/rtw_debug.o"
Make [2]: *** [/tmp/drv.wlan.canon/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042/core/rtw_debug.o] Error 1
Makefile: 1420: failed to execute the recipe for the target "_module_ / tmp / drv.wlan.canon / rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042"
Make [1]: *** [_module_ / tmp / drv.wlan.canon / rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042] Error 2
Make [1]: exit the directory "/usr/src/linux-headers-4.4.0-79-generic"
Makefile: 1686: failed to execute the recipe for the purpose of the "modules"
Make: *** [modules] Error 2
Root @ KB4051: /tmp/drv.wlan.canon/rtl8192EU_linux_v4.4.1_17696.20160509_BTCOEX20160412-0042#
系统盘
总线 003 设备 007:ID 0bda:0811 Realtek Semiconductor Corp.
怎么修 ?
我是初学者,回复的时候请提供详细一点的信息。
答案1
此驱动程序需要修补。我的 PPA 中有一个带补丁的 rtl8192EU,但它没有您的设备。我现在无法添加它。
你可以自己修复它。
在驱动程序目录中打开Makefile
并添加
EXTRA_CFLAGS += -Wno-date-time
在现有EXTRA_CFLAGS
行之后。这将解决构建问题。