openwrt armvirt aarch64 hostapd编译失败
这篇具有很好参考价值的文章主要介绍了openwrt armvirt aarch64 hostapd编译失败。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。
最近编译了下openwrt自用,发现了几个问题,尝试解决后记录下,便于自己以后不记得了去排查问题
错误日志:
2024-02-06T15:26:14.9286477Z make[3] -C package/network/services/hostapd compile 2024-02-06T15:26:40.8441720Z ERROR: package/network/services/hostapd failed to build (build variant: supplicant-full-internal). 2024-02-06T15:26:40.8494029Z make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on 2024-02-06T15:26:40.8495489Z make: *** [/workdir/openwrt/include/toplevel.mk:231: world] Error 1 |
2024-02-06T15:27:43.7391607Z /workdir/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: /workdir/openwrt/build_dir/target-aarch64_generic_musl/hostapd-supplicant-full-internal/hostapd-2022-07-29-b704dc72/build/wpa_supplicant/src/ap/acs.o: in function `acs_request_scan': 2024-02-06T15:27:43.7393406Z acs.c:(.text+0x488): undefined reference to `hostapd_driver_scan' 2024-02-06T15:27:43.7394962Z /workdir/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: acs.c:(.text+0x494): undefined reference to `hostapd_driver_scan' 2024-02-06T15:27:43.7397556Z /workdir/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: /workdir/openwrt/build_dir/target-aarch64_generic_musl/hostapd-supplicant-full-internal/hostapd-2022-07-29-b704dc72/build/wpa_supplicant/src/ap/acs.o: in function `acs_scan_complete': 2024-02-06T15:27:43.7399270Z acs.c:(.text+0x564): undefined reference to `hostapd_disable_iface' 2024-02-06T15:27:43.7400611Z /workdir/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: acs.c:(.text+0x570): undefined reference to `hostapd_disable_iface' 2024-02-06T15:27:43.7403128Z /workdir/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: /workdir/openwrt/build_dir/target-aarch64_generic_musl/hostapd-supplicant-full-internal/hostapd-2022-07-29-b704dc72/build/wpa_supplicant/src/ap/acs.o: in function `acs_init': 2024-02-06T15:27:43.7404785Z acs.c:(.text+0x1198): undefined reference to `hostapd_drv_do_acs' 2024-02-06T15:27:43.7406100Z /workdir/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: acs.c:(.text+0x119c): undefined reference to `hostapd_drv_do_acs' 2024-02-06T15:27:43.7408069Z /workdir/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: acs.c:(.text+0x11f0): undefined reference to `hostapd_set_state' 2024-02-06T15:27:43.7410002Z /workdir/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: acs.c:(.text+0x11fc): undefined reference to `hostapd_set_state' 2024-02-06T15:27:43.7440181Z collect2: error: ld returned 1 exit status 2024-02-06T15:27:43.7442584Z make[4]: *** [Makefile:2037: wpa_supplicant] Error 1 2024-02-06T15:27:43.7443898Z make[4]: Leaving directory '/workdir/openwrt/build_dir/target-aarch64_generic_musl/hostapd-supplicant-full-internal/hostapd-2022-07-29-b704dc72/wpa_supplicant' 2024-02-06T15:27:43.7446119Z make[3]: *** [Makefile:790: /workdir/openwrt/build_dir/target-aarch64_generic_musl/hostapd-supplicant-full-internal/hostapd-2022-07-29-b704dc72/.built] Error 2 2024-02-06T15:27:43.7448280Z make[3]: Leaving directory '/workdir/openwrt/package/network/services/hostapd' 2024-02-06T15:27:43.7449297Z time: package/network/services/hostapd/supplicant-full-internal/compile#0.25#0.07#0.31 2024-02-06T15:27:43.7454865Z ERROR: package/network/services/hostapd failed to build (build variant: supplicant-full-internal). 2024-02-06T15:27:43.7456408Z make[2]: *** [package/Makefile:119: package/network/services/hostapd/compile] Error 1 2024-02-06T15:27:43.7461555Z make[2]: Leaving directory '/workdir/openwrt' 2024-02-06T15:27:43.7483362Z make[1]: *** [package/Makefile:110: /workdir/openwrt/staging_dir/target-aarch64_generic_musl/stamp/.package_compile] Error 2 2024-02-06T15:27:43.7488295Z make[1]: Leaving directory '/workdir/openwrt' 2024-02-06T15:27:43.7509836Z make: *** [/workdir/openwrt/include/toplevel.mk:231: world] Error 2 2024-02-06T15:27:43.7634326Z ##[error]Process completed with exit code 2. |
临时解决:
echo "TODO 处理hostapd wpa_supplicant-full编译报错" && cd /workdir/openwrt
sed -i 's/#CONFIG_AP=y/CONFIG_AP=y/' package/network/services/hostapd/files/wpa_supplicant-full.config文章来源:https://www.toymoban.com/news/detail-830235.html
参考: 使能无线相关组件编译报错 · Issue #11193 · coolsnowwolf/lede · GitHub文章来源地址https://www.toymoban.com/news/detail-830235.html
到了这里,关于openwrt armvirt aarch64 hostapd编译失败的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!