#19975: px5g-standalone fails to compile after r46117 / fortify-headers
-----------------------------+----------------------------------
Reporter: hnyman | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone: Chaos Calmer (trunk)
Component: base system | Version: Trunk
Keywords: fortify-headers |
-----------------------------+----------------------------------
I successfully compiled trunk rev 46115 earlier today, but now at r46117
the package px5g-standalone does not compile any more. (Toolchain rebuilt
after "make dirclean".)
The errors point toward the new fortify-headers stuff.
{{{
mips-openwrt-linux-musl-gcc -I. -Os -pipe -mno-branch-likely -mips32r2
-mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-
variable -msoft-float -mips16 -minterlink-mips16 -fstack-protector
-D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/Openwrt/trunk/staging_dir
/target-mips_34kc_musl-1.1.10/usr/include -I/Openwrt/trunk/staging_dir
/target-mips_34kc_musl-1.1.10/include -I/Openwrt/trunk/staging_dir
/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/include
-I/Openwrt/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify
-I/Openwrt/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include --std=gnu99 -Wall -Werror
-pedantic -L/Openwrt/trunk/staging_dir/target-
mips_34kc_musl-1.1.10/usr/lib -L/Openwrt/trunk/staging_dir/target-
mips_34kc_musl-1.1.10/lib -L/Openwrt/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/usr/lib -L/Openwrt/trunk/staging_dir
/toolchain-mips_34kc_gcc-4.8-linaro_musl-1.1.10/lib -znow -zrelro -o px5g
px5g.c library/x509write.c library/sha1.c library/timing.c library/rsa.c
library/base64.c library/bignum.c library/havege.c
In file included from px5g.c:21:0:
/Openwrt/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify/stdio.h:19:2: error:
#include_next is a GCC extension [-Werror]
#include_next <stdio.h>
^
In file included from px5g.c:22:0:
/Openwrt/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify/stdlib.h:19:2: error:
#include_next is a GCC extension [-Werror]
#include_next <stdlib.h>
^
In file included from px5g.c:22:0:
/Openwrt/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.8-linaro_musl-1.1.10/include/fortify/stdlib.h:22:2: error:
#include_next is a GCC extension [-Werror]
#include_next <limits.h>
...
}}}
One reason might be that the package's own makefile specifies rather
strict gcc options, creating possibly some conflict.
https://dev.openwrt.org/browser/trunk/package/utils/px5g-
standalone/src/Makefile
{{{
CFLAGS?=-O2
CFLAGS+=
SFLAGS:=--std=gnu99
WFLAGS:=-Wall -Werror -pedantic
LDFLAGS?=
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/19975>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets