Re: [OpenSIPS-Users] opensips 2.3 json compile error
Thanks Razvan that worked. On Tue, Dec 5, 2017 at 6:08 AM, Răzvan Crainea wrote: > Hi, Tito! > > Try to install pkg-config package - it will figure out the correct library > version and it will compile properly. > In the meantime I will try to figure out a better way to check the library > version. > > Best regards, > > Răzvan Crainea > OpenSIPS Developerwww.opensips-solutions.com > > On 12/01/2017 10:17 AM, Tito Cumpen wrote: > > 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). > > > > > > > ___ > Users mailing > listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] opensips 2.3 json compile error
Hi, Tito! Try to install pkg-config package - it will figure out the correct library version and it will compile properly. In the meantime I will try to figure out a better way to check the library version. Best regards, Răzvan Crainea OpenSIPS Developer www.opensips-solutions.com On 12/01/2017 10:17 AM, Tito Cumpen wrote: 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). ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] opensips 2.3 json compile error
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). ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users