xfsdump doesn't compile: undefined reference to 'min'

Detlef Vollmann dv at vollmann.ch
Fri Aug 7 07:16:02 CDT 2015


On 08/06/15 23:26, Dave Chinner wrote:
> On Thu, Aug 06, 2015 at 09:54:55AM +0200, Detlef Vollmann wrote:
>> 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....
Thank.
Unfortunately that doesn't seem to be an option, so sticking with xfsdump-3.1.3.

   Detlef



More information about the xfs mailing list