From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v8 6/6] build: use dependency for pcap and fallback to find_library Date: Wed, 27 Feb 2019 09:33:12 +0100 Message-ID: <2422048.eyOlUYzsqs@xps> References: <20190103175725.5836-1-bluca@debian.org> <20190226174637.27452-6-luca.boccassi@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, bruce.richardson@intel.com To: Luca Boccassi Return-path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id A029C91 for ; Wed, 27 Feb 2019 09:33:15 +0100 (CET) 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" 26/02/2019 18:49, Luca Boccassi: > On Tue, 2019-02-26 at 17:46 +0000, luca.boccassi@gmail.com wrote: > > From: Luca Boccassi > > > > pcap has historically shipped a custom pcap-config binary tool which > > does the job of pkg-config. It was never compatible with cross > > compilation. > > Meson uses it when using dependency(), which then means cross > > compilation fails. > > Set pcap-config to empty in the meson cross compilation files so > > that Meson will not use it, and add a fallback in case > > dependency() fails. > > libpcap 1.9.0 finally ships a pkg-config file so everything will > > work out of the box in the future. > > > > Signed-off-by: Luca Boccassi > > --- > > v8: added back pcap change separately. Tested with bootlin > > cross-compilation toolchain, everything seems to work. > > I had some time to invest so I added back this change, in a way that > works with cross compilation too. Given the series wasn't merged yet > and there was a conflict I've done a v8 rather than a single separate > patch, but it's independent from the rest. > > More testing is of course welcome! I still see the same error when cross-compiling: /usr/include/stdint.h:109: error: "__INT64_C" redefined