OpenWrt/LEDE Project

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Matthew Tracy - 02.01.2021
Last edited by Petr Štetiar - 11.01.2021

FS#3553 - hostapd-wolfssl fails to build after bump to wolfssl 4.6.0

SHELL= flock /home/matt/openwrt/tmp/.wolfssl-4.6.0-stable.tar.gz.flock -c '     /home/matt/openwrt/scripts/download.pl "/home/matt/openwrt/dl" "wolfssl-4.6.0-stable.tar.gz" "053aefbb02d0b06b27c5e2df6875b4b587318755b7db9d6aa8d72206b310a848" "" "https://github.com/wolfSSL/wolfssl/archive/v4.6.0-stable"    '
mkdir -p /home/matt/openwrt/staging_dir/target-mips_24kc_musl/root-ath79/stamp
echo '24' | cmp -s - /home/matt/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/libwolfssl.version || echo '24' > /home/matt/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/libwolfssl.version
SHELL= flock /home/matt/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/matt/openwrt/build_dir/target-mips_24kc_musl/wolfssl-4.6.0-stable/.pkgdir/libwolfssl/. /home/matt/openwrt/staging_dir/target-mips_24kc_musl/root-ath79/'
touch /home/matt/openwrt/staging_dir/target-mips_24kc_musl/root-ath79/stamp/.libwolfssl_installed
echo "libwolfssl" >> /home/matt/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/wolfssl.default.install
make[3]: Leaving directory '/home/matt/openwrt/package/libs/wolfssl'
time: package/libs/wolfssl/compile#0.22#0.03#0.23
make[3]: Entering directory '/home/matt/openwrt/package/network/services/hostapd'
mkdir -p /home/matt/openwrt/dl
SHELL= flock /home/matt/openwrt/tmp/.hostapd-2020-06-08-5a8b3662.tar.xz.flock -c '      /home/matt/openwrt/scripts/download.pl "/home/matt/openwrt/dl" "hostapd-2020-06-08-5a8b3662.tar.xz" "1b2a4947034142587a3f81eac2ea27dd64650e77f8943d973623b47533be2393" "" || (          echo "Checking out files from the git repository..."; mkdir -p /home/matt/openwrt/tmp/dl && cd /home/matt/openwrt/tmp/dl && rm -rf hostapd-2020-06-08-5a8b3662 && [ \! -d hostapd-2020-06-08-5a8b3662 ] && git clone  http://w1.fi/hostap.git hostapd-2020-06-08-5a8b3662 && (cd hostapd-2020-06-08-5a8b3662 && git checkout 5a8b366233f5585e68a4ffbb604fbb4a848eb325 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd hostapd-2020-06-08-5a8b3662 && git log -1 --format='\''@%ct'\''` && rm -rf hostapd-2020-06-08-5a8b3662/.git &&        tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c hostapd-2020-06-08-5a8b3662 |   xz -zc -7e > /home/matt/openwrt/tmp/dl/hostapd-2020-06-08-5a8b3662.tar.xz && mv /home/matt/openwrt/tmp/dl/hostapd-2020-06-08-5a8b3662.tar.xz /home/matt/openwrt/dl/ && rm -rf hostapd-2020-06-08-5a8b3662;  )    '
rm -f /home/matt/openwrt/build_dir/target-mips_24kc_musl/hostapd-full-wolfssl/hostapd-2020-06-08-5a8b3662/.built
touch /home/matt/openwrt/build_dir/target-mips_24kc_musl/hostapd-full-wolfssl/hostapd-2020-06-08-5a8b3662/.built_check
CFLAGS="-I/home/matt/openwrt/staging_dir/target-mips_24kc_musl/usr/include/libnl-tiny -I/home/matt/openwrt/build_dir/target-mips_24kc_musl/hostapd-full-wolfssl/hostapd-2020-06-08-5a8b3662/src/crypto -I/home/matt/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/usr/include -I/home/matt/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/include/fortify -I/home/matt/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/include -DCONFIG_LIBNL20 -D_GNU_SOURCE  -O2 -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -fmacro-prefix-map=/home/matt/openwrt/build_dir/target-mips_24kc_musl/hostapd-full-wolfssl/hostapd-2020-06-08-5a8b3662=hostapd-2020-06-08-5a8b3662 -Wformat -Werror=format-security -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections -flto" make  -C /home/matt/openwrt/build_dir/target-mips_24kc_musl/hostapd-full-wolfssl/hostapd-2020-06-08-5a8b3662/hostapd AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -O2 -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -fmacro-prefix-map=/home/matt/openwrt/build_dir/target-mips_24kc_musl/hostapd-full-wolfssl/hostapd-2020-06-08-5a8b3662=hostapd-2020-06-08-5a8b3662 -Wformat -Werror=format-security -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections -flto" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CONFIG_ACS=y CONFIG_DRIVER_NL80211=y CONFIG_IEEE80211N=y CONFIG_IEEE80211AC=y CONFIG_IEEE80211AX= CONFIG_DRIVER_WEXT=  CONFIG_TLS=wolfssl CONFIG_SAE=y CONFIG_OWE=y CONFIG_SUITEB192=y CONFIG_AP=y CONFIG_MESH=y CONFIG_WPS_NFC=1 LIBS="-L/home/matt/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/usr/lib -L/home/matt/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/lib -fpic -specs=/home/matt/openwrt/include/hardened-ld-pie.specs -znow -zrelro -lwolfssl -Wl,--gc-sections -flto=jobserver -fuse-linker-plugin -lubox -lubus -lm -lnl-tiny" LIBS_c="" AR="mips-openwrt-linux-musl-gcc-ar" BCHECK=  hostapd hostapd_cli
make[4]: Entering directory '/home/matt/openwrt/build_dir/target-mips_24kc_musl/hostapd-full-wolfssl/hostapd-2020-06-08-5a8b3662/hostapd'
/home/matt/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.4.0_musl/lib/gcc/mips-openwrt-linux-musl/8.4.0/../../../../mips-openwrt-linux-musl/bin/ld: /home/matt/openwrt/tmp/ccFDnFcF.ltrans5.ltrans.o: in function `eap_fast_init.lto_priv.777':
<artificial>:(.text+0x329c): undefined reference to `wolfSSL_set_session_secret_cb'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:1335: hostapd] Error 1
make[4]: Leaving directory '/home/matt/openwrt/build_dir/target-mips_24kc_musl/hostapd-full-wolfssl/hostapd-2020-06-08-5a8b3662/hostapd'
make[3]: *** [Makefile:679: /home/matt/openwrt/build_dir/target-mips_24kc_musl/hostapd-full-wolfssl/hostapd-2020-06-08-5a8b3662/.built] Error 2
make[3]: Leaving directory '/home/matt/openwrt/package/network/services/hostapd'
time: package/network/services/hostapd/full-wolfssl/compile#19.31#0.42#19.71
    ERROR: package/network/services/hostapd failed to build (build variant: full-wolfssl).
make[2]: *** [package/Makefile:114: package/network/services/hostapd/compile] Error 1
make[2]: Leaving directory '/home/matt/openwrt'
make[1]: *** [package/Makefile:108: /home/matt/openwrt/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/matt/openwrt'
make: *** [/home/matt/openwrt/include/toplevel.mk:242: world] Error 2
Closed by  Petr ┼átetiar
11.01.2021 08:29
Reason for closing:  Fixed
Additional comments about closing:  

Requested.

Borromini commented on 02.01.2021 13:37

What target is this on? Ath79?

Borromini commented on 02.01.2021 13:55
Matthew Tracy commented on 09.01.2021 18:24

Confirmed, the above commit does indeed resolve this issue.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing