• Bug#1066263: xfonts-utils: FTBFS: ../fonttosfnt/util.c:89:10: error: im

    From Lucas Nussbaum@21:1/5 to All on Wed Mar 13 13:00:02 2024
    Source: xfonts-utils
    Version: 1:7.7+6
    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../fonttosfnt -Wdate-time -D_FORTIFY_SOURCE=2 -DXVENDORNAME=\"X.Org\ Foundation\" -I/usr/include/freetype2 -I/usr/include/libpng16 -DXVENDORNAMESHORT=\"X.Org\" -D_BSD_SOURCE -g -O2 -Werror=implicit-function-declaration -
    ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c ../fonttosfnt/write.c
    sed -e 's|__vendorversion__|"fonttosfnt 1.0.4" "X Version 11"|' -e 's|__xorgversion__|"fonttosfnt 1.0.4" "X Version 11"|' -e 's|__xservername__|Xorg|g' -e 's|__xconfigfile__|xorg.conf|g' -e 's|__projectroot__|/usr|g' -e 's|__apploaddir__||' -e 's|__
    appmansuffix__|1|g' -e 's|__libmansuffix__|3|g' -e 's|__adminmansuffix__|8|g' -e 's|__miscmansuffix__|7|g' -e 's|__filemansuffix__|5|g' < ../fonttosfnt/fonttosfnt.man > fonttosfnt.1
    In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
    from /usr/include/stdlib.h:26,
    from ../fonttosfnt/struct.c:24: /usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
    195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
    | ^~~~~~~
    In file included from /usr/include/time.h:25,
    from ../fonttosfnt/util.c:25:
    /usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
    195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
    | ^~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
    from /usr/include/stdio.h:27,
    from ../fonttosfnt/read.c:26:
    /usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
    195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
    | ^~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
    from /usr/include/stdio.h:27,
    from ../fonttosfnt/fonttosfnt.c:25: /usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
    195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
    | ^~~~~~~
    In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
    from /usr/include/stdio.h:27,
    from ../fonttosfnt/write.c:29: /usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
    195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
    | ^~~~~~~
    ../fonttosfnt/read.c: In function ‘readFile’: ../fonttosfnt/read.c:239:40: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘FT_Pos’ {aka ‘long int’} [-Wformat=]
    239 | fprintf(stderr, "size %d: %dx%d\n",
    | ~^
    | |
    | int
    | %ld
    240 | i,
    241 | face->available_sizes[i].x_ppem >> 6,
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    | |
    | FT_Pos {aka long int}
    ../fonttosfnt/read.c:239:43: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘FT_Pos’ {aka ‘long int’} [-Wformat=]
    239 | fprintf(stderr, "size %d: %dx%d\n",
    | ~^
    | |
    | int
    | %ld
    ......
    242 | face->available_sizes[i].y_ppem >> 6);
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    | |
    | FT_Pos {aka long int}
    ../fonttosfnt/util.c: In function ‘vsprintf_alloc’: ../fonttosfnt/util.c:89:10: error: implicit declaration of function ‘vasprintf’; did you mean ‘vsprintf’? [-Werror=implicit-function-declaration]
    89 | rc = vasprintf(&r, f, args);
    | ^~~~~~~~~
    | vsprintf
    cc1: some warnings being treated as errors
    make[3]: *** [Makefile:355: util.o] Error 1


    The full build log is available from: http://qa-logs.debian.net/2024/03/13/xfonts-utils_7.7+6_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)