Source: mac-fdisk
Version: 0.1-18.1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20241228 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, this package failed to build
on i386.

This package currently has binary packages on i386, so this is a regression.

Relevant part (hopefully):
> cc -O2 -g -Wall   -c -o pdisk.o pdisk.c
> In file included from pdisk.c:43:
> kernel-defs.h:18:9: warning: "_IOC_SIZEBITS" redefined
>    18 | #define _IOC_SIZEBITS   13
>       |         ^~~~~~~~~~~~~
> In file included from /usr/lib/linux/uapi/x86/asm/ioctl.h:1,
>                  from /usr/include/linux/ioctl.h:5,
>                  from /usr/include/asm-generic/ioctls.h:5,
>                  from /usr/lib/linux/uapi/x86/asm/ioctls.h:1,
>                  from /usr/include/i386-linux-gnu/bits/ioctls.h:23,
>                  from /usr/include/i386-linux-gnu/sys/ioctl.h:26,
>                  from pdisk.c:42:
> /usr/include/asm-generic/ioctl.h:32:10: note: this is the location of the 
> previous definition
>    32 | # define _IOC_SIZEBITS  14
>       |          ^~~~~~~~~~~~~
> kernel-defs.h:19:9: warning: "_IOC_DIRBITS" redefined
>    19 | #define _IOC_DIRBITS    3
>       |         ^~~~~~~~~~~~
> /usr/include/asm-generic/ioctl.h:36:10: note: this is the location of the 
> previous definition
>    36 | # define _IOC_DIRBITS   2
>       |          ^~~~~~~~~~~~
> pdisk.c: In function ‘do_create_partition’:
> pdisk.c:469:13: error: implicit declaration of function ‘strncmp’ 
> [-Wimplicit-function-declaration]
>   469 |         if (strncmp(type_name, kFreeType, DPISTRLEN) == 0) {
>       |             ^~~~~~~
> pdisk.c:52:1: note: include ‘<string.h>’ or provide a declaration of ‘strncmp’
>    51 | #include "version.h"
>   +++ |+#include <string.h>
>    52 | 
> In file included from partition_map.h:28,
>                  from pdisk.c:49:
> dpme.h:48:25: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘unsigned 
> int’ is expected in a call to built-in function declared without prototype 
> [-Wbuiltin-declaration-mismatch]
>    48 | #define DPISTRLEN       32
>       |                         ^~
> pdisk.c:469:43: note: in expansion of macro ‘DPISTRLEN’
>   469 |         if (strncmp(type_name, kFreeType, DPISTRLEN) == 0) {
>       |                                           ^~~~~~~~~
> <built-in>: note: built-in ‘strncmp’ declared here
> dpme.h:48:25: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘unsigned 
> int’ is expected in a call to built-in function declared without prototype 
> [-Wbuiltin-declaration-mismatch]
>    48 | #define DPISTRLEN       32
>       |                         ^~
> pdisk.c:473:42: note: in expansion of macro ‘DPISTRLEN’
>   473 |         if (strncmp(type_name, kMapType, DPISTRLEN) == 0) {
>       |                                          ^~~~~~~~~
> <built-in>: note: built-in ‘strncmp’ declared here
> pdisk.c:439:10: warning: unused variable ‘mult’ [-Wunused-variable]
>   439 |     long mult;
>       |          ^~~~
> pdisk.c: In function ‘do_reorder’:
> pdisk.c:601:21: warning: unused variable ‘cur’ [-Wunused-variable]
>   601 |     partition_map * cur;
>       |                     ^~~
> make[1]: *** [<builtin>: pdisk.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/12/28/mac-fdisk_0.1-18.1_unstable-i386.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20241228;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20241228&fusertaguser=lu...@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 via email to