Bug#1066372: baycomepp: FTBFS: eppfpga.c:240:63: error: implicit declaration of function ‘strcmp’ [-Werror=implicit-function-declaration]
Source: baycomepp
Version: 0.10-17
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):
> x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DCONFIGDIR=\"/usr/etc\" -DLOCALSTATEDIR=\"/usr/var\" -I../directx/include -I../directx/include/directx6 -I.. -fPIC -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 -Wl,-z,defs -Wall -MT snprintpkt.o -MD -MP -MF .deps/snprintpkt.Tpo -c -o snprintpkt.o snprintpkt.c
> rm -f libresident2.a
> rm -f libmisc.a
> ar cru libresident2.a
> ar cru libmisc.a
> ar: `u' modifier ignored since `D' is the default (see `U')
> ranlib libresident2.a
> ar: `u' modifier ignored since `D' is the default (see `U')
> ranlib libmisc.a
> ppdirectinit.c: In function ‘parport_ecp’:
> ppdirectinit.c:393:45: warning: variable ‘readIntrThreshold’ set but not used [-Wunused-but-set-variable]
> 393 | int fifo_depth, writeIntrThreshold, readIntrThreshold;
> | ^~~~~~~~~~~~~~~~~
> ppdirectinit.c:393:25: warning: variable ‘writeIntrThreshold’ set but not used [-Wunused-but-set-variable]
> 393 | int fifo_depth, writeIntrThreshold, readIntrThreshold;
> | ^~~~~~~~~~~~~~~~~~
> eppfpga.c: In function ‘main’:
> eppfpga.c:240:63: error: implicit declaration of function ‘strcmp’ [-Werror=implicit-function-declaration]
> 240 | for (tst = eppfpgatests; tst->name && strcmp(optarg, tst->name); tst++);
> | ^~~~~~
> eppfpga.c:52:1: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’
> 51 | #include "fpga.h"
> +++ |+#include <string.h>
> 52 |
> eppfpga.c:139:53: warning: variable ‘ppdev’ set but not used [-Wunused-but-set-variable]
> 139 | const char *ppuser = NULL, *ppkdrv = NULL, *ppdev = NULL;
> | ^~~~~
> eppfpga.c:139:37: warning: variable ‘ppkdrv’ set but not used [-Wunused-but-set-variable]
> 139 | const char *ppuser = NULL, *ppkdrv = NULL, *ppdev = NULL;
> | ^~~~~~
> eppfpga.c:139:21: warning: variable ‘ppuser’ set but not used [-Wunused-but-set-variable]
> 139 | const char *ppuser = NULL, *ppkdrv = NULL, *ppdev = NULL;
> | ^~~~~~
> eppfpga.c:138:67: warning: variable ‘w9xring0’ set but not used [-Wunused-but-set-variable]
> 138 | unsigned int iobase = 0x378, ntddkgenport = 0, ntdrv = 0, w9xring0 = 0, ppflags = 0;
> | ^~~~~~~~
> eppfpga.c:138:56: warning: variable ‘ntdrv’ set but not used [-Wunused-but-set-variable]
> 138 | unsigned int iobase = 0x378, ntddkgenport = 0, ntdrv = 0, w9xring0 = 0, ppflags = 0;
> | ^~~~~
> eppfpga.c:138:38: warning: variable ‘ntddkgenport’ set but not used [-Wunused-but-set-variable]
> 138 | unsigned int iobase = 0x378, ntddkgenport = 0, ntdrv = 0, w9xring0 = 0, ppflags = 0;
> | ^~~~~~~~~~~~
> fpgatests.c: In function ‘ledtest’:
> fpgatests.c:319:21: warning: operation on ‘led’ may be undefined [-Wsequence-point]
> 319 | led = (++led) & 3;
> | ~~~~^~~~~~~~~~~~~
> fpgatests.c: In function ‘chkledtest’:
> fpgatests.c:579:21: warning: operation on ‘led’ may be undefined [-Wsequence-point]
> 579 | led = (++led) & 3;
> | ~~~~^~~~~~~~~~~~~
> fpgatests.c: In function ‘eppafskmodemtest’:
> fpgatests.c:1414:29: warning: variable ‘txbyte’ set but not used [-Wunused-but-set-variable]
> 1414 | unsigned char stat, txbyte;
> | ^~~~~~
> fpgatests.c: In function ‘sppafskmodemtest’:
> fpgatests.c:1600:29: warning: variable ‘txbyte’ set but not used [-Wunused-but-set-variable]
> 1600 | unsigned char stat, txbyte;
> | ^~~~~~
> fpgatests.c: In function ‘saudio’:
> fpgatests.c:2692:43: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
> 2692 | lprintf(0, "read(%d) failed %i (%s)\n", sizeof(bufu)/2, ocnts, strerror(errno));
> | ~^ ~~~~~~~~~~~~~~
> | | |
> | int long unsigned int
> | %ld
> cc1: some warnings being treated as errors
> make[3]: *** [Makefile:559: eppfpga.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/03/13/baycomepp_0.10-17_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.
Reply to: