[Buildroot] [PATCH] openswan: fix autobuild failures with uClibc-ng
Waldemar Brodkorb
wbx at openadk.org
Tue Feb 14 09:00:40 UTC 2017
Hi Thomas,
Thomas Petazzoni wrote,
> Hello,
>
> On Mon, 13 Feb 2017 22:30:45 +0100, Waldemar Brodkorb wrote:
> > Add patch to fix following autobuild failures:
> >
> > Fixes:
> > http://autobuild.buildroot.net/results/31cf680c48bec8ba4450a6fe2156cb441c4dd660
> > http://autobuild.buildroot.net/results/95220f231810cb12ba97a6b44af79f84af706c82
> >
> > Signed-off-by: Waldemar Brodkorb <wbx at openadk.org>
> > ---
> > .../0001-uClibc-ng-is-compatible-to-glibc.patch | 39 ++++++++++++++++++++++
> > 1 file changed, 39 insertions(+)
> > create mode 100644 package/openswan/0001-uClibc-ng-is-compatible-to-glibc.patch
>
> Thanks for the patch. While it is nice to fix this warning, there are
> plenty of other warnings spit out by the openswan build process. I
> believe the real thing to fix is the usage of -Werror by openswan.
> Maybe passing WERROR=' ' on the command line is enough?
But the warning is wrong in case of uClibc-ng, because the symbol is
removed for a while and malloc(0) is compatible to glibc behaviour.
Furthermore it is the only warning with breaks the compilation with
-Werror. So at the moment this should be enough. Maybe -Werror can
be disabled in a second patch later, if any trouble occurs.
best regards
Waldemar
More information about the buildroot
mailing list