xfs
[Top] [All Lists]

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

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: xfsdump doesn't compile: undefined reference to 'min'
From: Detlef Vollmann <dv@xxxxxxxxxxx>
Date: Fri, 07 Aug 2015 14:16:02 +0200
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <20150806212620.GD3902@dastard>
References: <55C312CF.2040408@xxxxxxxxxxx> <20150806212620.GD3902@dastard>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0
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

<Prev in Thread] Current Thread [Next in Thread>