CTF_论剑场-web26

本文通过实战案例,详细解析了代码审计的过程。重点介绍了如何通过对代码进行注释和分析,找到关键输入点,利用特定的数字和字符串输入来获取隐藏的Flag,适合初学者了解代码审计的基本流程。

首先打开题目链接是一个代码审计,
在这里插入图片描述
咱把代码拉出来加些注释
在这里插入图片描述
这样看起来就很明了了,我们只需要在num传入数字str传入字符串就能得到flag

在这里插入图片描述

1008: Collecting package info: package/feeds/packages/libgpg-error 行 3001: checking how gcc reports undeclared, standard C functions... error 行 3265: checking whether pthread_sigmask returns error numbers... yes 行 7203: Applying ./patches/040-Fix-error-handling-with-git-style-patches.patch using plaintext: 行 9520: checking whether pthread_sigmask returns error numbers... yes 行 31773: CC error.c 行 32559: configure.ac:3: error: Autoconf version 2.71 or higher is required 行 32562: aclocal.real: error: echo failed with exit status: 63 行 33489: checking for C compiler option to allow warnings... -Wno-error 行 33490: checking for C++ compiler option to allow warnings... -Wno-error 行 33782: checking whether pthread_sigmask returns error numbers... yes 行 35552: on -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -MT libgnulib_a-xstrtol-error.o -MD -MP -MF .deps/libgnulib_a-xstrtol-error.Tpo -c -o libgnulib_a-xstrtol-error.o `test -f 'xstrtol-error.c' || echo './'`xstrtol-error.c 行 35552: ign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -MT libgnulib_a-xstrtol-error.o -MD -MP -MF .deps/libgnulib_a-xstrtol-error.Tpo -c -o libgnulib_a-xstrtol-error.o `test -f 'xstrtol-error.c' || echo './'`xstrtol-error.c 行 35552: -unsuffixed-float-constants -O2 -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -MT libgnulib_a-xstrtol-error.o -MD -MP -MF .deps/libgnulib_a-xstrtol-error.Tpo -c -o libgnulib_a-xstrtol-error.o `test -f 'xstrtol-error.c' || echo './'`xstrtol-error.c 行 35552: s -O2 -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -MT libgnulib_a-xstrtol-error.o -MD -MP -MF .deps/libgnulib_a-xstrtol-error.Tpo -c -o libgnulib_a-xstrtol-error.o `test -f 'xstrtol-error.c' || echo './'`xstrtol-error.c 行 35552: ect/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -MT libgnulib_a-xstrtol-error.o -MD -MP -MF .deps/libgnulib_a-xstrtol-error.Tpo -c -o libgnulib_a-xstrtol-error.o `test -f 'xstrtol-error.c' || echo './'`xstrtol-error.c 行 35593: mv -f .deps/libgnulib_a-xstrtol-error.Tpo .deps/libgnulib_a-xstrtol-error.Po 行 35593: mv -f .deps/libgnulib_a-xstrtol-error.Tpo .deps/libgnulib_a-xstrtol-error.Po 行 35614: gnulib_a-version-etc.o libgnulib_a-version-etc-fsf.o libgnulib_a-wctype-h.o libgnulib_a-xmalloc.o libgnulib_a-xalloc-die.o libgnulib_a-xgetcwd.o libgnulib_a-xsize.o libgnulib_a-xstrtod.o libgnulib_a-xstrtol.o libgnulib_a-xstrtoul.o libgnulib_a-xstrtol-error.o libgnulib_a-xstrtoumax.o libgnulib_a-yesno.o asnprintf.o mktime.o printf-args.o printf-parse.o strerror_r.o vasnprintf.o 行 36027: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36030: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36033: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36036: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36039: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36042: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36045: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36048: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36051: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36054: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36057: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36060: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36063: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36066: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36069: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36072: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36075: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36078: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36081: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36084: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36087: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36090: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -DIN_FINDUTILS_GNULIB_TESTS=1 -I. -I. -I.. -I./.. -I../gl/lib -I./../gl/lib -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/host/include -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36095: gcc -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 36096: gcc -Wno-error -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -Wno-float-conversion -Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits -Wno-unsuffixed-float-constants -O2 -I/home/ ... 行 39183: 399 | throw Exception("SetCoderProperties() error"); 行 39187: 416 | throw Exception("Write error while encoding"); 行 39194: 440 | throw Exception("Read error"); 行 39197: 442 | throw Exception("Read error"); 行 39200: 444 | throw Exception("SetDecoderProperties() error"); 行 39203: 451 | throw Exception("Read error"); 行 39206: 453 | throw Exception("Read error"); 行 39209: 459 | throw Exception("Decoder error"); 行 41201: Applying /home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/target/linux/generic/backport-5.10/706-net-phy-at803x-fix-probe-error-if-copper-page-is-sel.patch using plaintext: 行 41340: Applying /home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/target/linux/generic/backport-5.10/733-v5.15-0001-net-bgmac-bcma-handle-deferred-probe-error-due-to-ma.patch using plaintext: 行 41365: Applying /home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/target/linux/generic/backport-5.10/735-v5.14-05-net-dsa-qca8k-handle-error-with-qca8k_read-operation.patch using plaintext: 行 41368: Applying /home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/target/linux/generic/backport-5.10/735-v5.14-06-net-dsa-qca8k-handle-error-with-qca8k_write-operatio.patch using plaintext: 行 41371: Applying /home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/target/linux/generic/backport-5.10/735-v5.14-07-net-dsa-qca8k-handle-error-with-qca8k_rmw-operation.patch using plaintext: 行 41374: Applying /home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/target/linux/generic/backport-5.10/735-v5.14-08-net-dsa-qca8k-handle-error-from-qca8k_busy_wait.patch using plaintext: 行 41433: Applying /home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/target/linux/generic/backport-5.10/736-v5.14-net-dsa-qca8k-fix-missing-unlock-on-error-in-qca8k-vlan.patch using plaintext: 行 43079: HDRINST usr/include/linux/can/error.h 行 44816: [0/15] Building C object CMakeFiles/nl-tiny.dir/error.c.o 行 44827: [1/15] Building C object CMakeFiles/nl-tiny.dir/error.c.o 行 53012: [0/14] Building C object CMakeFiles/jansson.dir/src/error.c.o 行 53023: [1/14] Building C object CMakeFiles/jansson.dir/src/error.c.o 行 53038: inlined from 'jsonp_error_set_source' at /home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/build_dir/target-arm-mix510-linux_musl/jansson-2.13.1/src/error.c:17:6: 行 53039: /home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/build_dir/target-arm-mix510-linux_musl/jansson-2.13.1/src/error.c:25:9: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 行 53040: 25 | strncpy(error->source, source, length + 1); 行 53042: /home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/build_dir/target-arm-mix510-linux_musl/jansson-2.13.1/src/error.c: In function 'jsonp_error_set_source': 行 53043: /home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/build_dir/target-arm-mix510-linux_musl/jansson-2.13.1/src/error.c:23:14: note: length computed here 行 54868: [13/317] Building C object library/CMakeFiles/mbedcrypto_static.dir/error.c.o 行 54929: [44/317] Building C object library/CMakeFiles/mbedcrypto_static.dir/error.c.o 行 55058: [108/317] Building C object library/CMakeFiles/mbedcrypto.dir/error.c.o 行 55113: [136/317] Building C object library/CMakeFiles/mbedcrypto.dir/error.c.o 行 55483: -- Installing: /home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/build_dir/target-arm-mix510-linux_musl/mbedtls-2.28.5/ipkg-install/usr/include/mbedtls/error.h 行 58608: 98: Invalid property in CSS3.0: --error-color-high-rgb 行 58609: 99: Invalid property in CSS3.0: --error-color-high 行 58610: 100: Invalid property in CSS3.0: --error-color-medium 行 58611: 101: Invalid property in CSS3.0: --error-color-low 行 58612: 102: Invalid property in CSS3.0: --on-error-color 行 58636: 135: Invalid property in CSS3.0: --error-color-high-rgb 行 58637: 136: Invalid property in CSS3.0: --error-color-medium 行 58638: 137: Invalid property in CSS3.0: --error-color-low 行 58819: 98: Invalid property in CSS3.0: --error-color-high-rgb 行 58820: 99: Invalid property in CSS3.0: --error-color-high 行 58821: 100: Invalid property in CSS3.0: --error-color-medium 行 58822: 101: Invalid property in CSS3.0: --error-color-low 行 58823: 102: Invalid property in CSS3.0: --on-error-color 行 58847: 135: Invalid property in CSS3.0: --error-color-high-rgb 行 58848: 136: Invalid property in CSS3.0: --error-color-medium 行 58849: 137: Invalid property in CSS3.0: --error-color-low 行 59581: Applying ./patches/510-e_devcrypto-ignore-error-when-closing-session.patch using plaintext: 行 66479: /open_source/local/openwrt/openwrt/staging_dir/target-arm-mix510-linux_musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_la-ctf-error.lo -MD -MP -MF .deps/libctf_la-ctf-error.Tpo -c -o libctf_la-ctf-error.lo `test -f 'ctf-error.c' || echo './'`ctf-error.c 行 66479: g_dir/target-arm-mix510-linux_musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_la-ctf-error.lo -MD -MP -MF .deps/libctf_la-ctf-error.Tpo -c -o libctf_la-ctf-error.lo `test -f 'ctf-error.c' || echo './'`ctf-error.c 行 66479: musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_la-ctf-error.lo -MD -MP -MF .deps/libctf_la-ctf-error.Tpo -c -o libctf_la-ctf-error.lo `test -f 'ctf-error.c' || echo './'`ctf-error.c 行 66479: ub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_la-ctf-error.lo -MD -MP -MF .deps/libctf_la-ctf-error.Tpo -c -o libctf_la-ctf-error.lo `test -f 'ctf-error.c' || echo './'`ctf-error.c 行 66479: r=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_la-ctf-error.lo -MD -MP -MF .deps/libctf_la-ctf-error.Tpo -c -o libctf_la-ctf-error.lo `test -f 'ctf-error.c' || echo './'`ctf-error.c 行 66507: lease/open_source/local/openwrt/openwrt/staging_dir/target-arm-mix510-linux_musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_la-ctf-error.lo -MD -MP -MF .deps/libctf_la-ctf-error.Tpo -c ctf-error.c -fPIC -DPIC -o .libs/libctf_la-ctf-error.o 行 66507: taging_dir/target-arm-mix510-linux_musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_la-ctf-error.lo -MD -MP -MF .deps/libctf_la-ctf-error.Tpo -c ctf-error.c -fPIC -DPIC -o .libs/libctf_la-ctf-error.o 行 66507: -arm-mix510-linux_musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_la-ctf-error.lo -MD -MP -MF .deps/libctf_la-ctf-error.Tpo -c ctf-error.c -fPIC -DPIC -o .libs/libctf_la-ctf-error.o 行 66507: include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_la-ctf-error.lo -MD -MP -MF .deps/libctf_la-ctf-error.Tpo -c ctf-error.c -fPIC -DPIC -o .libs/libctf_la-ctf-error.o 行 66510: source/local/openwrt/openwrt/staging_dir/target-arm-mix510-linux_musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_nobfd_la-ctf-error.lo -MD -MP -MF .deps/libctf_nobfd_la-ctf-error.Tpo -c -o libctf_nobfd_la-ctf-error.lo `test -f 'ctf-error.c' || echo './'`ctf-error.c 行 66510: -arm-mix510-linux_musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_nobfd_la-ctf-error.lo -MD -MP -MF .deps/libctf_nobfd_la-ctf-error.Tpo -c -o libctf_nobfd_la-ctf-error.lo `test -f 'ctf-error.c' || echo './'`ctf-error.c 行 66510: tl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_nobfd_la-ctf-error.lo -MD -MP -MF .deps/libctf_nobfd_la-ctf-error.Tpo -c -o libctf_nobfd_la-ctf-error.lo `test -f 'ctf-error.c' || echo './'`ctf-error.c 行 66510: t -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_nobfd_la-ctf-error.lo -MD -MP -MF .deps/libctf_nobfd_la-ctf-error.Tpo -c -o libctf_nobfd_la-ctf-error.lo `test -f 'ctf-error.c' || echo './'`ctf-error.c 行 66510: -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_nobfd_la-ctf-error.lo -MD -MP -MF .deps/libctf_nobfd_la-ctf-error.Tpo -c -o libctf_nobfd_la-ctf-error.lo `test -f 'ctf-error.c' || echo './'`ctf-error.c 行 66538: open_source/local/openwrt/openwrt/staging_dir/target-arm-mix510-linux_musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_nobfd_la-ctf-error.lo -MD -MP -MF .deps/libctf_nobfd_la-ctf-error.Tpo -c ctf-error.c -fPIC -DPIC -o .libs/libctf_nobfd_la-ctf-error.o 行 66538: arget-arm-mix510-linux_musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_nobfd_la-ctf-error.lo -MD -MP -MF .deps/libctf_nobfd_la-ctf-error.Tpo -c ctf-error.c -fPIC -DPIC -o .libs/libctf_nobfd_la-ctf-error.o 行 66538: linux_musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_nobfd_la-ctf-error.lo -MD -MP -MF .deps/libctf_nobfd_la-ctf-error.Tpo -c ctf-error.c -fPIC -DPIC -o .libs/libctf_nobfd_la-ctf-error.o 行 66538: Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_nobfd_la-ctf-error.lo -MD -MP -MF .deps/libctf_nobfd_la-ctf-error.Tpo -c ctf-error.c -fPIC -DPIC -o .libs/libctf_nobfd_la-ctf-error.o 行 66554: lease/open_source/local/openwrt/openwrt/staging_dir/target-arm-mix510-linux_musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_la-ctf-error.lo -MD -MP -MF .deps/libctf_la-ctf-error.Tpo -c ctf-error.c -o libctf_la-ctf-error.o >/dev/null 2>&1 行 66554: taging_dir/target-arm-mix510-linux_musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_la-ctf-error.lo -MD -MP -MF .deps/libctf_la-ctf-error.Tpo -c ctf-error.c -o libctf_la-ctf-error.o >/dev/null 2>&1 行 66554: -arm-mix510-linux_musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_la-ctf-error.lo -MD -MP -MF .deps/libctf_la-ctf-error.Tpo -c ctf-error.c -o libctf_la-ctf-error.o >/dev/null 2>&1 行 66554: r/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_la-ctf-error.lo -MD -MP -MF .deps/libctf_la-ctf-error.Tpo -c ctf-error.c -o libctf_la-ctf-error.o >/dev/null 2>&1 行 66565: open_source/local/openwrt/openwrt/staging_dir/target-arm-mix510-linux_musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_nobfd_la-ctf-error.lo -MD -MP -MF .deps/libctf_nobfd_la-ctf-error.Tpo -c ctf-error.c -o libctf_nobfd_la-ctf-error.o >/dev/null 2>&1 行 66565: arget-arm-mix510-linux_musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_nobfd_la-ctf-error.lo -MD -MP -MF .deps/libctf_nobfd_la-ctf-error.Tpo -c ctf-error.c -o libctf_nobfd_la-ctf-error.o >/dev/null 2>&1 行 66565: linux_musl/usr/lib/libintl-stub/include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_nobfd_la-ctf-error.lo -MD -MP -MF .deps/libctf_nobfd_la-ctf-error.Tpo -c ctf-error.c -o libctf_nobfd_la-ctf-error.o >/dev/null 2>&1 行 66565: /include -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -Wno-unused-value -MT libctf_nobfd_la-ctf-error.lo -MD -MP -MF .deps/libctf_nobfd_la-ctf-error.Tpo -c ctf-error.c -o libctf_nobfd_la-ctf-error.o >/dev/null 2>&1 行 66578: mv -f .deps/libctf_la-ctf-error.Tpo .deps/libctf_la-ctf-error.Plo 行 66578: mv -f .deps/libctf_la-ctf-error.Tpo .deps/libctf_la-ctf-error.Plo 行 66585: mv -f .deps/libctf_nobfd_la-ctf-error.Tpo .deps/libctf_nobfd_la-ctf-error.Plo 行 66585: mv -f .deps/libctf_nobfd_la-ctf-error.Tpo .deps/libctf_nobfd_la-ctf-error.Plo 行 66739: release/open_source/local/openwrt/openwrt/staging_dir/target-arm-mix510-linux_musl/usr/lib/libintl-stub/lib -znow -zrelro -o libctf.la -rpath /usr/lib libctf_la-ctf-archive.lo libctf_la-ctf-dump.lo libctf_la-ctf-create.lo libctf_la-ctf-decl.lo libctf_la-ctf-error.lo libctf_la-ctf-hash.lo libctf_la-ctf-labels.lo libctf_la-ctf-dedup.lo libctf_la-ctf-link.lo libctf_la-ctf-lookup.lo libctf_la-ctf-open.lo libctf_la-ctf-serialize.lo libctf_la-ctf-sha1.lo libctf_la-ctf-string.lo libctf_la-ctf-subr.lo libctf_la-ctf-types.lo lib ... 行 66741: enwrt/staging_dir/target-arm-mix510-linux_musl/usr/lib/libintl-stub/lib -znow -zrelro -o libctf-nobfd.la -rpath /usr/lib libctf_nobfd_la-ctf-archive.lo libctf_nobfd_la-ctf-dump.lo libctf_nobfd_la-ctf-create.lo libctf_nobfd_la-ctf-decl.lo libctf_nobfd_la-ctf-error.lo libctf_nobfd_la-ctf-hash.lo libctf_nobfd_la-ctf-labels.lo libctf_nobfd_la-ctf-dedup.lo libctf_nobfd_la-ctf-link.lo libctf_nobfd_la-ctf-lookup.lo libctf_nobfd_la-ctf-open.lo libctf_nobfd_la-ctf-serialize.lo libctf_nobfd_la-ctf-sha1.lo libctf_nobfd_la-ctf-stri ... 行 66742: OpenWrt-libtool-patched-2.2: link: arm-mix510-linux-gcc -shared -fPIC -DPIC .libs/libctf_nobfd_la-ctf-archive.o .libs/libctf_nobfd_la-ctf-dump.o .libs/libctf_nobfd_la-ctf-create.o .libs/libctf_nobfd_la-ctf-decl.o .libs/libctf_nobfd_la-ctf-error.o .libs/libctf_nobfd_la-ctf-hash.o .libs/libctf_nobfd_la-ctf-labels.o .libs/libctf_nobfd_la-ctf-dedup.o .libs/libctf_nobfd_la-ctf-link.o .libs/libctf_nobfd_la-ctf-lookup.o .libs/libctf_nobfd_la-ctf-open.o .libs/libctf_nobfd_la-ctf-serialize.o .libs/libctf_nobfd ... 行 66743: OpenWrt-libtool-patched-2.2: link: arm-mix510-linux-gcc -shared -fPIC -DPIC .libs/libctf_la-ctf-archive.o .libs/libctf_la-ctf-dump.o .libs/libctf_la-ctf-create.o .libs/libctf_la-ctf-decl.o .libs/libctf_la-ctf-error.o .libs/libctf_la-ctf-hash.o .libs/libctf_la-ctf-labels.o .libs/libctf_la-ctf-dedup.o .libs/libctf_la-ctf-link.o .libs/libctf_la-ctf-lookup.o .libs/libctf_la-ctf-open.o .libs/libctf_la-ctf-serialize.o .libs/libctf_la-ctf-sha1.o .libs/libctf_la-ctf-string.o .lib ... 行 66746: ax3000_lite_release/tools/cross_toolchain/arm-mix510-linux/arm-mix510-linux/bin/../libexec/gcc/arm-linux-musleabi/10.3.0/liblto_plugin.so rc .libs/libctf.a libctf_la-ctf-archive.o libctf_la-ctf-dump.o libctf_la-ctf-create.o libctf_la-ctf-decl.o libctf_la-ctf-error.o libctf_la-ctf-hash.o libctf_la-ctf-labels.o libctf_la-ctf-dedup.o libctf_la-ctf-link.o libctf_la-ctf-lookup.o libctf_la-ctf-open.o libctf_la-ctf-serialize.o libctf_la-ctf-sha1.o libctf_la-ctf-string.o libctf_la-ctf-subr.o libctf_la-ctf-types.o libctf_la-ctf-u ... 行 66751: chain/arm-mix510-linux/arm-mix510-linux/bin/../libexec/gcc/arm-linux-musleabi/10.3.0/liblto_plugin.so rc .libs/libctf-nobfd.a libctf_nobfd_la-ctf-archive.o libctf_nobfd_la-ctf-dump.o libctf_nobfd_la-ctf-create.o libctf_nobfd_la-ctf-decl.o libctf_nobfd_la-ctf-error.o libctf_nobfd_la-ctf-hash.o libctf_nobfd_la-ctf-labels.o libctf_nobfd_la-ctf-dedup.o libctf_nobfd_la-ctf-link.o libctf_nobfd_la-ctf-lookup.o libctf_nobfd_la-ctf-open.o libctf_nobfd_la-ctf-serialize.o libctf_nobfd_la-ctf-sha1.o libctf_nobfd_la-ctf-string.o libc ... 行 67889: checking error.h usability... no 行 67890: checking error.h presence... no 行 67891: checking for error.h... no 行 68023: sl/usr/lib/libiconv-stub/include -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/target-arm-mix510-linux_musl/usr/lib/libintl-stub/include -D_GNU_SOURCE -Wno-unused-result -Wno-format-nonliteral -MT error.o -MD -MP -MF .deps/error.Tpo -c -o error.o error.c 行 68023: nclude -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/target-arm-mix510-linux_musl/usr/lib/libintl-stub/include -D_GNU_SOURCE -Wno-unused-result -Wno-format-nonliteral -MT error.o -MD -MP -MF .deps/error.Tpo -c -o error.o error.c 行 68023: hile1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/target-arm-mix510-linux_musl/usr/lib/libintl-stub/include -D_GNU_SOURCE -Wno-unused-result -Wno-format-nonliteral -MT error.o -MD -MP -MF .deps/error.Tpo -c -o error.o error.c 行 68023: rk/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/target-arm-mix510-linux_musl/usr/lib/libintl-stub/include -D_GNU_SOURCE -Wno-unused-result -Wno-format-nonliteral -MT error.o -MD -MP -MF .deps/error.Tpo -c -o error.o error.c 行 68027: mv -f .deps/error.Tpo .deps/error.Po 行 68027: mv -f .deps/error.Tpo .deps/error.Po 行 68036: arm-mix510-linux-gcc-ar cr libeu.a xasprintf.o xstrdup.o xstrndup.o xmalloc.o next_prime.o crc32.o crc32_file.o color.o error.o printversion.o 行 72406: libnetlink.c:154:2: warning: #warning "libmnl required for error support" [-Wcpp] 行 72407: 154 | #warning "libmnl required for error support" 行 72868: libnetlink.c:154:2: warning: #warning "libmnl required for error support" [-Wcpp] 行 72869: 154 | #warning "libmnl required for error support" 行 79556: ft -Wformat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/target-arm-mix510-linux_musl/usr/include -c ./error.c -o error.lo 行 79556: -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/target-arm-mix510-linux_musl/usr/include -c ./error.c -o error.lo 行 79584: ormat -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/target-arm-mix510-linux_musl/usr/include -c ./drill/error.c -o drill/error.lo 行 79584: mat-security -fstack-protector-strong -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/target-arm-mix510-linux_musl/usr/include -c ./drill/error.c -o drill/error.lo 行 79589: aging_dir/target-arm-mix510-linux_musl/usr/lib -lssl -lcrypto -export-symbols-regex '^(ldns_|b32_[pn]to[pn]|mktime_from_utc|qsort_rr_compare_nsec3)' -o libldns.la buffer.lo dane.lo dname.lo dnssec.lo dnssec_sign.lo dnssec_verify.lo dnssec_zone.lo duration.lo error.lo higher.lo host2str.lo host2wire.lo keys.lo net.lo packet.lo parse.lo radix.lo rbtree.lo rdata.lo resolver.lo rr.lo rr_functions.lo sha1.lo sha2.lo str2host.lo tsig.lo update.lo util.lo wire2host.lo zone.lo compat/b64_pton.lo compat/b64_ntop.lo -rpath /usr/li ... 行 79591: 510-linux_musl/usr/lib -znow -zrelro -L/home/while1/work/project/tmp/luofu_wrt_ax3000_lite_release/open_source/local/openwrt/openwrt/staging_dir/target-arm-mix510-linux_musl/usr/lib drill/chasetrace.lo drill/dnssec.lo drill/drill.lo drill/drill_util.lo drill/error.lo drill/root.lo drill/securetrace.lo drill/work.lo compat/b64_pton.lo compat/b64_ntop.lo libldns.la -lssl -lcrypto -o drill/drill 行 79596: for i in buffer.h dane.h dname.h dnssec.h dnssec_sign.h dnssec_verify.h dnssec_zone.h duration.h error.h higher.h host2str.h host2wire.h keys.h ldns.h packet.h parse.h radix.h rbtree.h rdata.h resolver.h rr_functions.h rr.h sha1.h sha2.h str2host.h tsig.h update.h wire2host.h zone.h; do \ 行 85945: Applying ./patches/0002-PATCH-Fix-error-introduced-in-51471cafa5a4fa44d6fe49.patch using plaintext: 行 91120: Use ioctl names rather than hex values in error messages (IOCTL_HEX2STR_ERROR) [Y/n/?] y 行 93643: collect2: error: ld returned 1 exit status 以上错误都报了那些错?
最新发布
09-26
你提供的日志是一个 **OpenWrt 固件编译过程中的构建输出片段**,其中包含了大量 C 编译、链接、配置和补丁应用的过程。我们从中提取出所有明确的 **错误(error)和关键警告**,并进行分类解释。 --- ### ✅ 总结:整个日志中出现的主要错误与问题 | 行号 | 错误类型 | 具体内容 | 严重性 | |------|----------|--------|-------| | 32562 | **Autoconf 版本不兼容** | `configure.ac:3: error: Autoconf version 2.71 or higher is required` | ⚠️ 高 - 导致 configure 失败 | | 32562 | **aclocal 报错** | `aclocal.real: error: echo failed with exit status: 63` | ⚠️ 高 - 工具链异常 | | 39183 ~ 39209 | **C++ 异常抛出** | `throw Exception("...")` | 🟡 中 - 可能是测试或编码阶段报错 | | 53039 | **编译警告(潜在溢出)** | `strncpy' specified bound depends on the length of the source argument` | 🟡 中 - 安全风险 | | 67889~67891 | **头文件缺失** | `checking for error.h... no` | 🟡 中 - 影响某些功能 | | 72406 / 72868 | **预处理警告** | `#warning "libmnl required for error support"` | 🔵 低 - 提示信息 | | 79596 | **链接失败** | `collect2: error: ld returned 1 exit status` | ❌ 极高 - 最终链接失败 | --- ## 🔍 详细分析每一条“error”及其原因 --- ### ❌ 1. `configure.ac:3: error: Autoconf version 2.71 or higher is required` ```log 行 32562: configure.ac:3: error: Autoconf version 2.71 or higher is required ``` #### 💡 原因: 你的项目使用了较新的 `configure.ac` 文件,它依赖于 **Autoconf ≥ 2.71** 的特性(如新宏、语法),但当前系统安装的 Autoconf 版本过低。 #### 📌 解释: - `autoconf` 是 GNU Autotools 的一部分,用于生成 `configure` 脚本。 - OpenWrt 社区逐渐升级工具链,部分包要求新版 Autoconf(例如 musl libc 相关组件)。 - 如果系统只有 autoconf 2.69,则无法解析新版宏。 #### ✅ 解决方法: ```bash # Ubuntu/Debian sudo apt update sudo apt install autoconf automake autopoint libtool-bin # 升级到最新版本(推荐从源码安装) wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.71.tar.gz tar -xzf autoconf-2.71.tar.gz cd autoconf-2.71 ./configure --prefix=/usr && make && sudo make install ``` > 注意:OpenWrt 推荐使用其自带的 `scripts/feeds` 系统管理依赖,避免宿主机污染。 --- ### ❌ 2. `aclocal.real: error: echo failed with exit status: 63` ```log 行 32562: aclocal.real: error: echo failed with exit status: 63 ``` #### 💡 原因: 这是 `automake` 执行过程中调用 `aclocal` 出现内部错误。通常是因为: - `aclocal` 被破坏或路径混乱 - 使用了错误版本的 Automake/Autoconf 混合 - 环境变量(如 `ACLOCAL_PATH`, `PATH`)设置不当 #### ✅ 解决方法: ```bash # 清理环境 unset ACLOCAL_PATH export PATH=/usr/bin:/bin:/sbin:/usr/sbin # 重新安装 automake sudo apt remove --purge automake sudo apt install automake # 或者强制指定 aclocal 版本 autoreconf -fiv --trace ``` --- ### ❌ 3. `collect2: error: ld returned 1 exit status` ```log 行 79596: collect2: error: ld returned 1 exit status ``` #### 💡 原因: 这是 **最终链接阶段失败**,说明前面 `.o` 文件可以编译,但无法合并成可执行文件或库。 常见原因包括: | 原因 | 示例 | |------|------| | 符号未定义 | `undefined reference to 'xxx_function'` | | 库顺序错误 | `-lfoo -lbar` 但 bar 依赖 foo,应反过来 | | 架构不匹配 | 混入 x86 目标文件到 ARM 编译 | | 内存不足 | `ld` 因 OOM 被 kill(常见于小内存 VM)| > ⚠️ 日志中没有打印具体的 undefined symbol,需要查看完整错误上下文! #### ✅ 如何排查? ```bash # 查找完整的链接命令行 grep -A20 -B20 "collect2.*ld returned" build_log.txt # 查看是否缺少某个库 ... -lssl -lcrypto ... -> 确保 libssl-dev 已安装 # 检查是否有 truncation 或 overflow 警告导致 -Wl,--fatal-warnings ``` #### 推荐修复步骤: ```bash # 清理后重试 make clean make dirclean # 更新 feeds 并重新配置 ./scripts/feeds update -a ./scripts/feeds install -a # 再次构建 make defconfig make V=s # 开启详细输出 ``` --- ### ⚠️ 4. `strncpy specified bound depends on the source argument [-Wstringop-overflow=]` ```log 行 53039: warning: 'strncpy' specified bound depends on the length of the source argument ``` #### 💡 原因: GCC 11+ 新增了 `-Wstringop-overflow=` 警告,检测 `strncpy(dst, src, strlen(src)+1)` 这类写法,因为这会导致缓冲区越界风险。 #### 示例代码(有问题): ```c char buf[16]; strncpy(buf, src, strlen(src) + 1); // 若 src 太长会溢出 ``` #### ✅ 正确做法: ```c strncpy(buf, src, sizeof(buf) - 1); buf[sizeof(buf)-1] = '\0'; ``` #### 影响: 虽然只是警告,但如果编译选项含 `-Werror`,会被当作错误中断编译。 --- ### ⚠️ 5. `checking for error.h... no` ```log 行 67889: checking error.h usability... no 行 67890: checking error.h presence... no 行 67891: checking for error.h... no ``` #### 💡 原因: `configure` 脚本在探测是否存在 `<error.h>` 头文件,结果找不到。 该头文件属于 **GNU C Library (glibc)**,声明: ```c extern void error(int status, int errnum, const char *format, ...); ``` #### ❗ 但在 OpenWrt 中: - 默认使用 **musl libc**,而不是 glibc - **musl 不提供 `<error.h>`** - 因此这个检查必然失败 #### ✅ 是否影响? - 如果该项目依赖 `error()` 函数,则会编译失败 - 否则只是提示,不影响构建(很多项目有 fallback 实现) #### ✅ 替代方案(在 musl 下): 自己实现一个简易版 `error()`: ```c #include <stdio.h> #include <errno.h> #include <string.h> #include <stdarg.h> void error(int status, int errnum, const char *format, ...) { va_list ap; fprintf(stderr, "ERROR: "); va_start(ap, format); vfprintf(stderr, format, ap); va_end(ap); if (errnum != 0) { fprintf(stderr, ": %s", strerror(errnum)); } fprintf(stderr, "\n"); if (status) exit(status); } ``` --- ### ⚠️ 6. `#warning "libmnl required for error support"` ```log libnetlink.c:154:2: warning: #warning "libmnl required for error support" ``` #### 💡 原因: `libnetlink.c` 检测到没有启用 `libmnl`(Minimalist Netlink library),所以无法支持 netlink 错误消息解析。 #### ✅ 影响: 非致命警告,仅表示某些调试功能不可用。 #### ✅ 解决方法: 确保已安装 `libmnl` 开发包,并在配置中启用相关选项: ```bash ./scripts/feeds install libmnl make menuconfig # 在 Libraries -> Libnetworking -> <*> libmnl ``` --- ### ⚠️ 7. C++ `throw Exception(...)` 出现在日志中 ```log throw Exception("SetCoderProperties() error"); ``` #### 💡 原因: 这些来自某个 C++ 组件(可能是 `7-zip`、`liblzma` 或其他压缩库)的异常抛出语句。 #### ✅ 是否为错误? - 不一定!这只是源码里的 `throw` 语句被 `grep` 出来 - 只有当运行时真的抛出异常才会崩溃 - 若构建成功,则无需担心 --- ### ✅ 总结:真正阻止编译成功的错误 | 错误 | 是否致命 | 建议动作 | |------|---------|----------| | `Autoconf version 2.71 required` | ✅ 是 | 升级 Autoconf 到 2.71+ | | `aclocal.real: echo failed` | ✅ 是 | 清理 automake 环境 | | `ld returned 1 exit status` | ✅ 是 | 查看具体链接错误,清理后重试 | | `error.h not found` | ❌ 否 | 忽略或添加兼容实现 | | `strncpy warning` | ❌ 否(除非 -Werror) | 修改代码避免动态长度拷贝 | | `#warning libmnl required` | ❌ 否 | 安装 libmnl 提升功能 | --- ###
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值