* [dpdk-dev] [PATCH] net/ice: fix build with debug enabled
@ 2018-12-27 6:06 Jerin Jacob Kollanukkaran
2019-01-03 12:41 ` Ferruh Yigit
0 siblings, 1 reply; 2+ messages in thread
From: Jerin Jacob Kollanukkaran @ 2018-12-27 6:06 UTC (permalink / raw)
To: Qiming Yang, Wenzhuo Lu
Cc: dev, thomas, ferruh.yigit, Jerin Jacob Kollanukkaran
When RTE_LIBRTE_MBUF_DEBUG enabled, rte_mbuf_sanity_check()
function defined in rte_mbuf.so library,
add it while linking the librte_pmd_ice.so library to fix
the build issue.
error log:
/usr/bin/ld: ice_rxtx.o: in function `ice_recv_pkts':
ice_rxtx.c:(.text+0x1d97): undefined reference to
`rte_mbuf_sanity_check'
/usr/bin/ld: ice_rxtx.o: in function
`ice_tx_queue_release_mbufs':
ice_rxtx.c:(.text+0x21e0): undefined reference to
`rte_mbuf_sanity_check'
/usr/bin/ld: ice_rxtx.c:(.text+0x22b3): undefined reference
to `rte_mbuf_sanity_check'
/usr/bin/ld: ice_rxtx.c:(.text+0x24a0): undefined reference
to `rte_mbuf_sanity_check'
/usr/bin/ld: ice_rxtx.c:(.text+0x2640): undefined reference
to `rte_mbuf_sanity_check'
/usr/bin/ld: ice_rxtx.o:ice_rxtx.c:(.text+0x299f):
more undefined references to `rte_mbuf_sanity_check' follow
Signed-off-by: Jerin Jacob <jerinj@marvell.com>
---
drivers/net/ice/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ice/Makefile b/drivers/net/ice/Makefile
index bc244442d..4b421cde3 100644
--- a/drivers/net/ice/Makefile
+++ b/drivers/net/ice/Makefile
@@ -11,7 +11,8 @@ LIB = librte_pmd_ice.a
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
-LDLIBS += -lrte_eal -lrte_ethdev -lrte_kvargs -lrte_bus_pci -lrte_mempool
+LDLIBS += -lrte_eal -lrte_mbuf -lrte_ethdev -lrte_kvargs
+LDLIBS += -lrte_bus_pci -lrte_mempool
EXPORT_MAP := rte_pmd_ice_version.map
--
2.20.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] net/ice: fix build with debug enabled
2018-12-27 6:06 [dpdk-dev] [PATCH] net/ice: fix build with debug enabled Jerin Jacob Kollanukkaran
@ 2019-01-03 12:41 ` Ferruh Yigit
0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2019-01-03 12:41 UTC (permalink / raw)
To: Jerin Jacob Kollanukkaran, Qiming Yang, Wenzhuo Lu; +Cc: dev, thomas
On 12/27/2018 6:06 AM, Jerin Jacob Kollanukkaran wrote:
> When RTE_LIBRTE_MBUF_DEBUG enabled, rte_mbuf_sanity_check()
> function defined in rte_mbuf.so library,
> add it while linking the librte_pmd_ice.so library to fix
> the build issue.
>
> error log:
> /usr/bin/ld: ice_rxtx.o: in function `ice_recv_pkts':
> ice_rxtx.c:(.text+0x1d97): undefined reference to
> `rte_mbuf_sanity_check'
> /usr/bin/ld: ice_rxtx.o: in function
> `ice_tx_queue_release_mbufs':
> ice_rxtx.c:(.text+0x21e0): undefined reference to
> `rte_mbuf_sanity_check'
> /usr/bin/ld: ice_rxtx.c:(.text+0x22b3): undefined reference
> to `rte_mbuf_sanity_check'
> /usr/bin/ld: ice_rxtx.c:(.text+0x24a0): undefined reference
> to `rte_mbuf_sanity_check'
> /usr/bin/ld: ice_rxtx.c:(.text+0x2640): undefined reference
> to `rte_mbuf_sanity_check'
> /usr/bin/ld: ice_rxtx.o:ice_rxtx.c:(.text+0x299f):
> more undefined references to `rte_mbuf_sanity_check' follow
>
> Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Fixes: 50370662b727 ("net/ice: support device and queue ops")
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Applied to dpdk-next-net/master, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-03 12:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-27 6:06 [dpdk-dev] [PATCH] net/ice: fix build with debug enabled Jerin Jacob Kollanukkaran
2019-01-03 12:41 ` Ferruh Yigit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).