Bug#1080998: gthumb FTBFS on 32 bit architectures with 64 bit time_t with gcc 14
Source: gthumb
Version: 3:3.12.6-1
Severity: serious
Tags: ftbfs
https://buildd.debian.org/status/logs.php?pkg=gthumb&ver=3%3A3.12.6-1%2Bb3
...
../gthumb/main-migrate-catalogs.c: In function ‘migration_for_each_file’:
../gthumb/main-migrate-catalogs.c:316:57: error: passing argument 1 of ‘localtime’ from incompatible pointer type [-Wincompatible-pointer-types]
316 | tm = localtime (&date);
| ^~~~~
| |
| long int *
In file included from /usr/include/features.h:510,
from /usr/include/arm-linux-gnueabihf/bits/libc-header-start.h:33,
from /usr/include/string.h:26,
from ../gthumb/main-migrate-catalogs.c:23:
/usr/include/time.h:141:19: note: expected ‘const time_t *’ {aka ‘const long long int *’} but argument is of type ‘long int *’
141 | extern struct tm *__REDIRECT_NTH (localtime, (const time_t *__timer),
| ^~~~~~~~~~~~~~
...
Reply to: