* Chris West (Faux) <solo-debianb...@goeswhere.com>, 2015-11-27, 19:44:
gcc -DHAVE_CONFIG_H -I. -I. -I.   -D_FORTIFY_SOURCE=2 
-DLOCALEDIR=\"/usr/local/share/locale\" -DALLOCAOK -std=gnu99    -DUSEUNINUMOK 
-g -O2 -c info.c
In file included from /usr/include/uninum/uninum.h:19:0,
                from info.c:34:
/usr/include/x86_64-linux-gnu/gmp.h: In function ‘__gmpz_fits_uint_p’:
/usr/include/x86_64-linux-gnu/gmp.h:1740:3: error: ‘UINT_MAX’ undeclared (first 
use in this function)

The problem is that by default Automake adds "." to the include path (which is a pretty dumb idea IMO), and that msort has a header named "limits.h". So now when GMP requests <limits.h>, the msort's one gets included, instead of the system-wide one. Of course, the msort's header doesn't define UINT_MAX and friends, hence the error.

Adding "nostdinc" to AUTOMAKE_OPTIONS in Makefile.am and then regenerating Makefile.in should fix the bug.

--
Jakub Wilk

Reply via email to