[VTN-104] Failed to build VTN coordinator on Ubuntu 14.04 Created: 28/Jan/16  Updated: 10/Feb/16  Resolved: 10/Feb/16

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

Type: Bug
Reporter: Karthik Sivasamy Assignee: YOGA LAKSHMI SWETHA PAYYAVULA
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 5122

 Description   

When i cloned latest stable/beryllium code and tried to build in Ubuntu 14.04, gives compilation error.

Compilation Log:

make[2]: Entering directory `/home/mininet/checking/vtn/coordinator/modules/odcdriver'
/usr/bin/g++ -I/home/mininet/checking/vtn/coordinator/core/include/cxx -D_GNU_SOURCE -DPFC_DEBUG -I/usr/include/json-c -I/home/mininet/checking/vtn/coordinator/dist/target/objs/include -I/home/mininet/checking/vtn/coordinator/include -I/home/mininet/checking/vtn/coordinator/dist/target/objs/core/include -I/home/mininet/checking/vtn/coordinator/dist/target/objs/core/include/openflow -I/home/mininet/checking/vtn/coordinator/core/include/arch/x86_64 -I/home/mininet/checking/vtn/coordinator/core/include/arch/x86 -I/home/mininet/checking/vtn/coordinator/core/include/os/linux -I/home/mininet/checking/vtn/coordinator/core/include -I/home/mininet/checking/vtn/coordinator/dist/target/objs/modules/odcdriver -Iinclude -D_PFC_PFCD_MAINT_DISABLE -pthread -DPIC -DPFC_MODULE_BUILD -DMODULE_NAME="odcdriver" -I/home/mininet/checking/vtn/coordinator/modules/tclib/include -I/home/mininet/checking/vtn/coordinator/modules/vtndrvintf/include -I/home/mininet/checking/vtn/coordinator/modules/vtncacheutil/include -I/home/mininet/checking/vtn/coordinator/modules/restjsonutil/include -DMODULE_CFDEF_NAME=__pfc_odcdriver_cfdef -g -O3 -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-unused-result -Wno-format-security -Werror -m64 -fpic -c -o /home/mininet/checking/vtn/coordinator/dist/target/objs/modules/odcdriver/odc_vbr_flow_filter.o odc_vbr_flow_filter.cc
In file included from /usr/include/string.h:640:0,
from /usr/include/x86_64-linux-gnu/sys/un.h:37,
from /home/mininet/checking/vtn/coordinator/core/include/pfc/socket.h:21,
from /home/mininet/checking/vtn/coordinator/core/include/pfc/hostaddr.h:21,
from /home/mininet/checking/vtn/coordinator/core/include/pfc/ipc.h:30,
from /home/mininet/checking/vtn/coordinator/core/include/pfc/modtypes.h:19,
from /home/mininet/checking/vtn/coordinator/core/include/pfc/moddefs.h:18,
from /home/mininet/checking/vtn/coordinator/core/include/pfc/module.h:21,
from /home/mininet/checking/vtn/coordinator/core/include/pfc/log.h:32,
from /home/mininet/checking/vtn/coordinator/modules/restjsonutil/include/http_client.hh:15,
from /home/mininet/checking/vtn/coordinator/modules/restjsonutil/include/rest_client.hh:13,
from /home/mininet/checking/vtn/coordinator/modules/restjsonutil/include/rest_util.hh:13,
from include/odc_vbr_flow_filter.hh:13,
from odc_vbr_flow_filter.cc:10:
In function âvoid* memcpy(void*, const void*, size_t)â,
inlined from âUncRespCode unc::odcdriver::OdcVbrFlowFilterCmd::r_copy(std::list<unc::odcdriver::flow_filter>&, std::vector<unc::vtndrvcache::ConfigNode*>&)â at odc_vbr_flow_filter.cc:118:44:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:71: error: call to void* _builtin__memcpy_chk(void*, const void*, long unsigned int, long unsigned int) will always overflow destination buffer [-Werror]
return _builtin_memcpy_chk (dest, __src, __len, __bos0 (_dest));
^
cc1plus: all warnings being treated as errors
make[2]: *** [/home/mininet/checking/vtn/coordinator/dist/target/objs/modules/odcdriver/odc_vbr_flow_filter.o] Error 1
make[2]: Leaving directory `/home/mininet/checking/vtn/coordinator/modules/odcdriver'
make[1]: *** [odcdriver] Error 2
make[1]: Leaving directory `/home/mininet/checking/vtn/coordinator/modules'
make: *** [modules] Error 2



 Comments   
Comment by YOGA LAKSHMI SWETHA PAYYAVULA [ 03/Feb/16 ]

Fixed and merged the below patch in the stable/beryllium branch:

https://git.opendaylight.org/gerrit/#/c/33684/

Comment by Karthik Sivasamy [ 04/Feb/16 ]

Bug reopened:

Reason:
Fix is not yet merged to Master, it is only merged in stable/beryllium. When it is merged into master branch, will verify and close the Bug.

Comment by YOGA LAKSHMI SWETHA PAYYAVULA [ 10/Feb/16 ]

PFB the patch for this bug in the master branch:

https://git.opendaylight.org/gerrit/#/c/34228/

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