From mboxrd@z Thu Jan 1 00:00:00 1970 From: zhaozhanxu Subject: [PATCH] app/pdump: fix pdump can't find the driver when compiled dpdk to shared libraries Date: Fri, 3 Mar 2017 17:27:50 +0800 Message-ID: <1488533270-9548-1-git-send-email-zhaozhanxu@163.com> Cc: zhaozhanxu To: dev@dpdk.org Return-path: Received: from m50-135.163.com (m50-135.163.com [123.125.50.135]) by dpdk.org (Postfix) with ESMTP id 078E52B9D for ; Fri, 3 Mar 2017 10:27:55 +0100 (CET) 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 I compiled dpdk With configuration "CONFIG_RTE_BUILD_SHARED_LIB=y", I get error message "EAL: no driver found for net_pcap_rx_0" and "EAL: Driver cannot attach the device (net_pcap_rx_0)" by running pdump. So I add library librte_pmd_pcap.so. Signed-off-by: zhaozhanxu --- app/pdump/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/pdump/Makefile b/app/pdump/Makefile index 536198f..49c7ac4 100644 --- a/app/pdump/Makefile +++ b/app/pdump/Makefile @@ -41,6 +41,10 @@ CFLAGS += $(WERROR_FLAGS) SRCS-y := main.c +ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) + _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_PCAP) += -lrte_pmd_pcap +endif + # this application needs libraries first DEPDIRS-y += lib -- 2.7.4