#19470: otrx - package/utils/otrx fails to compile with musl
-------------------------+----------------------------------
Reporter: diizzyy | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone: Chaos Calmer (trunk)
Component: packages | Version: Trunk
Keywords: trunk, otrx |
-------------------------+----------------------------------
{{{
mips-openwrt-linux-musl-gcc -Os -pipe -mno-branch-likely -mips32r2
-mtune=4kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-
variable -msoft-float -Wall -o otrx otrx.c
otrx.c: In function 'otrx_check':
otrx.c:162:2: warning: implicit declaration of function 'bswap_32'
[-Wimplicit-function-declaration]
if (le32_to_cpu(hdr.magic) != TRX_MAGIC) {
^
/tmp/cc3pESi1.o: In function `main':
otrx.c:(.text.startup+0x1bc): undefined reference to `bswap_32'
otrx.c:(.text.startup+0x1d4): undefined reference to `bswap_32'
otrx.c:(.text.startup+0x1fc): undefined reference to `bswap_32'
otrx.c:(.text.startup+0x294): undefined reference to `bswap_32'
otrx.c:(.text.startup+0x2a4): undefined reference to `bswap_32'
/tmp/cc3pESi1.o:otrx.c:(.text.startup+0x2d8): more undefined references to
`bswap_32' follow
collect2: error: ld returned 1 exit status
make[4]: *** [otrx] Error 1
make[4]: Leaving directory `/home/diizzy/openwrt/trunk-brcm-
last/trunk/build_dir/target-mips_mips32r2_musl-1.1.7/otrx'
make[3]: *** [/home/diizzy/openwrt/trunk-brcm-last/trunk/build_dir/target-
mips_mips32r2_musl-1.1.7/otrx/.built] Error 2
make[3]: Leaving directory `/home/diizzy/openwrt/trunk-brcm-
last/trunk/package/utils/otrx'
make[2]: *** [package/utils/otrx/compile] Error 2
make[2]: Leaving directory `/home/diizzy/openwrt/trunk-brcm-last/trunk'
make[1]: *** [/home/diizzy/openwrt/trunk-brcm-last/trunk/staging_dir
/target-mips_mips32r2_musl-1.1.7/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/diizzy/openwrt/trunk-brcm-last/trunk'
make: *** [world] Error 2
Trunk about 9h old.
--
Ticket URL: <https://dev.openwrt.org/ticket/19470>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets