• Bug#1066544: tone-generator: FTBFS: indicator.c:68:9: error: implicit d

    From Lucas Nussbaum@21:1/5 to All on Wed Mar 13 13:40:02 2024
    Source: tone-generator
    Version: 1.6.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 -DPACKAGE_NAME=\"tone-generator\" -DPACKAGE_TARNAME=\"tone-generator\" -DPACKAGE_VERSION=\"1.6.1\" -DPACKAGE_STRING=\"tone-generator\ 1.6.1\" -DPACKAGE_BUGREPORT=\"janos.f.kovacs@nokia.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tone-generator\" -DVERSION=
    \"1.6.1\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -Drestrict=__
    restrict__ -I. -Wdate-time -D_FORTIFY_SOURCE=2 -O0 -g3 -I../src -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -D_REENTRANT -g -O2 -Werror=implicit-function-
    declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -fno-omit-frame-pointer -c -o rfc4733.o rfc4733.c
    stream.c: In function ‘stream_destroy’:
    stream.c:244:27: warning: variable ‘avgap’ set but not used [-Wunused-but-set-variable]
    244 | uint32_t avgap;
    | ^~~~~
    stream.c:243:27: warning: variable ‘avcpu’ set but not used [-Wunused-but-set-variable]
    243 | uint32_t avcpu;
    | ^~~~~
    stream.c:242:27: warning: variable ‘avcalc’ set but not used [-Wunused-but-set-variable]
    242 | uint32_t avcalc;
    | ^~~~~~
    stream.c:241:27: warning: variable ‘avbuf’ set but not used [-Wunused-but-set-variable]
    241 | uint32_t avbuf;
    | ^~~~~
    stream.c:240:27: warning: variable ‘flow’ set but not used [-Wunused-but-set-variable]
    240 | double flow;
    | ^~~~
    stream.c:239:27: warning: variable ‘freq’ set but not used [-Wunused-but-set-variable]
    239 | double freq;
    | ^~~~
    stream.c:237:27: warning: variable ‘strt’ set but not used [-Wunused-but-set-variable]
    237 | double strt;
    | ^~~~
    stream.c:236:27: warning: variable ‘upt’ set but not used [-Wunused-but-set-variable]
    236 | double upt;
    | ^~~
    stream.c: In function ‘stream_clean_buffer’:
    stream.c:399:46: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
    399 | for (i = 0, j = offs / 2; i < dcnt; i++, j++) {
    | ^
    indicator.c: In function ‘indicator_play’:
    indicator.c:68:9: error: implicit declaration of function ‘dtmf_stop’ [-Werror=implicit-function-declaration]
    68 | dtmf_stop(ausrv);
    | ^~~~~~~~~
    dtmf.c: In function ‘request_muting’:
    dtmf.c:257:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘dbus_bool_t’ {aka ‘unsigned int’} [-Wsign-compare]
    257 | if (ausrv != NULL && mute != new_mute) {
    | ^~
    gcc -DPACKAGE_NAME=\"tone-generator\" -DPACKAGE_TARNAME=\"tone-generator\" -DPACKAGE_VERSION=\"1.6.1\" -DPACKAGE_STRING=\"tone-generator\ 1.6.1\" -DPACKAGE_BUGREPORT=\"janos.f.kovacs@nokia.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tone-generator\" -DVERSION=
    \"1.6.1\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -Drestrict=__
    restrict__ -I. -Wdate-time -D_FORTIFY_SOURCE=2 -O0 -g3 -I../src -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -D_REENTRANT -g -O2 -Werror=implicit-function-
    declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -fno-omit-frame-pointer -c -o interact.o interact.c
    gcc -DPACKAGE_NAME=\"tone-generator\" -DPACKAGE_TARNAME=\"tone-generator\" -DPACKAGE_VERSION=\"1.6.1\" -DPACKAGE_STRING=\"tone-generator\ 1.6.1\" -DPACKAGE_BUGREPORT=\"janos.f.kovacs@nokia.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tone-generator\" -DVERSION=
    \"1.6.1\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -Drestrict=__
    restrict__ -I. -Wdate-time -D_FORTIFY_SOURCE=2 -O0 -g3 -I../src -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -D_REENTRANT -g -O2 -Werror=implicit-function-
    declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -fno-omit-frame-pointer -c -o notification.o notification.c
    cc1: some warnings being treated as errors
    gcc -DPACKAGE_NAME=\"tone-generator\" -DPACKAGE_TARNAME=\"tone-generator\" -DPACKAGE_VERSION=\"1.6.1\" -DPACKAGE_STRING=\"tone-generator\ 1.6.1\" -DPACKAGE_BUGREPORT=\"janos.f.kovacs@nokia.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tone-generator\" -DVERSION=
    \"1.6.1\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -Drestrict=__
    restrict__ -I. -Wdate-time -D_FORTIFY_SOURCE=2 -O0 -g3 -I../src -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -D_REENTRANT -g -O2 -Werror=implicit-function-
    declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wextra -fno-omit-frame-pointer -c -o main.o main.c
    make[2]: *** [Makefile:428: indicator.o] Error 1


    The full build log is available from: http://qa-logs.debian.net/2024/03/13/tone-generator_1.6.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)
  • From Debian Bug Tracking System@21:1/5 to All on Wed Mar 13 14:10:01 2024
    Processing control commands:

    tag -1 pending
    Bug #1066544 [src:tone-generator] tone-generator: FTBFS: indicator.c:68:9: error: implicit declaration of function ‘dtmf_stop’ [-Werror=implicit-function-declaration]
    Added tag(s) pending.

    --
    1066544: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066544
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike Gabriel@21:1/5 to All on Wed Mar 13 14:10:03 2024
    Control: tag -1 pending

    Hello,

    Bug #1066544 in tone-generator reported by you has been fixed in the
    Git repository and is awaiting an upload. You can see the commit
    message below and you can check the diff of the fix at:

    https://salsa.debian.org/ubports-team/tone-generator/-/commit/64482938c00443967d6c5966df38f8e2eb2b0d13

    ------------------------------------------------------------------------ debian/patches: Add 1001_implicit-function-declarations.patch. Fix FTBFS when building with -Werror=implicit-function-declaration. (Closes: #1066544).
    ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1066544

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Wed Mar 13 14:50:02 2024
    This is a multi-part message in MIME format...

    Your message dated Wed, 13 Mar 2024 13:41:36 +0000
    with message-id <E1rkOrQ-006WM1-6Z@fasolo.debian.org>
    and subject line Bug#1066544: fixed in tone-generator 1.6.1-4
    has caused the Debian Bug report #1066544,
    regarding tone-generator: FTBFS: indicator.c:68:9: error: implicit declaration of function ‘dtmf_stop’ [-Werror=implicit-function-declaration]
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1066544: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066544
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 13 Mar 2024 12:37:27 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-106.1 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
    FROMDEVELOPER,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,
    UNPARSEABLE_RELAY,USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 63; hammy, 150; neutral, 232; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:108, 0.000-+--H*RT:311
    Return-path: <lucas@debian.org>
    Received: from stravinsky.debian.org ([20