xfs
[Top] [All Lists]

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

To: xfs@xxxxxxxxxxx
Subject: xfsdump doesn't compile: undefined reference to 'min'
From: Detlef Vollmann <dv@xxxxxxxxxxx>
Date: Thu, 06 Aug 2015 09:54:55 +0200
Delivered-to: xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0
> commit 5a2985233c390d59d2a9757b119cb0e001c87a96
> Author: Dave Chinner <dchinner@xxxxxxxxxx>
> 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'

Attached is a pragmatic patch.

  Detlef

PS: I'm not on the list.

Attachment: 001-minmax.patch
Description: Text Data

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