bug-coreutils
[Top][All Lists]
Advanced

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

Re: __long64_t not declared AIX 5.3.0.50, gcc 4.0.2


From: Perry Smith
Subject: Re: __long64_t not declared AIX 5.3.0.50, gcc 4.0.2
Date: Tue, 17 Oct 2006 09:30:25 -0500

I had to make the changes by hand. My version of patch did not understand your change. The change did not work.

I've attached a gziped tar file with the three things you asked for. I just captured the stdout and stderr of the make and sent you the end of it for the last item. I hope that gives you want you need.

Thanks and good luck.


On Oct 16, 2006, at 3:38 PM, Paul Eggert wrote:

Perry Smith <address@hidden> writes:

It was 6.3.  Sorry for forgetting that piece.

OK, thanks.  We need to figure out the problem with sys/inttypes.h on
your AIX platform then.

Does the patch at the end of this message fix things for you?
If not, what is the output of the following commands, when you
use the lib/stdint.h that resulted from the unpatched lib/stdint_.h?

  diff -c lib/inttypes_.h lib/inttypes.h
  diff -c lib/stdint_.h lib/stdint.h
  (cd lib; gcc -m64 -std=gnu99 -I. -E xstrtoimax.c)

In the last command above, please use the compiler and options that
your build actually used, rather than "gcc -m64 -std=gnu99 -I.".

2006-10-16  Paul Eggert  <address@hidden>

        * lib/stdint_.h: Include <sys/types.h> after <sys/inttypes.h>,
        for AIX 5.3.  Problem reported by Perry Smith in
<http://lists.gnu.org/archive/html/bug-coreutils/2006-10/ msg00222.html>.

--- lib/stdint_.h.~1.34.~       2006-10-10 22:58:47.000000000 -0700
+++ lib/stdint_.h       2006-10-16 13:32:17.000000000 -0700
@@ -46,15 +46,6 @@
 # include @ABSOLUTE_STDINT_H@
 #endif

-/* <sys/types.h> defines some of the stdint.h types as well, on glibc,
-   IRIX 6.5, and OpenBSD 3.8 (via <machine/types.h>).
- MacOS X 10.4.6 <sys/types.h> includes <stdint.h> (which is us), but
-   relies on the system <stdint.h> definitions, so include
-   <sys/types.h> after @address@hidden  */
-#if @HAVE_SYS_TYPES_H@
-# include <sys/types.h>
-#endif
-
 /* Get LONG_MIN, LONG_MAX, ULONG_MAX.  */
 #include <limits.h>

@@ -71,6 +62,18 @@
 # include <sys/inttypes.h>
 #endif

+/* <sys/types.h> defines some of the stdint.h types as well, on glibc,
+   IRIX 6.5, and OpenBSD 3.8 (via <machine/types.h>).
+   AIX 5.3 <inttypes.h> includes <stdint.h> (which is us), and
+ its <sys/types.h> relies on the system <sys/inttypes.h> definitions,
+   so include <sys/types.h> after <sys/inttypes.h>.
+ MacOS X 10.4.6 <sys/types.h> includes <stdint.h> (which is us), but
+   relies on the system <stdint.h> definitions, so include
+   <sys/types.h> after @address@hidden  */
+#if @HAVE_SYS_TYPES_H@
+# include <sys/types.h>
+#endif
+
 #if @HAVE_SYS_BITYPES_H@ && ! defined __BIT_TYPES_DEFINED__
/* Linux libc4 >= 4.6.7 and libc5 have a <sys/bitypes.h> that defines int{8,16,32,64}_t and __BIT_TYPES_DEFINED__. In libc5 >= 5.2.2 it is


Perry Smith
Ease Software, Inc.
address@hidden
http://www.easesoftware.com

SATA Products for IBMs RS/6000, pSeries, and AIX systems





reply via email to

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