Perry Smith <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> * 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 @[EMAIL PROTECTED] */ -#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 @[EMAIL PROTECTED] */ +#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