On 6/23/16 9:49 PM, Steven Haigh wrote: > I've tried to build the new tools for CentOS 6 / Scientific Linux 6 / > RHEL 6 etc. > > During the build process, I see: > cmds-fi-du.c: In function 'du_calc_file_space': > cmds-fi-du.c:330: error: 'FIEMAP_EXTENT_SHARED' undeclared (first use in > this function) > cmds-fi-du.c:330: error: (Each undeclared identifier is reported only once > cmds-fi-du.c:330: error: for each function it appears in.) > make: *** [cmds-fi-du.o] Error 1 > > I'm guessing this is probably due to a different GCC version used? I'm > guessing this is a simple fix for someone with knowhow... :) >
This is due to too-old headers. That define was added in 2.6.33.
#define FIEMAP_EXTENT_SHARED 0x00002000 /* Space shared with other
* files. */
Just add that above that routine and you'll be good to go. The right fix
is to add it to the tools, ofc.
-Jeff
--
Jeff Mahoney
SUSE Labs
signature.asc
Description: OpenPGP digital signature
