Closed
Description
Package Name
swanmon
Maintainer
OpenWrt Version
snapshot and OpenWrt 24.10
OpenWrt Target/Subtarget
mvebu/cortex-a9
Steps to Reproduce
- Enable CONFIG_BUILD_NLS
- Try to compile package
Actual Behaviour
It fails:
FAILED: swanmon
: && /Volumes/OpenWrt/omnia-hbd/build/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-13.3.0_musl_eabi/bin/arm-openwrt-linux-muslgnueabi-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -mfloat-abi=hard -fmacro-prefix-map=/Volumes/OpenWrt/omnia-hbd/build/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/swanmon-0.1=swanmon-0.1 -Wformat -Werror=format-security -DPIC -fpic -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro -DNDEBUG -L/Volumes/OpenWrt/omnia-hbd/build/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-13.3.0_musl_eabi/usr/lib -L/Volumes/OpenWrt/omnia-hbd/build/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-13.3.0_musl_eabi/lib -fuse-ld=bfd -DPIC -fpic -specs=/Volumes/OpenWrt/omnia-hbd/build/include/hardened-ld-pie.specs -znow -zrelro CMakeFiles/swanmon.dir/main.c.o CMakeFiles/swanmon.dir/query.c.o CMakeFiles/swanmon.dir/format.c.o -o swanmon -ldavici -lglib-2.0 -lintl -ljson-c && :
/Volumes/OpenWrt/omnia-hbd/build/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-13.3.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/13.3.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld.bfd: cannot find -lintl: No such file or directory
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
make[2]: *** [Makefile:47: /Volumes/OpenWrt/omnia-hbd/build/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/swanmon-0.1/.built] Error 1
It helped to add:
include $(INCLUDE_DIR)/nls.mk
into the Makefile
Confirmation Checklist
- The package is maintained in this repository.
- I understand that issues related to the base OpenWrt repository or LuCI repository will be closed.
- I am reporting an issue for OpenWrt, not an unsupported fork.