[Buildroot] [PATCH v2 1/1] package/numactl: Fix uClibc compile breakage after musl compile fix

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Feb 13 17:15:53 UTC 2016


Hello,

On Sat, 13 Feb 2016 17:31:19 +0100, Thomas Petazzoni wrote:

> Then I don't really understand. The original problem was:
> 
> syscall.c:118:41: error: missing binary operator before token "("
>  #if defined(__GLIBC__) && __GLIBC_PREREQ(2, 11)
> 
> But musl doesn't defined __GLIBC__. So I don't see how it would be
> different to do:
> 
>  #if defined(__GLIBC__) && __GLIBC_PREREQ(2, 11)
> 
> or
> 
>  #if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 11)
> 
> When neither __GLIBC__ nor __GLIBC_PREREQ are defined (which is the
> case with musl).

And indeed, with your new patch applied, the build still fails with
musl:

syscall.c:118:46: error: missing binary operator before token "("
 #if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 11)

This really needs to be within a #if defined(__GLIBC__).

Can you submit a patch that fixes this, and test it with glibc, uclibc
and musl?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list