Vrouter code is not compilable in debug and production mode

Bug #1740395 reported by Pawel Marchewka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Medium
Pawel Marchewka
OpenContrail
Fix Committed
Undecided
Pawel Marchewka

Bug Description

Logs:

scons vrouter “—opt=debug”

gcc -o build/debug/vrouter/utils/vtest/vtest -g build/debug/vrouter/utils/vtest/vt_main.o build/debug/vrouter/utils/vtest/vt_message.o build/debug/vrouter/utils/vtest/vt_packet.o build/debug/vrouter/utils/vtest/vt_gen_lib.o build/debug/vrouter/utils/vtest/vt_gen_message_modules.o build/debug/vrouter/utils/vtest/vt_gen_sandesh.o build/debug/vrouter/utils/vtest/vt_gen_sandesh_expect.o build/debug/vrouter/utils/vtest/vt_sandesh_response.o build/debug/vrouter/utils/vtest/vt_process_xml.o build/debug/vrouter/utils/vtest/vt_packet.o -Lbuild/lib -Lbuild/debug/vrouter/utils/vtest -Lvrouter/utils/vtest -Lbuild/debug/vrouter/sandesh -Lvrouter/sandesh -Lbuild/debug/vrouter/utils/vtest/vhost/lib -Lvrouter/utils/vtest/vhost/lib -lvrutil -lsandesh-c -ldp_sandesh_c -lxml2 -ljnprvnet -lpcap -lrt -lnl-3 -lnl-genl-3

build/debug/vrouter/utils/vtest/vt_packet.o: In function `vt_fname_assign':

/opt/stack/contrail/vrouter/utils/vtest/vt_packet.c:32: multiple definition of `vt_fname_assign'

build/debug/vrouter/utils/vtest/vt_packet.o:/opt/stack/contrail/vrouter/utils/vtest/vt_packet.c:32: first defined here

build/debug/vrouter/utils/vtest/vt_packet.o: In function `vt_packet':

/opt/stack/contrail/vrouter/utils/vtest/vt_packet.c:61: multiple definition of `vt_packet'

build/debug/vrouter/utils/vtest/vt_packet.o:/opt/stack/contrail/vrouter/utils/vtest/vt_packet.c:61: first defined here

build/debug/vrouter/utils/vtest/vt_packet.o: In function `pcap_compare':

/opt/stack/contrail/vrouter/utils/vtest/vt_packet.c:131: multiple definition of `pcap_compare'

build/debug/vrouter/utils/vtest/vt_packet.o:/opt/stack/contrail/vrouter/utils/vtest/vt_packet.c:131: first defined here

build/debug/vrouter/utils/vtest/vt_packet.o: In function `run_pcap_test':

/opt/stack/contrail/vrouter/utils/vtest/vt_packet.c:208: multiple definition of `run_pcap_test'

build/debug/vrouter/utils/vtest/vt_packet.o:/opt/stack/contrail/vrouter/utils/vtest/vt_packet.c:208: first defined here

build/debug/vrouter/utils/vtest/vt_packet.o: In function `tx_rx_pcap_test':

/opt/stack/contrail/vrouter/utils/vtest/vt_packet.c:237: multiple definition of `tx_rx_pcap_test'

build/debug/vrouter/utils/vtest/vt_packet.o:/opt/stack/contrail/vrouter/utils/vtest/vt_packet.c:237: first defined here

Changed in opencontrail:
assignee: nobody → Pawel Marchewka (pawelmarchewka)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/38571
Submitter: Pawel Marchewka (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/38571
Committed: http://github.com/Juniper/contrail-vrouter/commit/9989e5c839eada1bf2a19244d812e4654d0d3b74
Submitter: Zuul (<email address hidden>)
Branch: master

commit 9989e5c839eada1bf2a19244d812e4654d0d3b74
Author: Pawel Marchewka <email address hidden>
Date: Thu Dec 28 14:15:03 2017 +0100

Fixed vrouter (vtest) compilation issue

Fixed vrouter (vtest) compilation issue releated to building and linking
the same file (vt_packet.c) twice.

Change-Id: Id3c799c29bbd48066363cc194de6cd5900219391
Closes-Bug: #1740395

Changed in opencontrail:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.