[Bug 237577] libthr: unable to compile it with MALLOC_DEBUG
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Apr 26 08:48:41 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237577
Bug ID: 237577
Summary: libthr: unable to compile it with MALLOC_DEBUG
Product: Base System
Version: 12.0-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: alexandre.martins at stormshield.eu
Hi,
I'm currently trying to compile the libthr with more debug (-DMALLOC_DEBUG)
Unfortunately, something has activated more compiler check and now, that lib
doesn't compile.
Here is the error:
/home/jenkins/sources/libexec/rtld-elf/rtld_malloc.c:271:2: error: passing
'const char [2]' to parameter of type 'char *' discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
ASSERT(sz > 0);
^~~~~~~~~~~~~~
/home/jenkins/sources/libexec/rtld-elf/rtld_malloc.c:130:37: note: expanded
from macro 'ASSERT'
#define ASSERT(p) if (!(p)) botch("p")
^~~
/home/jenkins/sources/libexec/rtld-elf/rtld_malloc.c:310:4: error: passing
'const char [2]' to parameter of type 'char *' discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
ASSERT(op->ov_magic == MAGIC); /* make sure it was in use */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jenkins/sources/libexec/rtld-elf/rtld_malloc.c:130:37: note: expanded
from macro 'ASSERT'
#define ASSERT(p) if (!(p)) botch("p")
^~~
/home/jenkins/sources/libexec/rtld-elf/rtld_malloc.c:320:4: error: passing
'const char [2]' to parameter of type 'char *' discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
ASSERT(size < NBUCKETS);
^~~~~~~~~~~~~~~~~~~~~~~
/home/jenkins/sources/libexec/rtld-elf/rtld_malloc.c:130:37: note: expanded
from macro 'ASSERT'
#define ASSERT(p) if (!(p)) botch("p")
^~~
3 errors generated.
Can it be possible to fix that ?
Thank you
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list