[Buildroot] [PATCH 1/1] package/ipset: Fix compile error

Baruch Siach baruch at tkos.co.il
Sun Oct 26 16:00:29 UTC 2014


Hi Thomas,

On Sun, Oct 26, 2014 at 04:42:54PM +0100, Thomas Petazzoni wrote:
> Dear Bernd Kuhls,
> 
> On Sun, 19 Oct 2014 20:59:07 +0200, Bernd Kuhls wrote:
> > Error occured with an allyespackageconfig setup:
> > 
> > In file included from print.c:19:0:
> > print.c: In function 'ipset_print_ip':
> > ../include/libipset/data.h:150:1: error: inlining failed in call to 'ipset_data_test': call is unlikely and code size would grow [-Werror=inline]
> >  ipset_data_test(const struct ipset_data *data, enum ipset_opt opt)
> >  ^
> > print.c:273:21: error: called from here [-Werror=inline]
> >   if (ipset_data_test(data, cidropt)) {
> > 
> > Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
> > ---
> >  package/ipset/ipset.mk |    2 ++
> >  1 file changed, 2 insertions(+)
> 
> To fix the same problem, I've applied a slightly different fix, that
> simply removes -Werror altogether.
> 
> See
> http://git.buildroot.net/buildroot/commit/?id=a923b44112aa3bfdb42b12cc1bd2712a263c1a0c.

The presence of /usr/local/include directory in the include path still needs 
to be fixes by itself. See 
http://autobuild.buildroot.net/results/4f5/4f55c2415281c6204500efe28fe9e24c8ef73863/build-end.log. 
This comes from the AM_CPPFLAGS variable that is set in Make_global.am.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -


More information about the buildroot mailing list