From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 65BF869FA for ; Mon, 3 Mar 2014 22:29:44 +0100 (CET) Received: from was59-1-82-226-113-214.fbx.proxad.net ([82.226.113.214] helo=[192.168.0.10]) by mail.droids-corp.org with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WKaT9-0007xH-UU; Mon, 03 Mar 2014 22:32:19 +0100 Message-ID: <5314F4BA.7020507@6wind.com> Date: Mon, 03 Mar 2014 22:31:38 +0100 From: Olivier MATZ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: Meir Tseitlin References: <5313905E.7000603@6wind.com> <5314E6F4.2090709@6wind.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Pcap question X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2014 21:29:44 -0000 Hi Meir, On 03/03/2014 10:09 PM, Meir Tseitlin wrote: > -Wl,-lrte_pmd_pcap -Wl,-L/usr/local/lib -Wl,-Wl,-rpath,/usr/local/lib > -Wl,-lpcap The problem is related to the lines above. They are generated in rte.app.mk: ifeq ($(CONFIG_RTE_LIBRTE_PMD_PCAP),y) LDLIBS += -lrte_pmd_pcap LIBPCAP_LDFLAGS ?= $(shell pcap-config --libs) $(if $(LIBPCAP_LDFLAGS),,$(error LIBPCAP_LDFLAGS is undefined)) LDLIBS += $(LIBPCAP_LDFLAGS) endif The output of "pcap-config --libs" on your computer is probably: -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lpcap The problem is that the DPDK makefile add the "-Wl," to convert the linker arguments into gcc arguments. You may want to replace the code above by: ifeq ($(CONFIG_RTE_LIBRTE_PMD_PCAP),y) LDLIBS += -lrte_pmd_pcap repl := -Wl,% LIBPCAP_LDFLAGS ?= $(patsubst -Wl$(comma),%,$(shell pcap-config --libs)) $(if $(LIBPCAP_LDFLAGS),,$(error LIBPCAP_LDFLAGS is undefined)) LDLIBS += $(LIBPCAP_LDFLAGS) endif I don't know if it's the proper way to fix this. Maybe rte.app.mk should take care of not adding "-Wl," if it's already there. Regards, Olivier