• Bug#1066708: matchbox-keyboard: FTBFS: main.c:167:19: error: implicit d

    From Lucas Nussbaum@21:1/5 to All on Wed Mar 13 15:00:02 2024
    Source: matchbox-keyboard
    Version: 0.2+git20160713-1
    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):
    /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/share\" -DPKGDATADIR=\"/usr/share/matchbox-keyboard\" -DPREFIX=\"/usr\" -g -Wall -fno-strict-aliasing -I/usr/include/freetype2 -I/usr/include/libpng16 -I/
    usr/include/libpng16 -I.. -I.. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o libmatchbox_keyboard_la-
    matchbox-keyboard-ui.lo `test -f 'matchbox-keyboard-ui.c' || echo './'`matchbox-keyboard-ui.c
    main.c: In function ‘mb_kbd_event_loop’:
    main.c:167:19: error: implicit declaration of function ‘mb_kbd_ui_handle_configure’ [-Werror=implicit-function-declaration]
    167 | mb_kbd_ui_handle_configure(ui,
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~
    /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/share\" -DPKGDATADIR=\"/usr/share/matchbox-keyboard\" -DPREFIX=\"/usr\" -g -Wall -fno-strict-aliasing -I/usr/include/freetype2 -I/usr/include/libpng16 -I/
    usr/include/libpng16 -I.. -I.. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o libmatchbox_keyboard_la-config-
    parser.lo `test -f 'config-parser.c' || echo './'`config-parser.c
    main.c:172:17: error: implicit declaration of function ‘mb_kbd_ui_update_display_size’ [-Werror=implicit-function-declaration]
    172 | mb_kbd_ui_update_display_size(ui);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    main.c:85:20: warning: variable ‘press_y’ set but not used [-Wunused-but-set-variable]
    85 | int press_x = 0, press_y = 0;
    | ^~~~~~~
    main.c:85:7: warning: variable ‘press_x’ set but not used [-Wunused-but-set-variable]
    85 | int press_x = 0, press_y = 0;
    | ^~~~~~~
    main.c: In function ‘main’:
    main.c:280:3: error: implicit declaration of function ‘mb_kbd_destroy’; did you mean ‘mb_kbd_ui_destroy’? [-Werror=implicit-function-declaration]
    280 | mb_kbd_destroy (kb);
    | ^~~~~~~~~~~~~~
    | mb_kbd_ui_destroy
    libmatchbox-keyboard.c: In function ‘mb_keyboard_destroy’: libmatchbox-keyboard.c:64:3: error: implicit declaration of function ‘mb_kbd_destroy’; did you mean ‘mb_kbd_ui_destroy’? [-Werror=implicit-function-declaration]
    64 | mb_kbd_destroy (kb);
    | ^~~~~~~~~~~~~~
    | mb_kbd_ui_destroy
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/share\" -DPKGDATADIR=\"/usr/share/matchbox-keyboard\" -DPREFIX=\"/usr\" -g -Wall -fno-strict-aliasing -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libpng16 -I.. -I.. -g
    -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c matchbox-keyboard-key.c -fPIC -DPIC -o .libs/libmatchbox_keyboard_la-
    matchbox-keyboard-key.o
    libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/share\" -DPKGDATADIR=\"/usr/share/matchbox-keyboard\" -DPREFIX=\"/usr\" -g -Wall -fno-strict-aliasing -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libpng16 -I.. -I.. -g
    -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c matchbox-keyboard-ui.c -fPIC -DPIC -o .libs/libmatchbox_keyboard_la-
    matchbox-keyboard-ui.o
    /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\"/usr/share\" -DPKGDATADIR=\"/usr/share/matchbox-keyboard\" -DPREFIX=\"/usr\" -g -Wall -fno-strict-aliasing -I/usr/include/freetype2 -I/usr/include/libpng16 -I/
    usr/include/libpng16 -I.. -I.. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o libmatchbox_keyboard_la-util-
    list.lo `test -f 'util-list.c' || echo './'`util-list.c
    cc1: some warnings being treated as errors
    make[4]: *** [Makefile:661: libmatchbox_keyboard_la-libmatchbox-keyboard.lo] Error 1


    The full build log is available from: http://qa-logs.debian.net/2024/03/13/matchbox-keyboard_0.2+git20160713-1_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)