[OpenSIPS-Users] opensips 2.3 json compile error
    Tito Cumpen 
    tito at xsvoce.com
       
    Fri Dec  1 03:17:43 EST 2017
    
    
  
hello group,
I am attempting to compile opensips 2.3 on debian stretch but I am seeing
the following errors.
Compiling array_del.c
Compiling json.c
*json.c:* In function ‘*get_object*’:
*json.c:301:4:* *warning: *‘*json_object_object_get*’ is deprecated [
*-Wdeprecated-declarations*]
    *cur_obj* = json_object_object_get( cur_obj, buff );
    *^~~~~~~*
In file included from */usr/include/json-c/linkhash.h:16:0*,
                 from */usr/include/json-c/json.h:22*,
                 from *json.c:48*:
*/usr/include/json-c/json_object.h:290:56:* *note: *declared here
 THIS_FUNCTION_IS_DEPRECATED(extern struct json_object*
*j*son_object_object_get(struct
json_object* obj,
                                                        *^*
*/usr/include/json-c/json_object.h:17:43:* *note: *in definition of macro ‘
*THIS_FUNCTION_IS_DEPRECATED*’
 #define THIS_FUNCTION_IS_DEPRECATED(func) *func* __attribute__
((deprecated))
                                           *^~~~*
In file included from *../../parser/../ip_addr.h:46:0*,
                 from *../../parser/msg_parser.h:48*,
                 from *../../sr_module.h:48*,
                 from *json.c:33*:
*json.c:* In function ‘*pv_set_json*’:
*json.c:595:5:* *error: *‘*json_tokener_errors*’ undeclared (first use in
this function)
     *j*son_tokener_errors[(unsigned long)obj]
     *^*
*../../parser/../dprint.h:340:33:* *note: *in definition of macro ‘
*MY_DPRINT*’
      dp_my_pid(), __DP_FUNC, ## *args*) \
                                 *^~~~*
*json.c:591:4:* *note: *in expansion of macro ‘*LM_ERR*’
    *LM_ERR*("Error parsing json: %s\n",
    *^~~~~~*
*json.c:595:5:* *note: *each undeclared identifier is reported only once
for each function it appears in
     *j*son_tokener_errors[(unsigned long)obj]
     *^*
*../../parser/../dprint.h:340:33:* *note: *in definition of macro ‘
*MY_DPRINT*’
      dp_my_pid(), __DP_FUNC, ## *args*) \
                                 *^~~~*
*json.c:591:4:* *note: *in expansion of macro ‘*LM_ERR*’
    *LM_ERR*("Error parsing json: %s\n",
    *^~~~~~*
../../Makefile.rules:25: recipe for target 'json.o' failed
I am using the latest pull of opensips 2.3 and have the following deps
installed.
libjson-c-dev is already the newest version (0.12.1-1.1).
libjson-c-doc is already the newest version (0.12.1-1.1).
libjson-c3 is already the newest version (0.12.1-1.1).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20171201/f44b0798/attachment.html>
    
    
More information about the Users
mailing list