Bug#1080515: ddcutil: FTBFS on arm{el,hf}: passing argument 2 of 'str_to_long' from incompatible pointer type
Source: ddcutil
Version: 1.4.1-1
Severity: serious
Tags: ftbfs
Your package failed to build on armel and armhf:
dsa2.c: In function 'dsa2_adjust_for_rcnt_successes':
dsa2.c:782:63: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'time_t' {aka 'long long int'} [-Wformat=]
dsa2.c: In function 'dsa2_save_persistent_stats':
dsa2.c:1193:44: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=]
dsa2.c: In function 'cirb_parse_and_add':
dsa2.c:1271:51: error: passing argument 2 of 'str_to_long' from incompatible pointer type [-Wincompatible-pointer-types]
1271 | result &= str_to_long(comma_pos2 + 1, &si.epoch_seconds, 10);
| ^~~~~~~~~~~~~~~~~
| |
| time_t * {aka long long int *}
In file included from ../../src/util/data_structures.h:22,
from dsa2.c:21:
../../src/util/string_util.h:96:46: note: expected 'long int *' but argument is of type 'time_t *' {aka 'long long int *'}
96 | bool str_to_long( const char * sval, long * p_ival, int base);
| ~~~~~~~~^~~~~~
This is related to the recent 64bit time_t transition on arm{el,hf}.
Full build log at https://buildd.debian.org/status/fetch.php?pkg=ddcutil&arch=armhf&ver=2.1.4-2&stamp=1725477887&raw=0
Cheers,
Emilio
Reply to: