[VTN-17] Failed to build VTN Coordinator on Fedora 20. Created: 08/May/14  Updated: 03/May/18  Resolved: 08/May/14

Status: Resolved
Project: vtn
Component/s: ODC Driver
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Shigeru Yasuda Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


External issue ID: 975

 Description   

VTN coodinator could not be built on Fedora 20.

In file included from include/http_client.hh:17:0,
from include/rest_client.hh:13,
from rest_client.cc:11:
include/json_build_parse.hh: In static member function 'static int unc::restjson::JsonBuildParse::parse(json_object*, const string&, int, T&)':
include/json_build_parse.hh:132:19: error: 'json_object* json_object_object_get(json_object*, const char*)' is deprecated (declared at /usr/include/json-c/json_object.h:271) [-Werror=deprecated-declarations]
jobj_getval = json_object_object_get(jobj_array, key.c_str());
^
include/json_build_parse.hh:134:19: error: 'json_object* json_object_object_get(json_object*, const char*)' is deprecated (declared at /usr/include/json-c/json_object.h:271) [-Werror=deprecated-declarations]
jobj_getval = json_object_object_get(jobj, key.c_str());
^



 Comments   
Comment by Shigeru Yasuda [ 08/May/14 ]

This error was caused by the use of obsolete JSON-C function,
json_object_object_get().

Fedora 20 uses JSON-C 0.11, and json_object_object_get() in JSON-C 0.11 has a
"deprecated" function attribute. So the use of json_object_object_get() makes
the gcc generate warnings.

All json_object_object_get() calls should be replaced with the call of
json_object_object_get_ex().

Comment by Shigeru Yasuda [ 08/May/14 ]

I pushed a patch for master.

https://git.opendaylight.org/gerrit/6801

Comment by Shigeru Yasuda [ 08/May/14 ]

Patch for stable/hydrogen:

https://git.opendaylight.org/gerrit/6814

Comment by Shigeru Yasuda [ 08/May/14 ]

This patch was merged to both master and stable/hydrogen.

Generated at Wed Feb 07 20:47:46 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.