Source: qdl
Version: 1.0+git20230411.3b22df2-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20240615 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> cc -g -O2 -Werror=implicit-function-declaration
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
> -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
> -Wall -pedantic -O2 -Wall -g `pkg-config --cflags libxml-2.0` -Wdate-time
> -D_FORTIFY_SOURCE=2 -c -o ks.o ks.c
> program.c: In function ‘load_erase_tag’:
> program.c:54:19: error: implicit declaration of function ‘calloc’
> [-Werror=implicit-function-declaration]
> 54 | program = calloc(1, sizeof(struct program));
> | ^~~~~~
> program.c:39:1: note: include ‘<stdlib.h>’ or provide a declaration of
> ‘calloc’
> 38 | #include "program.h"
> +++ |+#include <stdlib.h>
> 39 | #include "qdl.h"
> program.c:54:19: warning: incompatible implicit declaration of built-in
> function ‘calloc’ [-Wbuiltin-declaration-mismatch]
> 54 | program = calloc(1, sizeof(struct program));
> | ^~~~~~
> program.c:54:19: note: include ‘<stdlib.h>’ or provide a declaration of
> ‘calloc’
> program.c:67:17: error: implicit declaration of function ‘free’
> [-Werror=implicit-function-declaration]
> 67 | free(program);
> | ^~~~
> program.c:67:17: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
> program.c:67:17: warning: incompatible implicit declaration of built-in
> function ‘free’ [-Wbuiltin-declaration-mismatch]
> program.c:67:17: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
> program.c: In function ‘load_program_tag’:
> program.c:87:19: warning: incompatible implicit declaration of built-in
> function ‘calloc’ [-Wbuiltin-declaration-mismatch]
> 87 | program = calloc(1, sizeof(struct program));
> | ^~~~~~
> program.c:87:19: note: include ‘<stdlib.h>’ or provide a declaration of
> ‘calloc’
> program.c:109:17: warning: incompatible implicit declaration of built-in
> function ‘free’ [-Wbuiltin-declaration-mismatch]
> 109 | free(program);
> | ^~~~
> program.c:109:17: note: include ‘<stdlib.h>’ or provide a declaration of
> ‘free’
> patch.c: In function ‘patch_load’:
> patch.c:68:25: error: implicit declaration of function ‘calloc’
> [-Werror=implicit-function-declaration]
> 68 | patch = calloc(1, sizeof(struct patch));
> | ^~~~~~
> patch.c:38:8: note: include ‘<stdlib.h>’ or provide a declaration of ‘calloc’
> 37 | #include "qdl.h"
> +++ |+#include <stdlib.h>
> 38 |
> patch.c:68:25: warning: incompatible implicit declaration of built-in
> function ‘calloc’ [-Wbuiltin-declaration-mismatch]
> 68 | patch = calloc(1, sizeof(struct patch));
> | ^~~~~~
> patch.c:68:25: note: include ‘<stdlib.h>’ or provide a declaration of ‘calloc’
> patch.c:81:25: error: implicit declaration of function ‘free’
> [-Werror=implicit-function-declaration]
> 81 | free(patch);
> | ^~~~
> patch.c:81:25: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
> patch.c:81:25: warning: incompatible implicit declaration of built-in
> function ‘free’ [-Wbuiltin-declaration-mismatch]
> patch.c:81:25: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
> qdl.c: In function ‘parse_usb_desc’:
> qdl.c:134:19: warning: pointer of type ‘void *’ used in arithmetic
> [-Wpointer-arith]
> 134 | end = ptr + n;
> | ^
> qdl.c:142:13: warning: pointer of type ‘void *’ used in arithmetic
> [-Wpointer-arith]
> 142 | ptr += dev->bLength;
> | ^~
> qdl.c:147:13: warning: pointer of type ‘void *’ used in arithmetic
> [-Wpointer-arith]
> 147 | ptr += cfg->bLength;
> | ^~
> qdl.c:160:29: warning: pointer of type ‘void *’ used in arithmetic
> [-Wpointer-arith]
> 160 | ptr += ifc->bLength;
> | ^~
> qdl.c:177:37: warning: pointer of type ‘void *’ used in arithmetic
> [-Wpointer-arith]
> 177 | ptr += ept->bLength;
> | ^~
> qdl.c:197:37: warning: pointer of type ‘void *’ used in arithmetic
> [-Wpointer-arith]
> 197 | ptr += USB_DT_SS_EP_COMP_SIZE;
> | ^~
> qdl.c: In function ‘qdl_read’:
> qdl.c:335:45: warning: ISO C forbids empty initializer braces before C2X
> [-Wpedantic]
> 335 | struct usbdevfs_bulktransfer bulk = {};
> | ^
> qdl.c: In function ‘qdl_write’:
> qdl.c:349:45: warning: ISO C forbids empty initializer braces before C2X
> [-Wpedantic]
> 349 | struct usbdevfs_bulktransfer bulk = {};
> | ^
> sahara.c:75:17: warning: struct has no members [-Wpedantic]
> 75 | struct {
> | ^~~~~~
> util.c: In function ‘attr_as_unsigned’:
> cc1: some warnings being treated as errors
> util.c:94:31: error: implicit declaration of function ‘strtoul’; did you mean
> ‘strtok’? [-Werror=implicit-function-declaration]
> 94 | return (unsigned int) strtoul((char*)value, NULL, 0);
> | ^~~~~~~
> | strtok
> make[1]: *** [<builtin>: patch.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/06/15/qdl_1.0+git20230411.3b22df2-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240615;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240615&[email protected]&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.