[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 16:31:19 UTC 2016


Bernd,

On Sat, 13 Feb 2016 16:33:26 +0100, Bernd Kuhls wrote:

> yes, I did a sucessful build with the same musl defconfig which triggered 
> the build error first: https://git.busybox.net/buildroot/commit/package/
> numactl?id=21ed7a92fe5a771911ef06f97522e504d0eebbc2
> 
> Upstream committed the patch in the meantime: https://github.com/numactl/
> numactl/commit/3770bdc4fa7b9059db5cd2aa8bb09b50fa15e456

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).

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


More information about the buildroot mailing list