Hi,
I've been having problems with mi-xmlrpc module in Kamailio 4.0.6 + Debian Wheezy (7.4) The error seems to be related with libxmlrpc-c3 version. root@debian:/usr/local/src/kamailio/modules/mi_xmlrpc# make Makefile:46: You are using an unsupported libxmlrpc-c3 version (1.16.33), compile at your own risk! Makefile:46: You are using an unsupported libxmlrpc-c3 version (1.16.33), compile at your own risk! CC (gcc) [M mi_xmlrpc.so] abyss_conf.o CC (gcc) [M mi_xmlrpc.so] abyss_conn.o CC (gcc) [M mi_xmlrpc.so] abyss_data.o CC (gcc) [M mi_xmlrpc.so] abyss_date.o CC (gcc) [M mi_xmlrpc.so] abyss_file.o CC (gcc) [M mi_xmlrpc.so] abyss_http.o abyss_http.c: In function 'RequestInit': abyss_http.c:105:5: warning: implicit declaration of function 'StringAlloc' [-Wimplicit-function-declaration] abyss_http.c: In function 'RequestFree': abyss_http.c:120:5: warning: implicit declaration of function 'StringFree' [-Wimplicit-function-declaration] CC (gcc) [M mi_xmlrpc.so] abyss_response.o abyss_response.c:590:6: error: conflicting types for 'Base64Encode' In file included from abyss_response.c:20:0: /usr/include/xmlrpc-c/abyss.h:513:1: note: previous declaration of 'Base64Encode' was here make: *** [abyss_response.o] Error 1
Some months ago was a commit related with that (I think so): http://lists.sip-router.org/pipermail/sr-dev/2013-October/021513.html It was a patch witten by Muhammad Shahzad and was applied in 4.0.4 version, but seems to be incomplete.
I've solved the error, patching in the same way "abyss_response.c" (there are still some warnings) --- abyss_response.c 2014-03-26 16:57:07.468091972 +0100 +++ abyss_response.c 2014-03-06 16:40:16.000000000 +0100 @@ -582,6 +582,8 @@ }
+#ifdef XMLRPC_OLD_VERSION /********************************************************************* ** Base64 *********************************************************************/ @@ -622,6 +624,7 @@ /* ...and zero-terminate it. */ *p = '\0'; } +#endif
/****************************************************************************** **
In 4.1.2 version compiles OK (I've backported the fix from here)
Cheers,
P.D.: Kamailio 4.0 deb packages have same problem I guess, cause there is no mi_xmlrpc.so