Source: sc
Version: 7.16-4.1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@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 -Wall -DSYSV3 -ffloat-store -g -O2 -Werror=implicit-function-declaration
> -ffile-prefix-map=/<>=. -fstack-protector-strong
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
> -DDFLT_PAGER=\"less\" -DSIGVOID -DSAVENAME=\"SC.SAVE\" -c sc.c
> pipe.c: In function ‘getnum’:
> pipe.c:39:16: warning: suggest explicit braces to avoid ambiguous ‘else’
> [-Wdangling-else]
>39 | if (p)
> |^
> In file included from pipe.c:12:
> pipe.c: In function ‘doquery’:
> pipe.c:311:11: warning: zero-length gnu_printf format string
> [-Wformat-zero-length]
> 311 | error("");
> | ^~
> sc.h:46:101: note: in definition of macro ‘error’
>46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) &&
> !move(1,0) && !clrtoeol() && printw(format, ## msg))
> |
> ^~
> pipe.c: In function ‘getnum’:
> pipe.c:49:13: warning: ignoring return value of ‘write’ declared with
> attribute ‘warn_unused_result’ [-Wunused-result]
>49 | write(fd, line, strlen(line));
> | ^
> pipe.c: In function ‘fgetnum’:
> pipe.c:92:13: warning: ignoring return value of ‘write’ declared with
> attribute ‘warn_unused_result’ [-Wunused-result]
>92 | write(fd, line, strlen(line));
> | ^
> pipe.c: In function ‘getstring’:
> pipe.c:117:13: warning: ignoring return value of ‘write’ declared with
> attribute ‘warn_unused_result’ [-Wunused-result]
> 117 | write(fd, line, strlen(line));
> | ^
> pipe.c: In function ‘getexp’:
> pipe.c:149:13: warning: ignoring return value of ‘write’ declared with
> attribute ‘warn_unused_result’ [-Wunused-result]
> 149 | write(fd, line, strlen(line));
> | ^
> pipe.c: In function ‘getformat’:
> pipe.c:163:5: warning: ignoring return value of ‘write’ declared with
> attribute ‘warn_unused_result’ [-Wunused-result]
> 163 | write(fd, line, strlen(line));
> | ^
> pipe.c: In function ‘getfmt’:
> pipe.c:182:13: warning: ignoring return value of ‘write’ declared with
> attribute ‘warn_unused_result’ [-Wunused-result]
> 182 | write(fd, line, strlen(line));
> | ^
> pipe.c: In function ‘getframe’:
> pipe.c:206:5: warning: ignoring return value of ‘write’ declared with
> attribute ‘warn_unused_result’ [-Wunused-result]
> 206 | write(fd, line, strlen(line));
> | ^
> pipe.c: In function ‘getrange’:
> pipe.c:249:5: warning: ignoring return value of ‘write’ declared with
> attribute ‘warn_unused_result’ [-Wunused-result]
> 249 | write(fd, line, strlen(line));
> | ^
> pipe.c: In function ‘doeval’:
> pipe.c:271:5: warning: ignoring return value of ‘write’ declared with
> attribute ‘warn_unused_result’ [-Wunused-result]
> 271 | write(fd, line, strlen(line));
> | ^
> pipe.c: In function ‘doseval’:
> pipe.c:288:9: warning: ignoring return value of ‘write’ declared with
> attribute ‘warn_unused_result’ [-Wunused-result]
> 288 | write(fd, s, strlen(s));
> | ^~~
> pipe.c:289:5: warning: ignoring return value of ‘write’ declared with
> attribute ‘warn_unused_result’ [-Wunused-result]
> 289 | write(fd, "\n", 1);
> | ^~
> pipe.c: In function ‘doquery’:
> pipe.c:305:9: warning: ignoring return value of ‘write’ declared with
> attribute ‘warn_unused_result’ [-Wunused-result]
> 305 | write(fd, line, strlen(line));
> | ^
> pipe.c:306:9: warning: ignoring return value of ‘write’ declared with
> attribute ‘warn_unused_result’ [-Wunused-result]
> 306 | write(fd, "\n", 1);
> | ^~
> pipe.c: In function ‘dogetkey’:
> pipe.c:347:5: warning: ignoring return value of ‘write’ declared with
> attribute ‘warn_unused_result’ [-Wunused-result]
> 347 | write(macrofd, line, len);
> | ^
> pipe.c: In function ‘dostat’:
> pipe.c:358:5: warning: ignoring return value of ‘write’