Hi
i am currently working on upgrading from Openwrt version 19.07 to 22.03 and have some custom software which need to be build in to the image. i am of cause getting a build error, i wouldn't expect anything else, but i am having a hard time see what the problem is base on the error message.
The 22.03 version builds fine without the custom software.
i was hoping someone could give me a little pointer of where to look.
quectel_common.cpp: In function 'int get_product_model(char**)':
quectel_common.cpp:669:50: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 0 and 254 [-Wformat-truncation=]
669 | snprintf(subdir, sizeof(subdir), "%s/%s/idVendor", dir, ent->d_name);
| ^~
quectel_common.cpp:669:21: note: 'snprintf' output between 11 and 520 bytes into a destination of size 255
669 | snprintf(subdir, sizeof(subdir), "%s/%s/idVendor", dir, ent->d_name);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
quectel_common.cpp:684:50: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 0 and 254 [-Wformat-truncation=]
684 | snprintf(subdir, sizeof(subdir), "%s/%s/product", dir, ent->d_name);
| ^~
quectel_common.cpp:684:21: note: 'snprintf' output between 10 and 519 bytes into a destination of size 255
684 | snprintf(subdir, sizeof(subdir), "%s/%s/product", dir, ent->d_name);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:76: all] Error 1
make[4]: Leaving directory '/home/aes/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/miwire-2019-02-12/tools'
make[3]: *** [Makefile:247: /home/aes/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/miwire-2019-02-12/.built] Error 2
make[3]: Leaving directory '/home/aes/openwrt/package/utils/roudem'
time: package/utils/roudem/compile#2.84#0.50#3.38
ERROR: package/utils/roudem failed to build.
make[2]: *** [package/Makefile:116: package/utils/roudem/compile] Error 1
make[2]: Leaving directory '/home/aes/openwrt'
make[1]: *** [package/Makefile:110: /home/aes/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/aes/openwrt'
make: *** [/home/aes/openwrt/include/toplevel.mk:231: world] Error 2