[dpdk-dev] [PATCH] net/virtio: fix build errors
Thomas Monjalon
thomas at monjalon.net
Tue Jul 30 19:47:23 CEST 2019
30/07/2019 18:12, Maxime Coquelin:
> On 7/30/19 1:04 PM, jerinj at marvell.com wrote:
> > From: Jerin Jacob <jerinj at marvell.com>
> >
> > Add extern to variable declaration to avoid some compiler treating it
> > as variable definition.
> >
> > build error log:
> >
> > lib/librte_pmd_virtio.a(vhost_kernel.o):(.rodata+0x110):
> > multiple definition of `vhost_msg_strings'
> > lib/librte_pmd_virtio.a(vhost_user.o):(.data.rel.ro.local+0x0):
> > first defined here
> > lib/librte_pmd_virtio.a(virtio_user_dev.o):(.rodata+0xe8):
> > multiple definition of `vhost_msg_strings'
> > lib/librte_pmd_virtio.a(vhost_user.o):(.data.rel.ro.local+0x0):
> > first defined here
> >
> > Fixes: 33d24d65fe2b ("net/virtio-user: abstract backend operations")
> >
> > Cc: Jianfeng Tan <jianfeng.tan at intel.com>
> > Cc: stable at dpdk.org
> >
> > Signed-off-by: Jerin Jacob <jerinj at marvell.com>
>
> Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Applied, thanks
More information about the dev
mailing list