[Bug build/19443] New: build failures with -DDEBUG

msebor at redhat dot com sourceware-bugzilla@sourceware.org
Mon Jan 11 18:18:00 GMT 2016


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.


More information about the Glibc-bugs mailing list