bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreutils 5.1.0 compile failure on Tru64 5.1b


From: Paul Eggert
Subject: Re: coreutils 5.1.0 compile failure on Tru64 5.1b
Date: 26 Jan 2004 15:33:10 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

(This is following up on
<http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00156.html>.)

Tim Mooney <address@hidden> writes:

> Are there platforms where including both inttypes.h and stdint.h, if both
> are available, cause a clash?

I dimly recall some, but this should no longer be a problem now that
autoconf tests the include files serially.  That is, it no longer
defines HAVE_STDINT_H if <inttypes.h> works and the combination of
<inttypes.h> followed by <stdint.h> does not work.

Fixing this requires fixing Autoconf, gnulib, coreutils, and probably
other platforms.  I've started the ball rolling by installing the
following into Autoconf.

2004-01-26  Paul Eggert  <address@hidden>

        * doc/autoconf.texi (Default Includes): Include <stdint.h> even if
        HAVE_INTTYPES_H is defined.  This is needed on Tru64 5.1b with
        Compac C V6.5-207 (dtk), which defines uintmax_t in <stdint.h> but
        not <inttypes.h>.  Problem reported by Tim Mooney in
        <http://mail.gnu.org/archive/html/bug-coreutils/2004-01/msg00147.html>.
        * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
        Likewise.
        
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.795
diff -p -u -r1.795 autoconf.texi
--- doc/autoconf.texi   23 Jan 2004 08:21:51 -0000      1.795
+++ doc/autoconf.texi   26 Jan 2004 23:25:42 -0000
@@ -3184,10 +3184,9 @@ Expand to @var{include-directives} if de
 #endif
 #if HAVE_INTTYPES_H
 # include <inttypes.h>
-#else
-# if HAVE_STDINT_H
-#  include <stdint.h>
-# endif
+#endif
+#if HAVE_STDINT_H
+# include <stdint.h>
 #endif
 #if HAVE_UNISTD_H
 # include <unistd.h>
Index: lib/autoconf/headers.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/headers.m4,v
retrieving revision 1.36
diff -p -u -r1.36 headers.m4
--- lib/autoconf/headers.m4     24 Nov 2003 10:40:59 -0000      1.36
+++ lib/autoconf/headers.m4     26 Jan 2004 23:25:45 -0000
@@ -1,7 +1,7 @@
 # This file is part of Autoconf.                       -*- Autoconf -*-
 # Checking for headers.
 #
-# Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -250,10 +250,9 @@ ac_includes_default="\
 #endif
 #if HAVE_INTTYPES_H
 # include <inttypes.h>
-#else
-# if HAVE_STDINT_H
-#  include <stdint.h>
-# endif
+#endif
+#if HAVE_STDINT_H
+# include <stdint.h>
 #endif
 #if HAVE_UNISTD_H
 # include <unistd.h>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]