[asterisk-bugs] [JIRA] (SS7-63) fails to build on x32: isup.c:5239:60: error: format '%li' expects argument of type 'long int', but argument 6 has type 'long long int'
Tzafrir Cohen (JIRA)
noreply at issues.asterisk.org
Mon Oct 31 23:35:09 CDT 2016
Tzafrir Cohen created SS7-63:
--------------------------------
Summary: fails to build on x32: isup.c:5239:60: error: format '%li' expects argument of type 'long int', but argument 6 has type 'long long int'
Key: SS7-63
URL: https://issues.asterisk.org/jira/browse/SS7-63
Project: LibSS7
Issue Type: Bug
Security Level: None
Components: General
Environment: x32/debian (32 bits userspace on a 64 bits kernel)
Reporter: Tzafrir Cohen
Assignee: mattf
Severity: Minor
{code}
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT isup.o -MF .isup.o.d -MP -c -o isup.o isup.c
isup.c: In function 'isup_show_calls':
isup.c:5239:60: error: format '%li' expects argument of type 'long int', but argument 6 has type 'long long int' [-Werror=format=]
buf_used = ss7_snprintf(buf, buf_used, buf_size, "%s(%li) ", isup_timer2str(x), ss7->ss7_sched[c->timer[x]].when.tv_sec - time(NULL));
^
{code}
Full log: https://buildd.debian.org/status/fetch.php?pkg=libss7&arch=x32&ver=2.0.0-2&stamp=1477953533
Other platforms seem to build well:
https://buildd.debian.org/status/package.php?p=libss7
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list