This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug build/19443] New: build failures with -DDEBUG
- From: "msebor at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 11 Jan 2016 18:18:46 +0000
- Subject: [Bug build/19443] New: build failures with -DDEBUG
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=19443
Bug ID: 19443
Summary: build failures with -DDEBUG
Product: glibc
Version: 2.23
Status: NEW
Severity: normal
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: msebor at redhat dot com
CC: carlos at redhat dot com
Target Milestone: ---
A number of glibc source files contain debugging code guarded by the "#if
DEBUG" preprocessor conditional. For example, the resolv component defines and
uses the Dprint() macro that prints debugging output to stdout when the DEBUG
macro is defined. Unfortunately, the library fails to build with the DEBUG
macro defined. I couldn't find the DEBUG macro mentioned in the documentation
so perhaps it's not supported. Still, since it's used in the code it would be
nice if it worked. If it's not supposed to work, then perhaps the macro and
the code that depends on it could be removed.
The following list of errors was obtained by running make -k on powerpc64le
after configuring the library with CFLAGS="-O2 -g -DDEBUG=1":
gconv_dl.c:227:3: error: implicit declaration of function âprintfâ
[-Werror=implicit-function-declaration]
gconv_dl.c:227:3: error: incompatible implicit declaration of built-in function
âprintfâ [-Werror]
gconv_dl.c:235:1: error: âprint_allâ defined but not used
[-Werror=unused-function]
gconv_dl.c:227:3: error: implicit declaration of function âprintfâ
[-Werror=implicit-function-declaration]
gconv_dl.c:227:3: error: incompatible implicit declaration of built-in function
âprintfâ [-Werror]
gconv_dl.c:235:1: error: âprint_allâ defined but not used
[-Werror=unused-function]
rshift.c:45:5: error: implicit declaration of function âabortâ
[-Werror=implicit-function-declaration]
rshift.c:45:5: error: incompatible implicit declaration of built-in function
âabortâ [-Werror]
rshift.c:45:5: error: implicit declaration of function âabortâ
[-Werror=implicit-function-declaration]
rshift.c:45:5: error: incompatible implicit declaration of built-in function
âabortâ [-Werror]
./../include/libc-symbols.h:408:26: error: â__EI_my_mktimeâ aliased to
undefined symbol â__GI_my_mktimeâ
gconv_dl.c:227:3: error: implicit declaration of function âprintfâ
[-Werror=implicit-function-declaration]
gconv_dl.c:227:3: error: incompatible implicit declaration of built-in function
âprintfâ [-Werror]
gconv_dl.c:235:1: error: âprint_allâ defined but not used
[-Werror=unused-function]
crypt_util.c:274:5: error: format â%xâ expects argument of type âunsigned intâ,
but argument 2 has type âufc_longâ [-Werror=format=]
crypt_util.c:280:1: error: â_ufc_set_bitsâ defined but not used
[-Werror=unused-function]
crypt_util.c:274:5: error: format â%xâ expects argument of type âunsigned intâ,
but argument 2 has type âufc_longâ [-Werror=format=]
crypt_util.c:280:1: error: â_ufc_set_bitsâ defined but not used
[-Werror=unused-function]
res_send.c:503:9: error: pointer type mismatch in conditional expression
[-Werror]
res_send.c:503:9: error: pointer type mismatch in conditional expression
[-Werror]
--
You are receiving this mail because:
You are on the CC list for the bug.