In <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00254.html> Perry Smith <[EMAIL PROTECTED]> writes:
> *** lib/inttypes_.h Mon Aug 28 20:42:18 2006 > --- lib/inttypes.h Tue Oct 17 04:01:55 2006 Thanks, I got that patch. Unfortunately the diff between lib/stdint_.h and lib/stdint.h doesn't match coreutils 6.3 lib/stdint_.h, so I guess you modified stdint_.h first? Anyway, in thinking about the original symptoms, I came up with a different patch against coreutils 6.3 lib/stdint_.h. Can you please try the following patch instead? (Please apply the patch to the original 6.3 lib/stdint_.h.) If this patch doesn't work, please send the compiler diagnostics along with the complete output of the command "gcc -std=gnu99 -I. -E xstrtoimax.c". Thanks. 2006-10-18 Paul Eggert <[EMAIL PROTECTED]> * lib/stdint_.h: Include <sys/inttypes.h> before <sys/types.h>, to avoid a problem with AIX 5.3 reported by Perry Smith in <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00222.html>. *** lib/stdint_.h.~1.34.~ Tue Oct 10 22:58:47 2006 --- lib/stdint_.h Wed Oct 18 09:56:49 2006 *************** *** 46,60 **** # 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> --- 46,51 ---- *************** *** 65,76 **** # define _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H # include <inttypes.h> # undef _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H ! #elif @HAVE_SYS_INTTYPES_H@ /* Solaris 7 <sys/inttypes.h> has the types except the *_fast*_t types, and ! the macros except for *_FAST*_*, INTPTR_MIN, PTRDIFF_MIN, PTRDIFF_MAX. */ # include <sys/inttypes.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 --- 56,81 ---- # define _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H # include <inttypes.h> # undef _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H ! #endif ! ! #if @HAVE_SYS_INTTYPES_H@ /* Solaris 7 <sys/inttypes.h> has the types except the *_fast*_t types, and ! the macros except for *_FAST*_*, INTPTR_MIN, PTRDIFF_MIN, PTRDIFF_MAX. ! AIX 5.3 <inttypes.h> includes <stdint.h> (which is us), but its ! <sys/types.h> relies on the <sys/inttypes.h> definitions, so include ! <sys/inttypes.h> before <sys/types.h>. */ # 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>). + 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