From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] app/pdump: fix pdump can't find the driver when compiled dpdk to shared libraries Date: Fri, 10 Mar 2017 13:56:29 +0100 Message-ID: <2831820.tJVZXKyIra@xps13> References: <1488533270-9548-1-git-send-email-zhaozhanxu@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: zhaozhanxu Return-path: Received: from mail-wr0-f173.google.com (mail-wr0-f173.google.com [209.85.128.173]) by dpdk.org (Postfix) with ESMTP id 1528E2C01 for ; Fri, 10 Mar 2017 13:56:31 +0100 (CET) Received: by mail-wr0-f173.google.com with SMTP id u108so64270067wrb.3 for ; Fri, 10 Mar 2017 04:56:31 -0800 (PST) In-Reply-To: <1488533270-9548-1-git-send-email-zhaozhanxu@163.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2017-03-03 17:27, zhaozhanxu: > 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. [...] > +ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) > + _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_PCAP) += -lrte_pmd_pcap > +endif The idea of having drivers as shared libraries is to use them as plugins. We are not going to link the applications with every drivers. Instead we load them explicitly with -d option. Someone should document it in http://dpdk.org/doc/guides/linux_gsg/build_sample_apps.html#running-a-sample-application Any volunteer?