tar/src/incremen.c now uses strtoumax, but it's not declared on
Solaris 8 so the code breaks when compiled for GCC on the sparc,
resulting in obscure "make check" failures. To work around the
problem I installed this patch to tar and paxutils.
2005-11-06 Paul Eggert <[EMAIL PROTECTED]>
* src/xheader.c (strtoimax, strtoumax): Remove decls; now done
in system.h.
* paxutils/lib/system.h (strtoimax, strtoumax): Declare if the system
headers don't.
Index: src/xheader.c
===================================================================
RCS file: /cvsroot/tar/tar/src/xheader.c,v
retrieving revision 1.30
diff -p -u -r1.30 xheader.c
--- src/xheader.c 17 Sep 2005 06:41:56 -0000 1.30
+++ src/xheader.c 6 Nov 2005 22:45:53 -0000
@@ -28,13 +28,6 @@
#include <fnmatch.h>
-#if !HAVE_DECL_STRTOIMAX && !defined strtoimax
-intmax_t strtoimax ();
-#endif
-#if !HAVE_DECL_STRTOUMAX && !defined strtoumax
-uintmax_t strtoumax ();
-#endif
-
static bool xheader_protected_pattern_p (char const *pattern);
static bool xheader_protected_keyword_p (char const *keyword);
static void xheader_set_single_keyword (char *) __attribute__ ((noreturn));
Index: paxutils/lib/system.h
===================================================================
RCS file: /cvsroot/paxutils/paxutils/lib/system.h,v
retrieving revision 1.4
diff -p -u -r1.4 system.h
--- paxutils/lib/system.h 22 Jun 2005 06:14:28 -0000 1.4
+++ paxutils/lib/system.h 6 Nov 2005 22:45:59 -0000
@@ -453,6 +453,13 @@ char *getenv ();
# include <inttypes.h>
#endif
+#if !HAVE_DECL_STRTOIMAX && !defined strtoimax
+intmax_t strtoimax ();
+#endif
+#if !HAVE_DECL_STRTOUMAX && !defined strtoumax
+uintmax_t strtoumax ();
+#endif
+
#include <intprops.h>
#define UINTMAX_STRSIZE_BOUND INT_BUFSIZE_BOUND (uintmax_t)
_______________________________________________
Bug-tar mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-tar