Source: ifmail Version: 2.14tx8.10-30 Severity: normal Tags: ftbfs patch Dear Maintainer,
Build fails with following error: zmsend.c: In function ‘sendfile’: zmsend.c:167:20: error: passing argument 1 of ‘time’ from incompatible pointer type [-Wincompatible-pointer-types] 167 | (void)time(&startime); | ^~~~~~~~~ | | | long int * In file included from /usr/include/features.h:510, from /usr/include/hppa-linux-gnu/sys/types.h:25, from zmsend.c:1: /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); Full log: https://buildd.debian.org/status/fetch.php?pkg=ifmail&arch=hppa&ver=2.14tx8.10-30&stamp=1736100342&raw=0 The variables startime and endtime have wrong type (long). Type should be time_t. The attached patch fixes the build on hppa. Regards, Dave Anglin -- System Information: Debian Release: trixie/sid APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable') Architecture: hppa (parisc64) Kernel: Linux 6.12.8-dirty (SMP w/4 CPU threads) Kernel taint flags: TAINT_WARN Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system)
--- ifcico/tcpproto.c.save 2025-01-06 17:02:12.000000000 -0500 +++ ifcico/tcpproto.c 2025-01-06 17:17:47.863715417 -0500 @@ -31,7 +31,7 @@ static char txbuf[2048]; static char rxbuf[2048]; static int rx_type; -static long startime,endtime; +static time_t startime,endtime; static off_t rxbytes,sbytes; static int sendfile(char *,char *); --- ifcico/zmsend.c.save 2025-01-06 17:02:12.000000000 -0500 +++ ifcico/zmsend.c 2025-01-06 17:14:28.410269745 -0500 @@ -47,7 +47,7 @@ static int Lzconv=0; static int Beenhereb4; static char Myattn[]={0}; -static long startime,endtime; +static time_t startime,endtime; static long skipsize; #if 1 static char *qbf=