Source: kannel Version: 1.4.5-18 Severity: serious Hello, after the time64_t transition, kannel started FTBFS on armel, armhf and where time_t is 64 bit defined.
gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/ -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o gw/bb_store_redis.o -c gw/bb_store_redis.c gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/ -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o gw/bb_store_spool.o -c gw/bb_store_spool.c gw/bb_store_redis.c: In function ‘store_redis_save’: gw/bb_store_redis.c:591:14: error: passing argument 1 of ‘time’ from incompatible pointer type [-Wincompatible-pointer-types] 591 | time(&msg->sms.time); | ^~~~~~~~~~~~~~ | | | long int * In file included from /usr/include/features.h:510, from /usr/include/unistd.h:25, from gw/bb_store_redis.c:66: /usr/include/time.h:85:15: note: expected ‘time_t *’ {aka ‘long long int *’} but argument is of type ‘long int *’ 85 | extern time_t __REDIRECT_NTH (time, (time_t *__timer), __time64); | ^~~~~~~~~~~~~~ gw/bb_store_spool.c: In function ‘store_spool_save’: gw/bb_store_spool.c:230:14: error: passing argument 1 of ‘time’ from incompatible pointer type [-Wincompatible-pointer-types] 230 | time(&msg->sms.time); | ^~~~~~~~~~~~~~ | | | long int * In file included from /usr/include/features.h:510, from /usr/include/unistd.h:25, from gw/bb_store_spool.c:65: /usr/include/time.h:85:15: note: expected ‘time_t *’ {aka ‘long long int *’} but argument is of type ‘long int *’ 85 | extern time_t __REDIRECT_NTH (time, (time_t *__timer), __time64); | ^~~~~~~~~~~~~~ make[2]: *** [Makefile:226: gw/bb_store_spool.o] Error 1 make[2]: *** Waiting for unfinished jobs.... gw/bb_store_file.c: In function ‘store_to_dict’: gw/bb_store_file.c:304:14: error: passing argument 1 of ‘time’ from incompatible pointer type [-Wincompatible-pointer-types] 304 | time(&msg->sms.time); | ^~~~~~~~~~~~~~ | | | long int * In file included from /usr/include/features.h:510, from /usr/include/errno.h:25, from gw/bb_store_file.c:71: /usr/include/time.h:85:15: note: expected ‘time_t *’ {aka ‘long long int *’} but argument is of type ‘long int *’ 85 | extern time_t __REDIRECT_NTH (time, (time_t *__timer), __time64); | ^~~~~~~~~~~~~~ make[2]: *** [Makefile:226: gw/bb_store_redis.o] Error 1 gw/bb_smscconn.c: In function ‘handle_split’: gw/bb_smscconn.c:237:18: error: passing argument 1 of ‘time’ from incompatible pointer type [-Wincompatible-pointer-types] 237 | time(&msg->sms.resend_time); | ^~~~~~~~~~~~~~~~~~~~~ | | | long int * In file included from /usr/include/features.h:510, from /usr/include/errno.h:25, from gw/bb_smscconn.c:71: /usr/include/time.h:85:15: note: expected ‘time_t *’ {aka ‘long long int *’} but argument is of type ‘long int *’ 85 | extern time_t __REDIRECT_NTH (time, (time_t *__timer), __time64); | ^~~~~~~~~~~~~~ gw/bb_smscconn.c: In function ‘bb_smscconn_send_failed’: gw/bb_smscconn.c:355:17: error: passing argument 1 of ‘time’ from incompatible pointer type [-Wincompatible-pointer-types] 355 | time(&sms->sms.resend_time); | ^~~~~~~~~~~~~~~~~~~~~ | | I don't know how to patch it, and I don't know if changing that struct size is source of troubles (is this a struct sent over network?) G.
OpenPGP_signature.asc
Description: OpenPGP digital signature