[Pkg-telepathy-maintainers] Bug#1086079: telepathy-logger FTBFS on 32-bit with 64-bit time_t with gcc 14

Adrian Bunk bunk at debian.org
Sat Oct 26 13:14:26 BST 2024


Source: telepathy-logger
Version: 0.8.2-4.1
Severity: serious
Tags: ftbfs
X-Debbugs-Cc: Boyuan Yang <byang at debian.org>

https://buildd.debian.org/status/logs.php?pkg=telepathy-logger&ver=0.8.2-4.1

...
telepathy-logger.c: In function ‘log_handler’:
telepathy-logger.c:70:20: error: passing argument 1 of ‘localtime_r’ from incompatible pointer type [-Wincompatible-pointer-types]
   70 |       localtime_r (&(now.tv_sec), &tm);
      |                    ^~~~~~~~~~~~~
      |                    |
      |                    glong * {aka 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/limits.h:26,
                 from /usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h:210,
                 from /usr/lib/gcc/arm-linux-gnueabihf/14/include/syslimits.h:7,
                 from /usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h:34,
                 from /usr/lib/arm-linux-gnueabihf/glib-2.0/include/glibconfig.h:11,
                 from /usr/include/glib-2.0/glib/gtypes.h:34,
                 from /usr/include/glib-2.0/glib/galloca.h:34,
                 from /usr/include/glib-2.0/glib.h:32,
                 from telepathy-logger.c:23:
/usr/include/time.h:167:18: note: expected ‘const time_t * restrict’ {aka ‘const long long int * restrict’} but argument is of type ‘glong *’ {aka ‘long int *’}
  167 | extern struct tm*__REDIRECT_NTH (localtime_r, (const time_t *__restrict __t,
      |                  ^~~~~~~~~~~~~~
make[4]: *** [Makefile:528: telepathy-logger.o] Error 1


More information about the Pkg-telepathy-maintainers mailing list