#20328: mac-telnet compilation error (musl)
------------------------+------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Keywords: mac-telnet |
------------------------+------------------------
{{{
make[3]: Entering directory `/home/development/src/openwrt-
trunk/openwrt/feeds/packages/net/mac-telnet'
. /home/development/src/openwrt-trunk/openwrt/include/shell.sh; gzip -dc
/home/development/src/openwrt-trunk/openwrt/dl/mac-
telnet-2014-09-23-269a5d7d53b59a2e4657ad3689e46ac057c22e28.tar.gz | tar -C
/home/development/src/openwrt-trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/mac-telnet-2014-09-23/.. -xf -
touch /home/development/src/openwrt-trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/mac-
telnet-2014-09-23/.prepared_99d0700eb0050848133bdc552abfbaa7
rm -f /home/development/src/openwrt-trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10/stamp/.mac-telnet_installed
(cd /home/development/src/openwrt-trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/mac-telnet-2014-09-23/./; if [ -x ./configure ];
then find /home/development/src/openwrt-trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/mac-telnet-2014-09-23/ -name config.guess | xargs -r
chmod u+w; find /home/development/src/openwrt-trunk/openwrt/build_dir
/target-mips_34kc_musl-1.1.10/mac-telnet-2014-09-23/ -name config.guess |
xargs -r -n1 cp --remove-destination /home/development/src/openwrt-
trunk/openwrt/scripts/config.guess; find /home/development/src/openwrt-
trunk/openwrt/build_dir/target-mips_34kc_musl-1.1.10/mac-
telnet-2014-09-23/ -name config.sub | xargs -r chmod u+w; find
/home/development/src/openwrt-trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/mac-telnet-2014-09-23/ -name config.sub | xargs -r
-n1 cp --remove-destination /home/development/src/openwrt-
trunk/openwrt/scripts/config.sub; AR="mips-openwrt-linux-musl-gcc-ar" AS
="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2
-mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-
variable -msoft-float -Wformat -Werror=format-security -fstack-protector
-D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-
sections -DTELNET_SUPPORT" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-
linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-
linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-
linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-
openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE
=mips-openwrt-linux-musl-size CFLAGS="-Os -pipe -mno-branch-likely
-mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-
but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror
=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now
-Wl,-z,relro -ffunction-sections -fdata-sections -DTELNET_SUPPORT "
CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-
saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float
-mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-
protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections
-fdata-sections -DTELNET_SUPPORT " CPPFLAGS="-I/home/development/src
/openwrt-trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10/usr/include -I/home/development/src/openwrt-
trunk/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include
-I/home/development/src/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/development/src
/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify
-I/home/development/src/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include "
LDFLAGS="-L/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10/usr/lib -L/home/development/src/openwrt-
trunk/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/lib
-L/home/development/src/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/lib -L/home/development/src
/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/lib -znow -zrelro -Wl,--gc-sections "
./configure --target=mips-openwrt-linux --host=mips-openwrt-linux
--build=x86_64-linux-gnu --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 /home/development/src/openwrt-trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/mac-telnet-2014-09-23/.configured_*
touch /home/development/src/openwrt-trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/mac-telnet-2014-09-23/.configured_yyyyyyyyyy
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-
saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float
-mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-
protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections
-fdata-sections -DTELNET_SUPPORT -I/home/development/src/openwrt-
trunk/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include
-I/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10/include -I/home/development/src/openwrt-
trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/development/src
/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify
-I/home/development/src/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include " CXXFLAGS="-Os -pipe -mno-
branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-
error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16
-Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections
-DTELNET_SUPPORT -I/home/development/src/openwrt-
trunk/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/usr/include
-I/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10/include -I/home/development/src/openwrt-
trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/development/src
/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify
-I/home/development/src/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include "
LDFLAGS="-L/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10/usr/lib -L/home/development/src/openwrt-
trunk/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/lib
-L/home/development/src/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/lib -L/home/development/src
/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/lib -znow -zrelro -Wl,--gc-sections "
make -j1 -C /home/development/src/openwrt-trunk/openwrt/build_dir/target-
mips_34kc_musl-1.1.10/mac-telnet-2014-09-23/. AR="mips-openwrt-linux-musl-
gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely
-mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-
but-set-variable -msoft-float -Wformat -Werror=format-security -fstack-
protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections
-fdata-sections -DTELNET_SUPPORT" LD=mips-openwrt-linux-musl-ld NM="mips-
openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-
openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-
openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY
=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump
SIZE=mips-openwrt-linux-musl-size CROSS="mips-openwrt-linux-musl-"
ARCH="mips" ;
make[4]: Entering directory `/home/development/src/openwrt-
trunk/openwrt/build_dir/target-mips_34kc_musl-1.1.10/mac-
telnet-2014-09-23'
mips-openwrt-linux-musl-gcc -Wall -Os -pipe -mno-branch-likely -mips32r2
-mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-
variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-
security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro
-ffunction-sections -fdata-sections -DTELNET_SUPPORT
-I/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
mips_34kc_musl-1.1.10/usr/include -I/home/development/src/openwrt-
trunk/openwrt/staging_dir/target-mips_34kc_musl-1.1.10/include
-I/home/development/src/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/development/src
/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify
-I/home/development/src/openwrt-trunk/openwrt/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include -c interfaces.c
interfaces.c: In function 'net_send_udp':
interfaces.c:185:5: error: 'struct udphdr' has no member named 'source'
udp->source = htons(sourceport);
^
interfaces.c:186:5: error: 'struct udphdr' has no member named 'dest'
udp->dest = htons(destport);
^
interfaces.c:187:5: error: 'struct udphdr' has no member named 'len'
udp->len = htons(sizeof(struct udphdr) + datalen);
^
interfaces.c:188:5: error: 'struct udphdr' has no member named 'check'
udp->check = 0;
^
interfaces.c:194:5: error: 'struct udphdr' has no member named 'check'
udp->check = udp_sum_calc((uint8_t *)&(ip->saddr), (uint8_t
*)&(ip->daddr), (uint8_t *)udp, sizeof(struct udphdr) + datalen);
^
interfaces.c:195:5: error: 'struct udphdr' has no member named 'check'
udp->check = htons(udp->check);
^
interfaces.c:195:24: error: 'struct udphdr' has no member named 'check'
udp->check = htons(udp->check);
^
make[4]: *** [interfaces.o] Error 1
make[4]: Leaving directory `/home/development/src/openwrt-
trunk/openwrt/build_dir/target-mips_34kc_musl-1.1.10/mac-
telnet-2014-09-23'
make[3]: *** [/home/development/src/openwrt-trunk/openwrt/build_dir
/target-mips_34kc_musl-1.1.10/mac-telnet-2014-09-23/.built] Error 2
make[3]: Leaving directory `/home/development/src/openwrt-
trunk/openwrt/feeds/packages/net/mac-telnet'
make[2]: *** [package/feeds/packages/mac-telnet/compile] Error 2
make[2]: Leaving directory `/home/development/src/openwrt-trunk/openwrt'
make[1]: *** [/home/development/src/openwrt-trunk/openwrt/staging_dir
/target-mips_34kc_musl-1.1.10/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/development/src/openwrt-trunk/openwrt'
make: *** [world] Error 2
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/20328>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets