weixin_39651816
weixin_39651816
2020-12-09 00:20

compile failed under lede 17.01.4

Hi: I want to use dhtest under openwrt/lede. dhtest 1.4/1.5 compiles and works fine under openwrt 15.05.1, but under openwrt/lede 17.01.4 it won't compile. I don't know what's wrong, maybe the gcc version is too new(version 5.4)? the compile message show as below:


make[1]: Entering directory `/share/openwrt/lede-source-archer-c20v1-v17.01.4-release'
make[2]: Entering directory `/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/package/libs/toolchain'
if [ -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
echo "libc" >> /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install
if [ -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
echo "libgcc" >> /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install
if [ -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
if [ -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
if [ -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
if [ -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
echo "libpthread" >> /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install
if [ -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
if [ -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
if [ -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
if [ -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
if [ -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean ]; then rm -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/pkginfo/toolchain.default.install.clean; fi
make[2]: Leaving directory `/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/package/libs/toolchain'
make[2]: Entering directory `/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/package/dhtest'
mkdir -p /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5
cp -fpR ./src/* /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5/
touch /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5/.prepared_38d65216c06da35f0e020708e7a7ee2f
rm -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.dhtest_installed
(cd /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5/./; if [ -x ./configure ]; then find /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5/ -name config.guess | xargs -r chmod u+w; find /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5/ -name config.guess | xargs -r -n1 cp --remove-destination /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/scripts/config.guess; find /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5/ -name config.sub | xargs -r chmod u+w; find /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5/ -name config.sub | xargs -r -n1 cp --remove-destination /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/scripts/config.sub; AR="mipsel-openwrt-linux-musl-gcc-ar" AS="mipsel-openwrt-linux-musl-gcc -c -Os -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 -iremap /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5:dhtest-1.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mipsel-openwrt-linux-musl-ld NM="mipsel-openwrt-linux-musl-gcc-nm" CC="mipsel-openwrt-linux-musl-gcc" GCC="mipsel-openwrt-linux-musl-gcc" CXX="mipsel-openwrt-linux-musl-g++" RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib" STRIP=mipsel-openwrt-linux-musl-strip OBJCOPY=mipsel-openwrt-linux-musl-objcopy OBJDUMP=mipsel-openwrt-linux-musl-objdump SIZE=mipsel-openwrt-linux-musl-size CFLAGS="-Os -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 -iremap /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5:dhtest-1.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -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 -iremap /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5:dhtest-1.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/usr/include -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/include -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/usr/include -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/include/fortify -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/include " LDFLAGS="-L/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/usr/lib -L/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/lib -L/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/usr/lib -L/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/lib -znow -zrelro "   ./configure --target=mipsel-openwrt-linux --host=mipsel-openwrt-linux --build=x86_64-redhat-linux --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls   ; fi; )
rm -f /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5/.configured_*
touch /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5/.configured_yyyyyyy
CFLAGS="-Os -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 -iremap /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5:dhtest-1.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CPPFLAGS="-I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/usr/include -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/include -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/usr/include -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/include/fortify -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/include" make -C /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5 AR="mipsel-openwrt-linux-musl-gcc-ar" AS="mipsel-openwrt-linux-musl-gcc -c -Os -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 -iremap /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5:dhtest-1.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mipsel-openwrt-linux-musl-ld NM="mipsel-openwrt-linux-musl-gcc-nm" CC="mipsel-openwrt-linux-musl-gcc" GCC="mipsel-openwrt-linux-musl-gcc" CXX="mipsel-openwrt-linux-musl-g++" RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib" STRIP=mipsel-openwrt-linux-musl-strip OBJCOPY=mipsel-openwrt-linux-musl-objcopy OBJDUMP=mipsel-openwrt-linux-musl-objdump SIZE=mipsel-openwrt-linux-musl-size
make[3]: Entering directory `/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5'
mipsel-openwrt-linux-musl-gcc -Os -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 -iremap /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5:dhtest-1.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/usr/include -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/include -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/usr/include -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/include/fortify -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/include  -c -o dhtest.o dhtest.c
mipsel-openwrt-linux-musl-gcc -Os -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 -iremap /share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5:dhtest-1.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/usr/include -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/target-mipsel_24kc_musl-1.1.16/include -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/usr/include -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/include/fortify -I/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16/include  -c -o functions.o functions.c
functions.c: In function 'build_dhpacket':
functions.c:871:5: error: 'struct udphdr' has no member named 'source'
   uh->source = htons(port + 1);
     ^
functions.c:872:5: error: 'struct udphdr' has no member named 'dest'
   uh->dest = htons(port);
     ^
functions.c:875:5: error: 'struct udphdr' has no member named 'len'
   uh->len = htons(l4_len);
     ^
functions.c:876:5: error: 'struct udphdr' has no member named 'check'
   uh->check = 0; /* UDP checksum will be done after dhcp header*/
     ^
functions.c:903:5: error: 'struct udphdr' has no member named 'check'
   uh->check = l4_sum((u_int16_t *) (dhcp_packet_disc + l2_hdr_size + l3_hdr_size), ((dhcp_hdr_size + dhopt_size + l4_hdr_size) / 2), (u_int16_t *)&iph->saddr, (u_int16_t *)&iph->daddr,
     ^
functions.c:944:5: error: 'struct udphdr' has no member named 'source'
   uh->source = htons(port + 1);
     ^
functions.c:945:5: error: 'struct udphdr' has no member named 'dest'
   uh->dest = htons(port);
     ^
functions.c:948:5: error: 'struct udphdr' has no member named 'len'
   uh->len = htons(l4_len);
     ^
functions.c:949:5: error: 'struct udphdr' has no member named 'check'
   uh->check = 0; /* UDP checksum will be done after building dhcp header*/
     ^
functions.c:976:5: error: 'struct udphdr' has no member named 'check'
   uh->check = l4_sum((u_int16_t *) (dhcp_packet_request + l2_hdr_size + l3_hdr_size), ((dhcp_hdr_size + dhopt_size + l4_hdr_size) / 2), (u_int16_t *)&iph->saddr, (u_int16_t *)&iph->dadd
     ^
functions.c:1014:5: error: 'struct udphdr' has no member named 'source'
   uh->source = htons(port + 1);
     ^
functions.c:1015:5: error: 'struct udphdr' has no member named 'dest'
   uh->dest = htons(port);
     ^
functions.c:1018:5: error: 'struct udphdr' has no member named 'len'
   uh->len = htons(l4_len);
     ^
functions.c:1019:5: error: 'struct udphdr' has no member named 'check'
   uh->check = 0; /* UDP checksum will be done after dhcp header*/
     ^
functions.c:1043:5: error: 'struct udphdr' has no member named 'check'
   uh->check = l4_sum((u_int16_t *) (dhcp_packet_release + l2_hdr_size + l3_hdr_size), ((dhcp_hdr_size + dhopt_size + l4_hdr_size) / 2), (u_int16_t *)&iph->saddr, (u_int16_t *)&iph->dadd
     ^
functions.c:1081:5: error: 'struct udphdr' has no member named 'source'
   uh->source = htons(port + 1);
     ^
functions.c:1082:5: error: 'struct udphdr' has no member named 'dest'
   uh->dest = htons(port);
     ^
functions.c:1085:5: error: 'struct udphdr' has no member named 'len'
   uh->len = htons(l4_len);
     ^
functions.c:1086:5: error: 'struct udphdr' has no member named 'check'
   uh->check = 0; /* UDP checksum will be done after dhcp header*/
     ^
functions.c:1110:5: error: 'struct udphdr' has no member named 'check'
   uh->check = l4_sum((u_int16_t *) (dhcp_packet_decline + l2_hdr_size + l3_hdr_size), ((dhcp_hdr_size + dhopt_size + l4_hdr_size) / 2), (u_int16_t *)&iph->saddr, (u_int16_t *)&iph->dadd
     ^
functions.c: In function 'check_packet':
functions.c:1205:145: error: 'struct udphdr' has no member named 'source'
   if((ntohs(vlan_hg->vlan_priority_c_vid) & VLAN_VIDMASK) == vlan && ntohs(vlan_hg->vlan_tpi) == ETHERTYPE_VLAN && iph_g->protocol == 17 && uh_g->source == htons(port) && (uh_g->dest ==
                                                                                                                                                 ^
functions.c:1205:177: error: 'struct udphdr' has no member named 'dest'
 if((ntohs(vlan_hg->vlan_priority_c_vid) & VLAN_VIDMASK) == vlan && ntohs(vlan_hg->vlan_tpi) == ETHERTYPE_VLAN && iph_g->protocol == 17 && uh_g->source == htons(port) && (uh_g->dest == h
                                                                                                                                                                               ^
functions.c:1205:210: error: 'struct udphdr' has no member named 'dest'
 c_vid) & VLAN_VIDMASK) == vlan && ntohs(vlan_hg->vlan_tpi) == ETHERTYPE_VLAN && iph_g->protocol == 17 && uh_g->source == htons(port) && (uh_g->dest == htons(port + 1) || uh_g->dest == h
                                                                                                                                                                               ^
functions.c:1227:144: error: 'struct udphdr' has no member named 'source'
   if((ntohs(vlan_hg->vlan_priority_c_vid) & VLAN_VIDMASK)== vlan && ntohs(vlan_hg->vlan_tpi) == ETHERTYPE_VLAN && iph_g->protocol == 17 && uh_g->source == htons(port) && (uh_g->dest ==
                                                                                                                                                ^
functions.c:1227:176: error: 'struct udphdr' has no member named 'dest'
  if((ntohs(vlan_hg->vlan_priority_c_vid) & VLAN_VIDMASK)== vlan && ntohs(vlan_hg->vlan_tpi) == ETHERTYPE_VLAN && iph_g->protocol == 17 && uh_g->source == htons(port) && (uh_g->dest == h
                                                                                                                                                                               ^
functions.c:1227:209: error: 'struct udphdr' has no member named 'dest'
 _c_vid) & VLAN_VIDMASK)== vlan && ntohs(vlan_hg->vlan_tpi) == ETHERTYPE_VLAN && iph_g->protocol == 17 && uh_g->source == htons(port) && (uh_g->dest == htons(port + 1) || uh_g->dest == h
                                                                                                                                                                               ^
functions.c:1253:80: error: 'struct udphdr' has no member named 'source'
   if(eth_hg->ether_type == htons(ETHERTYPE_IP) && iph_g->protocol == 17 && uh_g->source == htons(port) && (uh_g->dest == htons(port + 1) || uh_g->dest == htons(port))) {
                                                                                ^
functions.c:1253:112: error: 'struct udphdr' has no member named 'dest'
   if(eth_hg->ether_type == htons(ETHERTYPE_IP) && iph_g->protocol == 17 && uh_g->source == htons(port) && (uh_g->dest == htons(port + 1) || uh_g->dest == htons(port))) {
                                                                                                                ^
functions.c:1253:145: error: 'struct udphdr' has no member named 'dest'
   if(eth_hg->ether_type == htons(ETHERTYPE_IP) && iph_g->protocol == 17 && uh_g->source == htons(port) && (uh_g->dest == htons(port + 1) || uh_g->dest == htons(port))) {
                                                                                                                                                 ^
functions.c:1275:80: error: 'struct udphdr' has no member named 'source'
   if(eth_hg->ether_type == htons(ETHERTYPE_IP) && iph_g->protocol == 17 && uh_g->source == htons(port) && (uh_g->dest == htons(port + 1) || uh_g->dest == htons(port))) {
                                                                                ^
functions.c:1275:112: error: 'struct udphdr' has no member named 'dest'
   if(eth_hg->ether_type == htons(ETHERTYPE_IP) && iph_g->protocol == 17 && uh_g->source == htons(port) && (uh_g->dest == htons(port + 1) || uh_g->dest == htons(port))) {
                                                                                                                ^
functions.c:1275:145: error: 'struct udphdr' has no member named 'dest'
   if(eth_hg->ether_type == htons(ETHERTYPE_IP) && iph_g->protocol == 17 && uh_g->source == htons(port) && (uh_g->dest == htons(port + 1) || uh_g->dest == htons(port))) {
                                                                                                                                                 ^
make[3]: *** [functions.o] Error 1
make[3]: Leaving directory `/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5'
make[2]: *** [/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/build_dir/target-mipsel_24kc_musl-1.1.16/dhtest-1.5/.built] Error 2
make[2]: Leaving directory `/share/openwrt/lede-source-archer-c20v1-v17.01.4-release/package/dhtest'
make[1]: *** [package/dhtest/compile] Error 2
make[1]: Leaving directory `/share/openwrt/lede-source-archer-c20v1-v17.01.4-release'
make: *** [package/dhtest/compile] Error 2

该提问来源于开源项目:saravana815/dhtest

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答