hello,
i am on holiday now. on remote, i can reach at below.
Have a nice day
man vsnprintf
NAME
printf, fprintf, sprintf, snprintf, vprintf, vfprintf,
vsprintf, vsnprintf - for-
matted output conversion
SYNOPSIS
#include <stdio.h>
int printf(const char *format, ...);
int fprintf(FILE *stream, const char *format, ...);
int sprintf(char *str, const char *format, ...);
int snprintf(char *str, size_t size, const char *format,
...);
#include <stdarg.h>
int vprintf(const char *format, va_list ap);
int vfprintf(FILE *stream, const char *format, va_list ap);
int vsprintf(char *str, const char *format, va_list ap);
int vsnprintf(char *str, size_t size, const char *format,
va_list ap);
Feature Test Macro Requirements for glibc (see
feature_test_macros(7)):
snprintf(), vsnprintf(): _BSD_SOURCE || _XOPEN_SOURCE >=
500 || _ISOC99_SOURCE; or
cc -std=c99
man snprintf
NAME
printf, fprintf, sprintf, snprintf, vprintf, vfprintf,
vsprintf, vsnprintf - for-
matted output conversion
SYNOPSIS
#include <stdio.h>
int printf(const char *format, ...);
int fprintf(FILE *stream, const char *format, ...);
int sprintf(char *str, const char *format, ...);
int snprintf(char *str, size_t size, const char *format,
...);
#include <stdarg.h>
int vprintf(const char *format, va_list ap);
int vfprintf(FILE *stream, const char *format, va_list ap);
int vsprintf(char *str, const char *format, va_list ap);
int vsnprintf(char *str, size_t size, const char *format,
va_list ap);
Feature Test Macro Requirements for glibc (see
feature_test_macros(7)):
snprintf(), vsnprintf(): _BSD_SOURCE || _XOPEN_SOURCE >=
500 || _ISOC99_SOURCE; or
cc -std=c99
Hello,
can you do man vsnprintf or man snprintf and see if it lists special #include or #define? On macos and debian all compiles fine, no warnings.
Cheers,
Daniel
On 31.08.17 08:18, Yasin CANER wrote:
Hello,
Compiling branch 5.0 gives error as below.
Thanks
Centos 6.5
Linux 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)
WARNING:
CC (gcc) [M xmlrpc.so] xmlrpc.o
xmlrpc.c: In function ‘set_fault’:
xmlrpc.c:888: warning: implicit declaration of function ‘vsnprintf’
xmlrpc.c: In function ‘print_value’:
xmlrpc.c:1018: warning: implicit declaration of function ‘snprintf’
xmlrpc.c:1018: warning: incompatible implicit declaration of built-in function ‘snprintf’
--
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - www.asipto.com Kamailio World Conference - www.kamailioworld.com