I encountered the following error in the course of building GNU Bash,
GNU Coreutils and GNU Tar on a 64-bit HP-UX system:

source='../../gllib/strtoimax.c' object='strtoimax.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../../build-aux/depcomp \
cc -DHAVE_CONFIG_H -I. -I../../gllib -I..  -DGNULIB_STRICT_CHECKING=1 
-D_HPUX_API_LEVEL=20040821 -DTG_NO_INLINE   -Ae +DD64 +DO11.0 +ESconstlit 
+ESlit +w1 -z +O3 -c -o strtoimax.o ../../gllib/strtoimax.c
cc: "../../gllib/strtoimax.c", line 62: error 1000: Unexpected symbol: "strtol".
cc: "../../gllib/strtoimax.c", line 62: error 1584: Inconsistent type 
declaration: "intmax_t".
cc: panic 2017: Cannot recover from earlier errors, terminating.
gmake[4]: *** [strtoimax.o] Error 1
gmake[4]: Leaving directory `/tmp/gltestdir/_build/gllib'


The attached patch fixes the issue for me.


--Daniel


-- 
Daniel Richard G. || sk...@iskunk.org
My ASCII-art .sig got a bad case of Times New Roman.
diff --git a/lib/strtoimax.c b/lib/strtoimax.c
index c9bd2ad..f190322 100644
--- a/lib/strtoimax.c
+++ b/lib/strtoimax.c
@@ -45,6 +45,9 @@ long long int strtoll (char const *, char **, int);
 # endif
 #endif
 
+#undef strtoimax
+#undef strtoumax
+
 #ifdef UNSIGNED
 # define Have_long_long HAVE_UNSIGNED_LONG_LONG_INT
 # define Int uintmax_t

Reply via email to