Bug#934916: libss7: FTBFS on x32 (time_t sprintf format mismatch)

2021-08-07 Thread John Scott
Another (untested) way to fix this issue is to craft the format string using _Generic: strcpy(p, mtp3_timer2str(x)); p += strlen(p); -sprintf(p, "(%lis)%c", ss7->ss7_sched[ss7->links[i]->mtp3_timer[x]].when.tv_sec - time(NULL), +#define FORMAT _Generic((time_t){0}, long int: "(%lis)%c", long

Bug#934916: libss7: FTBFS on x32 (time_t sprintf format mismatch)

2019-08-16 Thread Laurence Parry
Package: libss7-2.0 Version: 2.0.0-2 Tags: ftbfs Usertags: x32 Priority: minor libss7 2.0 fails to build on x32 because it assumes time_t is of type long int when it can be long long int (64-bit, on a system with a 32-bit long). gcc -g -O2 -fdebug-prefix-map=/<>=.