xfsdump doesn't compile: undefined reference to 'min'
Detlef Vollmann
dv at vollmann.ch
Thu Aug 6 02:54:55 CDT 2015
> 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'
Attached is a pragmatic patch.
Detlef
PS: I'm not on the list.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 001-minmax.patch
Type: text/x-patch
Size: 1624 bytes
Desc: not available
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20150806/fe59b758/attachment.patch>
More information about the xfs
mailing list