From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Boccassi Subject: Re: pkg-config file generated with meson Date: Thu, 29 Nov 2018 14:07:52 +0000 Message-ID: <1543500472.5087.34.camel@debian.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org To: David Marchand , bruce.richardson@intel.com Return-path: Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by dpdk.org (Postfix) with ESMTP id 588F42B8B for ; Thu, 29 Nov 2018 15:07:54 +0100 (CET) Received: by mail-wr1-f42.google.com with SMTP id q18so2033275wrx.9 for ; Thu, 29 Nov 2018 06:07:54 -0800 (PST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 2018-11-29 at 14:55 +0100, David Marchand wrote: > Hello Bruce, >=20 > I built v18.11 with meson and had a little look at the libdpdk.pc > file. > It looks like pkg-config works fine with --libs but is recursively > opening > libdpdk.pc when asking for the cflags: >=20 > $ PKG_CONFIG_PATH=3Dbuild/meson-private:$PKG_CONFIG_PATH pkg-config -- > libs > libdpdk > -L/usr/local/lib64 -lrte_telemetry -lrte_bpf -lrte_flow_classify > -lrte_pipeline -lrte_table -lrte_port -lrte_vhost -lrte_security > -lrte_sched -lrte_reorder -lrte_rawdev -lrte_pdump -lrte_power > -lrte_meter > -lrte_member -lrte_lpm -lrte_latencystats -lrte_kni -lrte_jobstats > -lrte_ip_frag -lrte_gso -lrte_gro -lrte_eventdev -lrte_efd > -lrte_distributor -lrte_cryptodev -lrte_compressdev -lrte_cfgfile > -lrte_bitratestats -lrte_bbdev -lrte_acl -lrte_timer -lrte_hash > -lrte_metrics -lrte_pci -lrte_ethdev -lrte_net -lrte_mbuf > -lrte_mempool > -lrte_ring -lrte_eal -lrte_kvargs -lrte_cmdline >=20 > $ PKG_CONFIG_PATH=3Dbuild/meson-private:$PKG_CONFIG_PATH pkg-config -- > cflags > libdpdk > Failed to open 'build/meson-private/libdpdk.pc': Too many open files > Package 'libdpdk', required by 'DPDK', not found >=20 > $ PKG_CONFIG_PATH=3Dbuild/meson-private:$PKG_CONFIG_PATH strace pkg- > config > --cflags libdpdk 2>&1|grep -c 'open(.*libdpdk.pc' > 1022 >=20 > I must be doing something wrong... > I use meson 0.47.2 and dpdk is only built locally, not installed on > the > system. Hi, It's true that there is "libdpdk" in the Requires.private section, and probably shouldn't - but at least on Debian stable with pkg-config 0.29 it works fine despite that: $ PKG_CONFIG_PATH=3D/tmp pkg-config --cflags libdpdk -include rte_config.h -march=3Dcorei7 -I/usr/include/dpdk/../x86_64-linux-g= nu/dpdk -I/usr/include/dpdk Maybe a newer pkg-config version got smarter? Regardless we should look int= o it --=20 Kind regards, Luca Boccassi