From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=7HnQ3sUDDTSB7r6ysx gWiF5yKVkGEJQi0P/NisLC0cI=; b=d+BB6qaLNRHg1opgvjYu7xU+jfluqBXP06 omdzjjXggI7Xn5P+wpR66yqp8NbytNUphWgE+f6ektNYPGaSC8CPywVHF6i6XwqD aawQuyowa2Up/6GhghM3mUozgMyXrJajWwR7aOA5lqgsenHLhuSkaH5rrG4K3PiF bSC/FOVMY= Received: from localhost.localdomain (unknown [123.125.26.230]) by smtp5 (Coremail) with SMTP id D9GowADX37sYN7lYm57aAA--.7335S2; Fri, 03 Mar 2017 17:27:52 +0800 (CST) From: zhaozhanxu To: dev@dpdk.org Cc: zhaozhanxu Date: Fri, 3 Mar 2017 17:27:50 +0800 Message-Id: <1488533270-9548-1-git-send-email-zhaozhanxu@163.com> X-Mailer: git-send-email 2.7.4 X-CM-TRANSID: D9GowADX37sYN7lYm57aAA--.7335S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrZFy7XrW3Gw17Jw1fZw1UJrb_yoW3ArXEgF ykuFWkKrnrGwsIgFW2yFyxtr9Yqa109rn5ury8tr9aywn7JFWUW39I9F13Xr48XF4vgFW3 GF4vvFyfJr1UtjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRMMa0JUUUUU== X-Originating-IP: [123.125.26.230] X-CM-SenderInfo: p2kd06xkdq53i6rwjhhfrp/1tbiLBiPqFXljKui1wAAsx X-Mailman-Approved-At: Fri, 03 Mar 2017 11:08:40 +0100 Subject: [dpdk-dev] [PATCH] app/pdump: fix pdump can't find the driver when compiled dpdk to shared libraries X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2017 09:27:57 -0000 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