[Buildroot] [PATCH] package/pppd: disable for musl toolchains

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Jul 16 18:24:34 UTC 2016


Hello,

On Sat, 16 Jul 2016 18:08:18 +0200, Romain Naour wrote:
> For the same reason as for ipsec-tools [1], disable pppd for musl
> toolchains.
> It also include <sys/cdefs.h> which is not provided by musl [2].
> 
> This fixes a compilation error with musl libc because of undeclared
> __P and missing sys/cdefs.h include.
> 
> Propagate the dependency to network-manager and rp-pppoe
> packages.
> 
> [1] 33499484e457018203023cdfdd5286478f2ae381
> [2] http://wiki.musl-libc.org/wiki/FAQ#Q:_I.27m_trying_to_compile_something_against_musl_and_I_get_error_messages_about_sys.2Fcdefs.h
> 
> Signed-off-by: Romain Naour <romain.naour at gmail.com>
> ---
>  package/network-manager/Config.in | 1 +
>  package/pppd/Config.in            | 5 +++--
>  package/rp-pppoe/Config.in        | 5 +++--
>  3 files changed, 7 insertions(+), 4 deletions(-)

I've added a Config.in comment in the network-manager package, and
applied. Thanks!

It's a bit sad that we have to disable packages just because of silly
__P macros, but there are indeed tons of them in pppd :-/

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


More information about the buildroot mailing list