From: Romain Naour <romain.naour@openwide.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/libnspr: disable for musl toolchains
Date: Sat, 29 Aug 2015 20:36:26 +0200 [thread overview]
Message-ID: <55E1FBAA.30306@openwide.fr> (raw)
In-Reply-To: <20150829201841.227bc47d@free-electrons.com>
Hi Thomas,
Le 29/08/2015 20:18, Thomas Petazzoni a ?crit :
> 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@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.
Ha! thanks.
But for this case it's not enough...
prnetdb.c: In function ?PR_GetIPNodeByName?:
prnetdb.c:895:2: error: #error "Unknown name-to-address translation function"
#error "Unknown name-to-address translation function"
But the packaging add some define :
http://git.alpinelinux.org/cgit/aports/tree/main/nspr/APKBUILD#n40
# ./nspr/pr/include/md/_linux.h tests only __GLIBC__ version
# to detect c-library features, list musl features here for now.
CFLAGS="$CFLAGS -D_PR_POLL_AVAILABLE -D_PR_HAVE_OFF64_T -D_PR_INET6
-D_PR_HAVE_INET_NTOP -D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO
-D_PR_INET6_PROBE
It build fine if (at least) -D_PR_HAVE_GETHOSTBYNAME2 is added to CFLAGS.
Best regards,
Romain
>
> Thanks,
>
> Thomas
>
next prev parent reply other threads:[~2015-08-29 18:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-29 17:42 [Buildroot] [PATCH] package/libnspr: disable for musl toolchains Romain Naour
2015-08-29 18:18 ` Thomas Petazzoni
2015-08-29 18:36 ` Romain Naour [this message]
2015-12-24 10:21 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55E1FBAA.30306@openwide.fr \
--to=romain.naour@openwide.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.