[Buildroot] [PATCH] make: fix build with glibc 2.27

Baruch Siach baruch at tkos.co.il
Fri Mar 16 10:21:58 UTC 2018


Hi Peter,
On Fri, Mar 16, 2018 at 10:57:02AM +0100, Peter Korsgaard wrote:
> >>>>> "Baruch" == Baruch Siach <baruch at tkos.co.il> writes:
> 
>  > glibc 2.27 changed _GNU_GLOB_INTERFACE_VERSION to 2. This triggers build
>  > of the internal glob implementation in make. This internal
>  > implementation needs the __alloca symbol that glibc does not define.
> 
>  > Add upstream patch that adds support for _GNU_GLOB_INTERFACE_VERSION 2.
> 
>  > Fixes:
>  > http://autobuild.buildroot.net/results/8ff/8ff06ad8438cfcac85577b24675dd1d66f7d3d03/
>  > http://autobuild.buildroot.net/results/5cc/5ccee6bb332e800e81052a3094746edde83403b1/
>  > http://autobuild.buildroot.net/results/841/8418f5ed56dacd6900946e7d56ad36ad03c7bf7e/
> 
>  > Signed-off-by: Baruch Siach <baruch at tkos.co.il>
> 
>  > diff --git a/package/make/make.mk b/package/make/make.mk
>  > index 5717628fa3e9..01cd2eaa18f2 100644
>  > --- a/package/make/make.mk
>  > +++ b/package/make/make.mk
>  > @@ -7,9 +7,11 @@
>  >  MAKE_VERSION = 4.2.1
>  >  MAKE_SOURCE = make-$(MAKE_VERSION).tar.bz2
>  >  MAKE_SITE = $(BR2_GNU_MIRROR)/make
>  > -MAKE_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
>  > +MAKE_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) host-pkgconf
> 
> The patch looks good, but why are you pulling in host-pkgconf?

Otherwise configure fails:

./configure: line 9666: PKG_PROG_PKG_CONFIG: command not found
./configure: line 9678: syntax error near unexpected token `GUILE,'
./configure: line 9678: `   PKG_CHECK_MODULES(GUILE, guile-2.0, have_guile=yes,'

This does not trigger without autoreconf since we disable guile support in 
make to break circular dependency IIRC.

baruch

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



More information about the buildroot mailing list