From: Jerin Jacob Kollanukkaran Subject: [PATCH] net/ice: fix build with debug enabled Date: Thu, 27 Dec 2018 06:06:48 +0000 Message-ID: <20181227060553.11195-1-jerinj@marvell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" , "thomas@monjalon.net" , "ferruh.yigit@intel.com" , Jerin Jacob Kollanukkaran To: Qiming Yang , Wenzhuo Lu Return-path: Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 9ED7D3256 for ; Thu, 27 Dec 2018 07:06:54 +0100 (CET) Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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 =3D librte_pmd_ice.a CFLAGS +=3D -O3 CFLAGS +=3D $(WERROR_FLAGS) =20 -LDLIBS +=3D -lrte_eal -lrte_ethdev -lrte_kvargs -lrte_bus_pci -lrte_mempoo= l +LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_ethdev -lrte_kvargs +LDLIBS +=3D -lrte_bus_pci -lrte_mempool =20 EXPORT_MAP :=3D rte_pmd_ice_version.map =20 --=20 2.20.1