From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: Build failure on RHEL 7.4 Date: Wed, 11 Apr 2018 21:56:00 +0200 Message-ID: <2544114.h6jezT9v71@xps> References: <6832477.SIRo2TBDok@xps> <20180411194627.GA17965@ltp-pvn> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org To: Pavan Nikhilesh , Andrew Rybchenko , Anatoly Burakov Return-path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id EA64B1B6E3 for ; Wed, 11 Apr 2018 21:56:03 +0200 (CEST) In-Reply-To: <20180411194627.GA17965@ltp-pvn> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 11/04/2018 21:46, Pavan Nikhilesh: > On Wed, Apr 11, 2018 at 09:40:30PM +0200, Thomas Monjalon wrote: > > 11/04/2018 21:09, Andrew Rybchenko: > > > Hello, > > > > > > build fails on RHEL 7.4. I've not tried to dig it. > > > > Thanks for reporting. > > > > [...] > > > =E2=80=98FALLOC_FL_PUNCH_HOLE=E2=80=99 undeclared (first use in this = function) > > [...] > > > =E2=80=98FALLOC_FL_KEEP_SIZE=E2=80=99 undeclared (first use in this f= unction) > > > > These constants were defined in Linux 2.6.23 and 2.6.38. > > > > [...] > > > $ uname -r > > > 3.10.0-693.el7.x86_64 > > > > It should be OK. > > > > I think we are just missing > > #include >=20 > Currently there is a bug filed in glibc here for the exact same kernel ve= rsion. > https://bugzilla.redhat.com/show_bug.cgi?id=3D1476120 The man page says: "The FALLOC_FL_* flags are defined in glibc headers only since version 2.18." I guess we can workaround with a direct include.