lede icon indicating copy to clipboard operation
lede copied to clipboard

hostapd:编译报错

Open ywt114 opened this issue 2 years ago • 2 comments

反馈bug/问题模板,提建议请删除

1.关于你要提交的问题

Q:是否搜索了issue (使用 "x" 选择)

  • [x] 没有类似的issue

2. 详细叙述

(1) 具体问题

A:编译失败,错误提示:ERROR: package/network/services/hostapd failed to build (build variant: supplicant-full-internal).

(2) 路由器型号和固件版本

A:x86 (4种内核版本均失败)

(3) 详细日志

A:2023-10-09T12:05:43.9306191Z /home/runner/work/test/test/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/11.3.0/../../../../x86_64-openwrt-linux-musl/bin/ld: /home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/hostapd-supplicant-full-internal/hostapd-2022-07-29-b704dc72/build/wpa_supplicant/src/ap/acs.o: in function acs_scan_complete': 2023-10-09T12:05:43.9307088Z acs.c:(.text+0xe55): undefined reference to hostapd_disable_iface' 2023-10-09T12:05:43.9308362Z /home/runner/work/test/test/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/11.3.0/../../../../x86_64-openwrt-linux-musl/bin/ld: /home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/hostapd-supplicant-full-internal/hostapd-2022-07-29-b704dc72/build/wpa_supplicant/src/ap/acs.o: in function acs_init': 2023-10-09T12:05:43.9309352Z acs.c:(.text+0xed1): undefined reference to hostapd_drv_do_acs' 2023-10-09T12:05:43.9310313Z /home/runner/work/test/test/openwrt/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/11.3.0/../../../../x86_64-openwrt-linux-musl/bin/ld: acs.c:(.text+0xf1c): undefined reference to `hostapd_set_state' 2023-10-09T12:05:43.9368046Z collect2: error: ld returned 1 exit status 2023-10-09T12:05:43.9371865Z make[4]: *** [Makefile:2037: wpa_supplicant] Error 1 2023-10-09T12:05:43.9382087Z make[3]: *** [Makefile:790: /home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/hostapd-supplicant-full-internal/hostapd-2022-07-29-b704dc72/.built] Error 2 2023-10-09T12:05:43.9383003Z make[4]: Leaving directory '/home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/hostapd-supplicant-full-internal/hostapd-2022-07-29-b704dc72/wpa_supplicant' 2023-10-09T12:05:43.9385904Z make[3]: Leaving directory '/home/runner/work/test/test/openwrt/package/network/services/hostapd' 2023-10-09T12:05:43.9386566Z time: package/network/services/hostapd/supplicant-full-internal/compile#29.46#2.28#31.21 2023-10-09T12:05:43.9387254Z ERROR: package/network/services/hostapd failed to build (build variant: supplicant-full-internal). 2023-10-09T12:05:43.9391523Z make[2]: *** [package/Makefile:116: package/network/services/hostapd/compile] Error 1 2023-10-09T12:05:43.9399143Z make[2]: Leaving directory '/home/runner/work/test/test/openwrt' 2023-10-09T12:05:43.9410937Z make[1]: *** [package/Makefile:110: /home/runner/work/test/test/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 2023-10-09T12:05:43.9411534Z make[1]: Leaving directory '/home/runner/work/test/test/openwrt' 2023-10-09T12:05:43.9416525Z make: *** [/home/runner/work/test/test/openwrt/include/toplevel.mk:231: world] Error 2 2023-10-09T12:05:43.9516533Z ##[error]Process completed with exit code 2.

ywt114 avatar Oct 09 '23 13:10 ywt114

image

yanxin152133 avatar Oct 10 '23 03:10 yanxin152133

Same here

realJustinLee avatar Dec 14 '23 01:12 realJustinLee

https://github.com/coolsnowwolf/lede/issues/11193 参考这里的办法,设置CONFIG_AP=y解决了。

panzhc avatar Apr 11 '24 05:04 panzhc