Bug#1008951: openldap FTBFS on musl-linux-any: conflicting declaration of calloc

Helmut Grohne helmut at subdivi.de
Mon Apr 4 21:18:15 BST 2022


Control: tags -1 + patch

On Mon, Apr 04, 2022 at 09:54:13PM +0200, Helmut Grohne wrote:
> The gentoo bug has a few more details and proposed two distinct
> workarounds:
>  a. Drop the _GNU_SOURCE define. Doing so makes musl's sched.h not emit
>     a calloc declaration. I don't know what other consequences this
>     would have.
>  b. Change LBER_LEN_T to size_t. I suppose doing so would break ABI on
>     64bit architectures.

Proposing a third one that practically works and has little risk of
breakage:

 c. Reorder the #define calloc vs #include <pthread.h>

This doesn't fix the root cause, but the symptom. :)

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: musl.patch
Type: text/x-diff
Size: 547 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-openldap-devel/attachments/20220404/f2f55375/attachment.patch>


More information about the Pkg-openldap-devel mailing list