One of the source files (io.c) was missing an include to limits.h. Contacted upstream and they fixed it, will be in next release of lzma-utils. I will fix in the prefix overlay, this shouldn't need to go to the gentoo-x86 tree though.
Fixed in the prefix overlay as: r21633
Fixed in upstream git repo: %% git show commit 3042c025eebb81c1086772398e0c5c8c6be41cee Author: Lasse Collin <lasse.collin@tukaani.org> Date: Wed May 7 23:32:03 2008 +0300 Added #include <limits.h> to io.c for pre-C99 systems. diff --git a/configure.ac b/configure.ac index b2e4977..e391c40 100644 --- a/configure.ac +++ b/configure.ac @@ -48,7 +48,7 @@ AC_PROG_LIBTOOL AC_HEADER_STDC # There is currently no workarounds in this package if some of # these headers are missing: -AC_CHECK_HEADERS([fcntl.h inttypes.h stddef.h stdlib.h string.h sys/time.h unistd.h utime.h], [], AC_MSG_ERROR([Required header file(s) are missing.])) +AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h stddef.h stdlib.h string.h sys/time.h unistd.h utime.h], [], AC_MSG_ERROR([Required header file(s) are missing.])) # Missing errno.h should be handled: AC_CHECK_HEADERS([errno.h]) diff --git a/src/liblzmadec/io.c b/src/liblzmadec/io.c index c02f441..d82cfbf 100644 --- a/src/liblzmadec/io.c +++ b/src/liblzmadec/io.c @@ -35,6 +35,11 @@ extern int errno #endif +/* Needed for pre-C99 systems that have SIZE_MAX in limits.h. */ +#ifdef HAVE_LIMITS_H +#include <limits.h> +#endif + #define LZMADEC_NO_STDIO #include "lzmadec.h" #undef LZMADEC_NO_STDIO