[dpdk-dev] Build failure on RHEL 7.4

Thomas Monjalon thomas at monjalon.net
Wed Apr 11 21:56:00 CEST 2018


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.
> >
> > [...]
> > > ‘FALLOC_FL_PUNCH_HOLE’ undeclared (first use in this function)
> > [...]
> > > ‘FALLOC_FL_KEEP_SIZE’ undeclared (first use in this function)
> >
> > 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 <linux/falloc.h>
> 
> Currently there is a bug filed in glibc here for the exact same kernel version.
> https://bugzilla.redhat.com/show_bug.cgi?id=1476120

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.




More information about the dev mailing list