• Bug#1066053: sgrep FTBFS due to -Werror=implicit-function-declaration

    From Helmut Grohne@21:1/5 to All on Mon Mar 11 22:00:01 2024
    Source: sgrep
    Version: 1.94a-5
    Severity: serious
    Tags: ftbfs

    Due to the time64 transition, default build flags now include -Werror=implicit-function-declaration. This happens to cause a build
    failure for sgrep:

    | gcc -DHAVE_CONFIG_H -I. -DDATADIR="\"/usr/share/sgrep\"" -DSYSCONFDIR="\"/etc\"" -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 -c -o index_main.o index_main.c | sysdeps.c: In function ‘check_memory_leaks’:
    | sysdeps.c:489:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
    | 489 | "Memory leak: %d blocks having %d bytes total size\n",
    | | ~^
    | | |
    | | int
    | | %ld
    | sysdeps.c:496:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
    | 496 | "\t%s:%d: %d bytes\n",block->file,block->line,block->size);
    | | ~^ ~~~~~~~~~~~
    | | | |
    | | int size_t {aka long unsigned int}
    | | %ld
    | index_main.c: In function ‘parse_index_options’:
    | index_main.c:84:21: error: implicit declaration of function ‘strcmp’ [-Werror=implicit-function-declaration]
    | 84 | if (strcmp(*argv,"--")==0) return i+1;
    | | ^~~~~~
    | index_main.c:2:1: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’
    | 1 | #include "sgrep.h"
    | +++ |+#include <string.h>
    | 2 |
    | index_main.c:138:41: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time]
    | 138 | VERSION,__DATE__);
    | | ^~~~~~~~
    | index_main.c: In function ‘index_main’:
    | index_main.c:241:13: error: implicit declaration of function ‘index_query’ [-Werror=implicit-function-declaration]
    | 241 | if (index_query(&options,argc-end_options,argv+end_options)
    | | ^~~~~~~~~~~
    | cc1: some warnings being treated as errors
    | make[2]: *** [Makefile:488: index_main.o] Error 1

    Helmut

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

    Your message dated Fri, 15 Mar 2024 08:56:41 +0000
    with message-id <E1rl3Mn-00GHz8-UL@fasolo.debian.org>
    and subject line Bug#1066053: fixed in sgrep 1.94a-6
    has caused the Debian Bug report #1066053,
    regarding sgrep FTBFS due to -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.)


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

    Received: (at submit) by bugs.debian.org; 11 Mar 2024 20:47:08 +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=-1.5 required=4.0 tests=BAYES_00,DATE_IN_PAST_06_12,
    SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,WORD_WITHOUT_VOWELS
    autolearn=no autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 29; hammy, 149; neutral, 42; spammy,
    1. spammytokens:0.978-+--d hammytokens:0.000-+--pkgbuilddir,
    0.000-+--PKGBUILDDIR, 0.000-+--Wdatetime, 0.000-+--wdatetime,
    0.000-+--Wdate-time
    Return-path: <helmut@subdivi.de>
    Received: from isilmar-4.linta.de ([136.243.71.142]:60216)
    by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
    (Exim 4.94.2)
    (envelope-from <helmut@