Date: Fri, 26 Apr 2019 08:48:38 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 237577] libthr: unable to compile it with MALLOC_DEBUG Message-ID: <bug-237577-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237577 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@FreeBSD.org Reporter: alexandre.martins@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 =3D=3D 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 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237577-227>