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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"