Bug#1086231: libchamplain: FTBFS on 32-bit with 64-bit time_t: passing argument 1 of ‘gmtime’ from incompatible pointer type
Simon McVittie
smcv at debian.org
Tue Oct 29 09:35:09 GMT 2024
Source: libchamplain
Version: 0.12.21-1
Severity: serious
Tags: ftbfs trixie sid upstream
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: debian-arm at lists.debian.org
User: debian-arm at lists.debian.org
Usertags: armel armhf
Forwarded: https://gitlab.gnome.org/GNOME/libchamplain/-/issues/61
https://buildd.debian.org/status/fetch.php?pkg=libchamplain&arch=armhf&ver=0.12.21-1%2Bb2&stamp=1730190463&file=log
> ../champlain/champlain-network-tile-source.c:998:35: error: passing argument 1 of ‘gmtime’ from incompatible pointer type [-Wincompatible-pointer-types]
> 998 | struct tm *other_time = gmtime (&time->tv_sec);
> | ^~~~~~~~~~~~~
> | |
> | const glong * {aka const long int *}
This looks like delayed fallout from the 64-bit time_t transition. 'time'
is a GTimeVal, which has a fixed ABI ({ long tv_sec, long tv_usec }) which
is neither Y2038-compatible nor a match for the new ABI of struct timeval.
I've sent some bug reports upstream.
The armel build hasn't been tried yet, but I'm 99% confident that it will
fail in the same way.
In -ports world, x32 has the same build failure, and other 32-bit ports
like powerpc and sh4 probably will too.
smcv
More information about the pkg-gnome-maintainers
mailing list