xfsdump doesn't compile: undefined reference to 'min'
Dave Chinner
david at fromorbit.com
Thu Aug 6 16:26:20 CDT 2015
On Thu, Aug 06, 2015 at 09:54:55AM +0200, Detlef Vollmann wrote:
> > commit 5a2985233c390d59d2a9757b119cb0e001c87a96
> > Author: Dave Chinner <dchinner at redhat.com>
> > Date: Fri Jul 18 08:02:26 2014 +1000
> >
> > dump: don't redefine min() or max()
> >
> > They are included from other header files.
> The message doesn't say from which header and configure doesn't test
> for it.
> If I compile it (cross-compilation, gcc, uclibc, xfsprogs 3.1.11,
> xfsdump 3.1.4), I get lots of errors:
> warning: implicit declaration of function 'max'
> undefined reference to 'min'
#include <xfs/xfs.h>
-> /usr/include/xfs/xfs.h
#include <xfs/platform_defs.h>
-> /usr/include/xfs/platform_defs.h
#define min(a,b) (((a)<(b))?(a):(b))
These headers come from xfsprogs, and you'll need to upgrade that
package to 3.2.x....
Cheers,
Dave.
--
Dave Chinner
david at fromorbit.com
More information about the xfs
mailing list