WP 4 i春秋_internetwache-ctf-2016

本文通过解决三个不同的加密谜题,展示了如何使用八进制到ASCII、Base64解码及DNS数据包分析等技术来揭示隐藏信息。每个谜题都需要特定的技术来解开,包括八进制转ASCII、Base64解码、二维码读取、Wireshark数据包分析及HTTP基本认证等。


The hidden message

辨识八进制,ascii转换,base64

Description: My friend really can’t remember passwords. So he uses some kind of obfuscation. Can you restore the plaintext?

将附件下载之后,发现内容如下

0000000 126 062 126 163 142 103 102 153 142 062 065 154 111 121 157 1130000020 122 155 170 150 132 172 157 147 123 126 144 067 124 152 102 1460000040 115 107 065 154 130 062 116 150 142 154 071 172 144 104 102 1670000060 130 063 153 167 144 130 060 113 0120000071

本来的文件是一行下来的,稍微找一下规律就能发现,文件应该是如下形式

0000000 126 062 126 163 142 103 102 153 142 062 065 154 111 121 157 113
0000020 122 155 170 150 132 172 157 147 123 126 144 067 124 152 102 146
0000040 115 107 065 154 130 062 116 150 142 154 071 172 144 104 102 167
0000060 130 063 153 167 144 130 060 113 012
0000071

左面第一列是计数,后面的列是数据,并且一行16个数据,所以从第二列起始的计数是0000020,所以看出是八进制,所以推测后面的数据也是八进制,考虑将数据转化成字符形式。Python代码如下(先将行号删除):

#!/usr/bin/python
with open("README.txt") as f:
    s = f.read()

s = s.split()
l = ''

for i in s:
    n = int(i)
    sum = 0
    mi = 0
    while n != 0:
        n1 = n % 10
        sum += n1 * 8 ** mi
        n = int(n / 10)
        mi += 1
    l += chr(sum)

print l

得到字符串

V2VsbCBkb25lIQoKRmxhZzogSVd7TjBfMG5lX2Nhbl9zdDBwX3kwdX0K

进行BASE64解码,得到

Well done!

Flag: IW{N0_0ne_can_st0p_y0u}

得到FLAG~


Quick run

base64,二维码

Description: Someone sent me a file with white and black rectangles. I don’t know how to read it. Can you help me?

这道题目的文件内容显然是base64编码,直接对其解码,发现是一串二维码。代码如下(不能将内容直接解码,否则只会解码第一个base64编码):

#!/usr/bin/python

import base64

with open('README.txt', 'r') as f:
    s = f.read().split()
    base64Str = ''

    for i in s:
        base64Str += i
        if len(i) < 76:
           print  base64.b64decode(base64Str)
           base64Str = ''

大佬都自动解码,小弱只能一个一个扫描,扫描最后的结果是

Flagis:IW{QR_C0DES_RUL3}

rock-with-the-wired-shark

Wireshark数据包分析,HTTP基本认证

Description: Sniffing traffic is fun. I saw a wired shark. Isn’t that strange?

题目给了一个抓包的结果,使用Wireshark分析,可以比较容易地看到传输了一个.zip的压缩包,如下图:

这里写图片描述

将传输内容导出,发现解压文件需要密码。仔细观察HTTP头部发现,使用了HTTP基本认证,猜测密码就在其中。

HTTP BASIC AUTHORIZATION其实在传输过程中内容没有加密,只是进行了BASE64编码。编码内容如下

ZmxhZzphenVsY3JlbWE=

进行解码,得到如下字符串

flag:azulcrema

其中flag为用户名,azulcrema为密码。尝试使用此密码来解开压缩包,结果正确,得到FLAG

IW{HTTP_BASIC_AUTH_IS_EASY}

404 Flag not found

ascii转换,数据包分析

仍然是给了数据包,打开发现是一系列DNS请求,请求的域名非常奇怪,最前面似乎是一串十六进制数。尝试对其解码,使用ASCII解码发现了有意义的字符,把所有域名的十六进制数连在一起。得到

In the end, it's all about flags.
Whether you win or lose doesn't matter.
{Ofc, winning is cooler
Did you find other flags?
Noboby finds other flags!
Superman is my hero.
_HERO!!!_
Help me my friend, I'm lost in my own mind.
Always, always, for ever alone.
Crying until I'm dying.
Kings never die.
So do I.
}!

这段话比较奇怪,仔细研究发现,每行的首字母拼起来,就是FLAG。

IW{DNS_HACKS}
行 1010: Collecting package info: package/feeds/packages/libgpg-error 行 3003: checking how gcc reports undeclared, standard C functions... error 行 3267: checking whether pthread_sigmask returns error numbers... yes 行 7205: Applying ./patches/040-Fix-error-handling-with-git-style-patches.patch using plaintext: 行 9522: checking whether pthread_sigmask returns error numbers... yes 行 31775: CC error.c 行 32561: configure.ac:3: error: Autoconf version 2.71 or higher is required 行 32564: aclocal.real: error: echo failed with exit status: 63 行 33491: checking for C compiler option to allow warnings... -Wno-error 行 33492: checking for C++ compiler option to allow warnings... -Wno-error 行 33784: checking whether pthread_sigmask returns error numbers... yes 行 35555: 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 行 35555: 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 行 35555: -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 行 35555: 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 行 35555: 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 行 35598: mv -f .deps/libgnulib_a-xstrtol-error.Tpo .deps/libgnulib_a-xstrtol-error.Po 行 35598: mv -f .deps/libgnulib_a-xstrtol-error.Tpo .deps/libgnulib_a-xstrtol-error.Po 行 35616: 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 行 36029: 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/ ... 行 36032: 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/ ... 行 36035: 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/ ... 行 36038: 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/ ... 行 36041: 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/ ... 行 36044: 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/ ... 行 36047: 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/ ... 行 36050: 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/ ... 行 36053: 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/ ... 行 36056: 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/ ... 行 36059: 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/ ... 行 36062: 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/ ... 行 36065: 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/ ... 行 36068: 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/ ... 行 36071: 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/ ... 行 36074: 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/ ... 行 36077: 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/ ... 行 36080: 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/ ... 行 36083: 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/ ... 行 36086: 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/ ... 行 36089: 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/ ... 行 36092: 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/ ... 行 36097: 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/ ... 行 36098: 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/ ... 行 39185: 399 | throw Exception("SetCoderProperties() error"); 行 39189: 416 | throw Exception("Write error while encoding"); 行 39196: 440 | throw Exception("Read error"); 行 39199: 442 | throw Exception("Read error"); 行 39202: 444 | throw Exception("SetDecoderProperties() error"); 行 39205: 451 | throw Exception("Read error"); 行 39208: 453 | throw Exception("Read error"); 行 39211: 459 | throw Exception("Decoder error"); 行 41203: 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: 行 41342: 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: 行 41367: 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: 行 41370: 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: 行 41373: 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: 行 41376: 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: 行 41435: 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: 行 43081: HDRINST usr/include/linux/can/error.h 行 44818: [0/15] Building C object CMakeFiles/nl-tiny.dir/error.c.o 行 44829: [1/15] Building C object CMakeFiles/nl-tiny.dir/error.c.o 行 53014: [0/14] Building C object CMakeFiles/jansson.dir/src/error.c.o 行 53027: [3/14] Building C object CMakeFiles/jansson.dir/src/error.c.o 行 53040: 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: 行 53041: /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=] 行 53042: 25 | strncpy(error->source, source, length + 1); 行 53044: /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': 行 53045: /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 行 54872: [13/317] Building C object library/CMakeFiles/mbedcrypto_static.dir/error.c.o 行 54935: [45/317] Building C object library/CMakeFiles/mbedcrypto_static.dir/error.c.o 行 55062: [108/317] Building C object library/CMakeFiles/mbedcrypto.dir/error.c.o 行 55119: [137/317] Building C object library/CMakeFiles/mbedcrypto.dir/error.c.o 行 55487: -- 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 行 58612: 98: Invalid property in CSS3.0: --error-color-high-rgb 行 58613: 99: Invalid property in CSS3.0: --error-color-high 行 58614: 100: Invalid property in CSS3.0: --error-color-medium 行 58615: 101: Invalid property in CSS3.0: --error-color-low 行 58616: 102: Invalid property in CSS3.0: --on-error-color 行 58640: 135: Invalid property in CSS3.0: --error-color-high-rgb 行 58641: 136: Invalid property in CSS3.0: --error-color-medium 行 58642: 137: Invalid property in CSS3.0: --error-color-low 行 58823: 98: Invalid property in CSS3.0: --error-color-high-rgb 行 58824: 99: Invalid property in CSS3.0: --error-color-high 行 58825: 100: Invalid property in CSS3.0: --error-color-medium 行 58826: 101: Invalid property in CSS3.0: --error-color-low 行 58827: 102: Invalid property in CSS3.0: --on-error-color 行 58851: 135: Invalid property in CSS3.0: --error-color-high-rgb 行 58852: 136: Invalid property in CSS3.0: --error-color-medium 行 58853: 137: Invalid property in CSS3.0: --error-color-low 行 59585: Applying ./patches/510-e_devcrypto-ignore-error-when-closing-session.patch using plaintext: 行 66482: /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 行 66482: 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 行 66482: 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 行 66482: 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 行 66482: 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 行 66514: 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 行 66514: -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 行 66514: 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 行 66514: 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 行 66514: -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 行 66558: 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 行 66558: 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 行 66558: -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 行 66558: 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 行 66585: mv -f .deps/libctf_la-ctf-error.Tpo .deps/libctf_la-ctf-error.Plo 行 66585: mv -f .deps/libctf_la-ctf-error.Tpo .deps/libctf_la-ctf-error.Plo 行 66586: mv -f .deps/libctf_nobfd_la-ctf-error.Tpo .deps/libctf_nobfd_la-ctf-error.Plo 行 66586: mv -f .deps/libctf_nobfd_la-ctf-error.Tpo .deps/libctf_nobfd_la-ctf-error.Plo 行 66743: 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 ... 行 66744: 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 ... 行 66748: 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 ... 行 66749: 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 ... 行 66752: 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 ... 行 66755: 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 ... 行 67893: checking error.h usability... no 行 67894: checking error.h presence... no 行 67895: checking for error.h... no 行 68027: 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 行 68027: 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 行 68027: 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 行 68027: 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 行 68034: mv -f .deps/error.Tpo .deps/error.Po 行 68034: mv -f .deps/error.Tpo .deps/error.Po 行 68040: 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 行 72378: libnetlink.c:154:2: warning: #warning "libmnl required for error support" [-Wcpp] 行 72379: 154 | #warning "libmnl required for error support" 行 72890: libnetlink.c:154:2: warning: #warning "libmnl required for error support" [-Wcpp] 行 72891: 154 | #warning "libmnl required for error support" 行 79560: 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 行 79560: -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 行 79588: 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 行 79588: 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 行 79593: 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 ... 行 79595: 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 行 79600: 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 \ 行 85952: Applying ./patches/0002-PATCH-Fix-error-introduced-in-51471cafa5a4fa44d6fe49.patch using plaintext: 行 91127: Use ioctl names rather than hex values in error messages (IOCTL_HEX2STR_ERROR) [Y/n/?] y 行 93650: collect2: error: ld returned 1 exit status 总结以上有效的错误有哪些?
最新发布
09-27
根据你提供的日志内容,这些是构建 OpenWrt 或相关软件包时的编译、配置和链接过程中的输出。虽然大部分是正常的构建信息(如 `checking...`、`Building C object` 等),但也包含了一些**关键错误与警告**。以下是经过筛选后的**有效错误(Critical Errors)及其解释**: --- ### ✅ 1. **Autoconf 版本不足** ``` 行 32561: configure.ac:3: error: Autoconf version 2.71 or higher is required ``` #### 解释: 该项目的 `configure.ac` 文件要求使用 **Autoconf 2.71 或更高版本**,但当前系统安装的版本低于此要求。 这会导致 `autoreconf` 或 `./configure` 失败,进而中断整个构建流程。 > ⚠️ 必须升级 Autoconf 到 2.71+ 才能继续。 --- ### ✅ 2. **`error.h` 头文件缺失** ``` 行 67893: checking error.h usability... no 行 67894: checking error.h presence... no 行 67895: checking for error.h... no ``` #### 解释: 系统或交叉编译环境缺少标准头文件 `<error.h>`,该头文件通常在 GNU C Library(glibc)中提供,定义了 `error()` 函数(用于格式化输出并可能终止程序)。 - 在 **musl libc** 环境下(OpenWrt 常用),`<error.h>` 是**不支持的**。 - 若代码显式调用了 `error()` 或 `#include <error.h>`,则会失败。 📌 **影响**:可能导致某些依赖 glibc 的软件包无法编译。 🔧 **解决方案**: - 使用 `#ifdef HAVE_ERROR_H` 防御性包含; - 或者通过 gnulib 提供兼容层; - 或改用 `fprintf(stderr, ...)` + `exit()` 替代。 --- ### ✅ 3. **收集阶段链接错误:`collect2: error: ld returned 1 exit status`** ``` 行 93650: collect2: error: ld returned 1 exit status ``` #### 解释: 这是**最终链接阶段失败**的关键错误。`collect2` 是 GCC 调用链接器(ld)的一部分,返回非零状态表示链接失败。 常见原因包括: - 符号未定义(undefined reference) - 库顺序错误 - 目标架构不匹配(如混入 x86 目标文件到 ARM 构建) - 缺少必需的库(如 `-lpthread`, `-lm`, `-lcrypto`) ⚠️ 此错误前应有更详细的提示(例如哪个符号未找到),但在你的日志中被截断或未显示。 🔍 建议查看其**前面几行日志**(尤其是 `gcc ... -o output ...` 那条命令的完整输出)以定位具体缺失什么。 --- ### ✅ 4. **`strncpy` 溢出警告(可升级为错误)** ``` 行 53041: /home/.../jansson-2.13.1/src/error.c:25:9: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 25 | strncpy(error->source, source, length + 1); ``` #### 解释: GCC 检测到 `strncpy(dest, src, strlen(src)+1)` 这种写法存在潜在风险 —— 因为 `strncpy` 不保证末尾加 `\0`,且当源字符串长度等于缓冲区大小时可能不会终止。 虽然目前只是警告,但如果启用了 `-Werror`,它将**升级为编译错误**,导致构建失败。 📌 安全替代方案: ```c size_t len = strlen(source); if (len >= sizeof(error->source)) len = sizeof(error->source) - 1; memcpy(error->source, source, len); error->source[len] = '\0'; ``` --- ### ✅ 5. **libmnl 缺失导致条件警告** ``` 行 72378: #warning "libmnl required for error support" ``` #### 解释: `libnetlink.c` 中检测到没有启用 `libmnl`(Netlink 库),因此部分错误处理功能不可用。 这不是致命错误,但意味着某些 netlink 错误码无法解析成人类可读字符串。 🔧 建议:若需完整错误支持,应在配置中启用 `libmnl` 并确保开发包已安装。 --- ### ❌ 排除非错误项说明: 以下看似“error”的条目其实不是问题: | 日志片段 | 类型 | 说明 | |--------|------|------| | `throw Exception(...)` in C++ code | 正常行为 | 属于异常抛出语句,非编译错误 | | `Invalid property in CSS3.0: --error-color-*` | 样式警告 | 来自 CSS 解析器,不影响 C 编译 | | 多次重复的 `error.c` 编译 | 正常现象 | 多个子项目各自有 `error.c` | | patch apply using plaintext | 信息提示 | 表示补丁应用成功 | --- ## ✅ 总结:真正的有效错误共 **4 个** | 编号 | 错误类型 | 描述 | 严重性 | |------|---------|------|--------| | 1 | 工具链版本过低 | Autoconf < 2.71 | 高(阻塞性) | | 2 | 头文件缺失 | `<error.h>` 不可用 | 中(兼容性问题) | | 3 | 链接失败 | `ld returned 1 exit status` | 高(阻塞性) | | 4 | 安全警告 | `strncpy` 可能溢出 | 中(可能转为错误) | ---
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值