[sr-dev] xmlrpc: missing declaration of vsnprintf
Juha Heinanen
jh at tutpro.com
Wed Jun 8 09:36:50 CEST 2016
Daniel-Constantin Mierla writes:
> are you giving special parameters to gcc version?
Nothing special.
> I just tested on debian jessie and all seems ok:
>
> # make modules modules=modules/xmlrpc
> Makefile:56: modules.lst: No such file or directory
> saving modules list...
> CC (gcc) [M xmlrpc.so] xmlrpc.o
> CC (gcc) [M xmlrpc.so] http.o
> LD (gcc) [M xmlrpc.so] xmlrpc.so
>
> # uname -a
> Linux srv 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08)
> i686 GNU/Linux
Here is what I get:
$ make modules modules=modules/xmlrpc
CC (gcc) [M xmlrpc.so] xmlrpc.o
xmlrpc.c: In function ‘set_fault’:
xmlrpc.c:886:2: warning: implicit declaration of function ‘vsnprintf’ [-Wimplicit-function-declaration]
vsnprintf(buf, REASON_BUF_LEN, fmt, ap);
^
xmlrpc.c: In function ‘print_value’:
xmlrpc.c:1015:3: warning: implicit declaration of function ‘snprintf’ [-Wimplicit-function-declaration]
body.len = snprintf(buf, 256, "%f", va_arg(*ap, double));
^
xmlrpc.c:1015:14: warning: incompatible implicit declaration of built-in function ‘snprintf’
body.len = snprintf(buf, 256, "%f", va_arg(*ap, double));
$ uname -a
Linux box 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux
Difference is that you have 686 arch and I have amd64.
And if I add the lines removed 5 days ago, xmlrpc module compiles fine.
-- Juha
More information about the sr-dev
mailing list