Issue ID: 9841
Summary: Build failure on musl due to conflicting declarations
Target Milestone: ---
This is a forward of a Debian bug at https://bugs.debian.org/1008951
Gentoo bug at https://bugs.gentoo.org/546556
In essence, openldap #defines calloc ber_calloc and then #includes some system
headers, which happen to #include <sched.h>. musl's <sched.h> happens to
delcare calloc when _GNU_SOURCE is #defined. Since this is the case, musl's
declaration is diverted to ber_calloc and since one parameter has a subtly
different type, the declarations cause a conflict.
I think this is actually two bugs.
1. musl should not declare calloc in <sched.h>. Doing so also breaks libgccjit
2. openldap should not #define calloc before #including system headers.
Fixing either fixes the build failure. I think we should fix both.
The openldap side can be fixed by reordering the #define and the relevant
#include. You can find a working patch in the Debian bug above at
Does this look acceptable for inclusion into openldap?
You are receiving this mail because:
You are on the CC list for the issue.