[Buildroot] [PATCH] package/libnspr: disable for musl toolchains
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sat Aug 29 18:18:41 UTC 2015
Dear Romain Naour,
On Sat, 29 Aug 2015 19:42:11 +0200, Romain Naour wrote:
> libnspr use getprotobyname_r() which is not available on musl.
>
> Also there is another error due to missing _PR_HAVE_GETHOSTBYNAME2 define:
> prnetdb.c: In function ‘PR_GetIPNodeByName’:
> prnetdb.c:898:2: error: #error "Unknown name-to-address translation function"
> #error "Unknown name-to-address translation function"
>
> _PR_HAVE_GETHOSTBYNAME2 is only set in pr/include/md/_linux.h if __GLIBC__
> is defined.
>
> To conclude, libnspr is not ready for musl.
> Add reverse dependency on ecryptfs-utils and libnss.
>
> Fixes:
> http://autobuild.buildroot.net/results/c75/c756f82dfc49611fa3f650d9cf2a71b59d23c3d0/
>
> Signed-off-by: Romain Naour <romain.naour at openwide.fr>
Could you instead give a try to
http://git.alpinelinux.org/cgit/aports/tree/main/nspr/fix-getproto.patch ?
Generally speaking, for musl compatibility issues, always look at
http://git.alpinelinux.org/cgit/aports/tree/main/, it very often
contains interesting patches.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list