• Bug#1066517: pd-hcs: FTBFS: stat.c:123:17: error: implicit declaration

    From Lucas Nussbaum@21:1/5 to All on Wed Mar 13 13:30:01 2024
    Source: pd-hcs
    Version: 0.2.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):
    cc -DPD -I "/usr/include/pd" -DUNIX -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -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 -o canvas_name.pd_linux.o -c canvas_name.c
    ++++ info: making folder_list.pd_linux.o in lib hcs
    classpath.c: In function ‘classpath_setup’:
    classpath.c:138:38: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time]
    138 | logpost(NULL, 4, "\tcompiled on "__DATE__" at "__TIME__ " ");
    | ^~~~~~~~
    classpath.c:138:52: warning: macro "__TIME__" might prevent reproducible builds [-Wdate-time]
    138 | logpost(NULL, 4, "\tcompiled on "__DATE__" at "__TIME__ " ");
    | ^~~~~~~~
    stat.c: In function ‘stat_output_error’:
    stat.c:123:17: error: implicit declaration of function ‘error’; did you mean ‘perror’? [-Werror=implicit-function-declaration]
    123 | error("[stat]: access denied: %s", x->x_filename->s_name);
    | ^~~~~
    | perror
    stat.c: In function ‘stat_setup’:
    stat.c:302:38: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time]
    302 | logpost(NULL, 4, "\tcompiled on "__DATE__" at "__TIME__ " ");
    | ^~~~~~~~
    stat.c:302:52: warning: macro "__TIME__" might prevent reproducible builds [-Wdate-time]
    302 | logpost(NULL, 4, "\tcompiled on "__DATE__" at "__TIME__ " ");
    | ^~~~~~~~
    passwd.c: In function ‘get_uid_from_arguments’:
    passwd.c:118:25: error: implicit declaration of function ‘error’; did you mean ‘perror’? [-Werror=implicit-function-declaration]
    118 | error("[passwd]: UID less than zero not allowed (%d)", (int)uid);
    | ^~~~~
    | perror
    passwd.c: In function ‘passwd_setup’:
    passwd.c:205:38: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time]
    205 | logpost(NULL, 4, "\tcompiled on "__DATE__" at "__TIME__ " ");
    | ^~~~~~~~
    passwd.c:205:52: warning: macro "__TIME__" might prevent reproducible builds [-Wdate-time]
    205 | logpost(NULL, 4, "\tcompiled on "__DATE__" at "__TIME__ " ");
    | ^~~~~~~~
    cc -DPD -I "/usr/include/pd" -DUNIX -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -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 -o folder_list.pd_linux.o -c folder_list.c
    ++++ info: making unsetenv.pd_linux.o in lib hcs
    cc -DPD -I "/usr/include/pd" -DUNIX -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -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 -o unsetenv.pd_linux.o -c unsetenv.c
    ++++ info: making screensize.pd_linux.o in lib hcs
    cc -DPD -I "/usr/include/pd" -DUNIX -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -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 -o screensize.pd_linux.o -c screensize.c
    ++++ info: making group.pd_linux.o in lib hcs
    cc -DPD -I "/usr/include/pd" -DUNIX -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -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 -o group.pd_linux.o -c group.c
    ++++ info: making cursor.pd_linux.o in lib hcs
    cc1: some warnings being treated as errors
    make[1]: *** [/usr/share/pd-lib-builder//Makefile.pdlibbuilder:987: passwd.pd_linux.o] Error 1


    The full build log is available from: http://qa-logs.debian.net/2024/03/13/pd-hcs_0.2.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)