• Bug#1066272: bc: FTBFS: stack.c:40:5: error: implicit declaration of fu

    From Lucas Nussbaum@21:1/5 to All on Wed Mar 13 13:00:08 2024
    Source: bc
    Version: 1.07.1-3
    Severity: serious
    Justification: FTBFS
    Tags: trixie sid ftbfs
    User: lucas@debian.org
    Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef

    Hi,

    During a rebuild of all packages in sid, your package failed to build
    on amd64.

    This is most likely caused by a change in dpkg 1.22.6, that enabled -Werror=implicit-function-declaration. For more information, see https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration

    Relevant part (hopefully):
    gcc -DHAVE_CONFIG_H -I. -I.. -I./.. -I./../h -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-
    protection -D_POSIX_SOURCE -DDOT_IS_LAST -DDONTEXIT -Wall -funsigned-char -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
    -D_POSIX_SOURCE -DDOT_IS_LAST -DDONTEXIT -Wall -funsigned-char -c -o string.o string.c
    stack.c: In function ‘dc_binop’:
    stack.c:40:5: error: implicit declaration of function ‘checkferror_output’ [-Werror=implicit-function-declaration]
    40 | checkferror_output(stderr); \
    | ^~~~~~~~~~~~~~~~~~
    stack.c:91:17: note: in expansion of macro ‘Empty_Stack’
    91 | Empty_Stack;
    | ^~~~~~~~~~~
    misc.c: In function ‘dc_show_id’:
    misc.c:92:9: error: implicit declaration of function ‘checkferror_output’ [-Werror=implicit-function-declaration]
    92 | checkferror_output(fp);
    | ^~~~~~~~~~~~~~~~~~
    misc.c: In function ‘dc_system’:
    misc.c:141:17: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    141 | system(tmpstr);
    | ^~~~~~~~~~~~~~
    misc.c:145:9: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    145 | system(s);
    | ^~~~~~~~~
    string.c: In function ‘dc_out_str’:
    string.c:97:9: error: implicit declaration of function ‘checkferror_output’ [-Werror=implicit-function-declaration]
    97 | checkferror_output(stdout);
    | ^~~~~~~~~~~~~~~~~~
    string.c: In function ‘dc_readstring’:
    string.c:173:9: error: implicit declaration of function ‘checkferror_input’ [-Werror=implicit-function-declaration]
    173 | checkferror_input(fp);
    | ^~~~~~~~~~~~~~~~~
    eval.c: In function ‘input_fil’:
    eval.c:107:9: error: implicit declaration of function ‘checkferror_input’ [-Werror=implicit-function-declaration]
    107 | checkferror_input(input_fil_fp);
    | ^~~~~~~~~~~~~~~~~
    eval.c: In function ‘dc_func’:
    eval.c:312:33: error: implicit declaration of function ‘checkferror_output’ [-Werror=implicit-function-declaration]
    312 | checkferror_output(stderr);
    | ^~~~~~~~~~~~~~~~~~
    dc.c: In function ‘bug_report_info’:
    dc.c:64:9: error: implicit declaration of function ‘checkferror_output’ [-Werror=implicit-function-declaration]
    64 | checkferror_output(stdout);
    | ^~~~~~~~~~~~~~~~~~
    cc1: some warnings being treated as errors
    make[4]: *** [Makefile:378: misc.o] Error 1


    The full build log is available from: http://qa-logs.debian.net/2024/03/13/bc_1.07.1-3_unstable.log

    All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lucas@debian.org
    or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

    A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

    If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects

    If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)