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