Manjaro Linux 乐于简单

编译无线网卡rtl8822bu错误2

论坛 新手初步 编译无线网卡rtl8822bu错误2

该主题包含 0 个回复,有 1 个参与者,并且由  可和 于 1 月 1 周 前 最后一次更新。

  • 可和 回复

    我买了个无线网卡 ,windows免驱,但在linux需要编译无线网卡驱动,结果我弄了半天,它编译不了,错误2。。。不管在majaro的应用商店全自动编译还是手动编译,就是编译不上。。。。我不知道怎么办了。。。。
    手动编译:
       /run/me/w/文/rtl8822bu-master  make  ✔
    make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.49-1-MANJARO/build M=/run/media/wzy/文档/rtl8822bu-master modules
    make[1]: 进入目录“/usr/lib/modules/5.15.49-1-MANJARO/build”
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_cmd.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_security.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_debug.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_io.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_ioctl_query.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_ioctl_set.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_ieee80211.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_mlme.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_mlme_ext.o
    /run/media/wzy/文档/rtl8822bu-master/core/rtw_mlme_ext.c: 在函数‘mgt_dispatcher’中:
    /run/media/wzy/文档/rtl8822bu-master/core/rtw_mlme_ext.c:1634:20: 警告:this statement may fall through [-Wimplicit-fallthrough=]
    1634 | if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
    | ^
    /run/media/wzy/文档/rtl8822bu-master/core/rtw_mlme_ext.c:1639:9: 附注:here
    1639 | case WIFI_ASSOCREQ:
    | ^~~~
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_mi.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_wlan_util.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_vht.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_pwrctrl.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_rf.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_recv.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_sta_mgt.o
    /run/media/wzy/文档/rtl8822bu-master/core/rtw_sta_mgt.c: 在函数‘rtw_mfree_stainfo’中:
    /run/media/wzy/文档/rtl8822bu-master/core/rtw_sta_mgt.c:343:25: 警告:the comparison will always evaluate as ‘true’ for the address of ‘lock’ will never be NULL [-Waddress]
    343 | if (&psta->lock != NULL)
    | ^~
    In file included from /run/media/wzy/文档/rtl8822bu-master/include/drv_types.h:105,
    from /run/media/wzy/文档/rtl8822bu-master/core/rtw_sta_mgt.c:17:
    /run/media/wzy/文档/rtl8822bu-master/include/sta_info.h:222:17: 附注:‘lock’在此声明
    222 | _lock lock;
    | ^~~~
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_ap.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_xmit.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_p2p.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_tdls.o
    CC [M] /run/media/wzy/文档/rtl8822bu-master/core/rtw_br_ext.o
    /run/media/wzy/文档/rtl8822bu-master/core/rtw_br_ext.c:20:18: 致命错误:net/ipx.h:没有那个文件或目录
    20 | #include <net/ipx.h>
    | ^~~~~~~~~~~
    编译中断。
    make[2]: *** [scripts/Makefile.build:288:/run/media/wzy/文档/rtl8822bu-master/core/rtw_br_ext.o] 错误 1
    make[1]: *** [Makefile:1871:/run/media/wzy/文档/rtl8822bu-master] 错误 2
    make[1]: 离开目录“/usr/lib/modules/5.15.49-1-MANJARO/build”
    make: *** [Makefile:462:modules] 错误 2
    自动编译:

    正在准备...
    正在克隆 rtl8822bu-git 构建文件...
    生成 rtl8822bu-git 信息...
    正在检查 rtl8822bu-git 依赖关系...
    正在解决依赖关系...
    正在检查内部冲突...

    正在构建 rtl8822bu-git...
    ==> 正在创建软件包:rtl8822bu-git r80.e27b9cd-1 (2022年06月27日 星期一 15时56分51秒)
    ==> 正在检查运行时依赖关系...
    ==> 正在检查编译时依赖关系
    ==> 获取源代码...
    -> 正在升级 rtl8822bu git 仓库...
    正在获取 origin
    ==> 正在验证 source 文件,使用sha256sums...
    rtl8822bu ... 已跳过
    ==> 正在删除现存的 $srcdir/ 目录...
    ==> 正在释放源码...
    -> 正在建立 rtl8822bu git 仓库的拷贝...
    正克隆到 ‘rtl8822bu’...
    完成。
    ==> 正在开始 pkgver()...
    ==> 正在删除现存的 $pkgdir/ 目录...
    ==> 正在开始 build()...
    make ARCH=”x86_64″ CROSS_COMPILE=”” -C /lib/modules/5.15.49-1-MANJARO/build M=”/var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu” modules
    make[1]: 进入目录“/usr/lib/modules/5.15.49-1-MANJARO/build”
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_cmd.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_security.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_debug.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_io.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_ioctl_query.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_ioctl_set.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_ieee80211.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_mlme.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_mlme_ext.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_mi.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_wlan_util.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_vht.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_pwrctrl.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_rf.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_recv.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_sta_mgt.o
    /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_sta_mgt.c: 在函数‘rtw_mfree_stainfo’中:
    /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_sta_mgt.c:379:25: 警告:the comparison will always evaluate as ‘true’ for the address of ‘lock’ will never be NULL [-Waddress]
    379 | if (&psta->lock != NULL)
    | ^~
    In file included from /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/include/drv_types.h:107,
    from /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_sta_mgt.c:17:
    /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/include/sta_info.h:252:17: 附注:‘lock’在此声明
    252 | _lock lock;
    | ^~~~
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_ap.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/mesh/rtw_mesh.o
    /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_mlme_ext.c: 在函数‘mgt_dispatcher’中:
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/mesh/rtw_mesh_pathtbl.o
    /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_mlme_ext.c:1828:38: 警告:this statement may fall through [-Wimplicit-fallthrough=]
    1828 | ptable->func = &OnAuthClient;
    | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
    /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_mlme_ext.c:1831:9: 附注:here
    1831 | case WIFI_ASSOCREQ:
    | ^~~~
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/mesh/rtw_mesh_hwmp.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_xmit.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_p2p.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_rson.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_tdls.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_br_ext.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_iol.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_sreset.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_btcoex_wifionly.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_btcoex.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_beamforming.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_odm.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_rm.o
    CC [M] /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_rm_fsm.o
    /var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_br_ext.c:20:18: 致命错误:net/ipx.h:没有那个文件或目录
    20 | #include <net/ipx.h>
    | ^~~~~~~~~~~
    编译中断。
    make[2]: *** [scripts/Makefile.build:288:/var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu/core/rtw_br_ext.o] 错误 1
    make[2]: *** 正在等待未完成的任务....
    make[1]: *** [Makefile:1871:/var/tmp/pamac-build-wzy/rtl8822bu-git/src/rtl8822bu] 错误 2
    make[1]: 离开目录“/usr/lib/modules/5.15.49-1-MANJARO/build”
    make: *** [Makefile:2001:modules] 错误 2
    ==> 错误: 在 build() 中发生一个错误。
    正在放弃...

回复:编译无线网卡rtl8822bu错误2
您的信息:


«-必填


«-必填,不公开


«-可以推广您的网站

六十 七 − = 六十 三