Bug#1091286: xsok: FTBFS on armhf: showscore.c:75:15: error: passing argument 1 of ‘ctime’ from incompatible pointer type [-Wincompatible-pointer-types]
Source: xsok
Version: 1.02-21
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20241223 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, this package failed to build
on armhf.
This package currently has binary packages on armhf, so this is a regression.
Also, there are no known issues on amd64 or arm64 according to recent (a couple
days ago) rebuilds.
The rebuild was done using an armhf chroot on an AWS "m6g" instance (Graviton2
CPU).
Relevant part (hopefully):
> gcc -g -O2 -fno-strict-aliasing -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Dlinux -D__arm__ -D__arm32__ -U__arm -Uarm -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DONLINE_HELP -I /usr/include -DBSD_NETKIT -DXSOKDIR=\"/usr/share/games/xsok\" -DXSOKSAVE=\"/var/games/xsok\" -DHAVE_USLEEP -DDEBIAN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro mergescores.c -o mergescores
> In file included from /usr/include/arm-linux-gnueabihf/bits/libc-header-start.h:33,
> from /usr/include/stdio.h:28,
> from showscore.c:1:
> /usr/include/features.h:197:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
> 197 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
> | ^~~~~~~
> In file included from /usr/include/arm-linux-gnueabihf/bits/libc-header-start.h:33,
> from /usr/include/stdio.h:28,
> from mergescores.c:1:
> /usr/include/features.h:197:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
> 197 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
> | ^~~~~~~
> showscore.c: In function ‘checkfile’:
> showscore.c:75:15: error: passing argument 1 of ‘ctime’ from incompatible pointer type [-Wincompatible-pointer-types]
> 75 | z = ctime(&p[4]);
> | ^~~~~
> | |
> | long int *
> In file included from /usr/include/features.h:510:
> /usr/include/time.h:186:14: note: expected ‘const time_t *’ {aka ‘const long long int *’} but argument is of type ‘long int *’
> 186 | extern char *__REDIRECT_NTH (ctime, (const time_t *__timer), __ctime64);
> | ^~~~~~~~~~~~~~
> showscore.c:60:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 60 | fread(s, 4, NARGS, fp);
> | ^~~~~~~~~~~~~~~~~~~~~~
> showscore.c:64:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 64 | fread(type, 1, 8, fp);
> | ^~~~~~~~~~~~~~~~~~~~~
> showscore.c:68:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 68 | fread(s, 1, namelen, fp);
> | ^~~~~~~~~~~~~~~~~~~~~~~~
> showscore.c: In function ‘ReadHighscores’:
> showscore.c:38:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
> 38 | fread(ss, 4, 300, fp);
> | ^~~~~~~~~~~~~~~~~~~~~
> make[3]: *** [<builtin>: showscore] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/12/23/xsok_1.02-21_unstable-armhf.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20241223;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20241223&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: