Hello Bruno, The patch you suggested worked fine. The make was successful without error and the executable seems to be working okay. Many thanks for your help. Cheers! --Alex Z.
-----Original Message----- From: Bruno Haible [mailto:[EMAIL PROTECTED] Sent: Thu 7/12/2007 4:46 PM To: Zimmerman, Alex (TS); [email protected] Cc: Noam G. Nudelman Subject: Re: make error with tar-1.18 Hello, Alex Zimmerman reported: > compiler info: > jade> gcc -v > Using built-in specs. > Target: mips-sgi-irix6.5 > Configured with: /jade1/GNU/gcc-4.1.2/configure --with-gnu-as --with-gnu-ld > --enable-version-specific-runtime-libs > Thread model: single > gcc version 4.1.2 > > error encountered: > if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/jade1/GNU/tar-1.18/lib -I.. -g > -O2 -MT xstrtoumax.o -MD -MP -MF ".deps/xstrtoumax.Tpo" -c -o xstrtoumax.o > /jade1/GNU/tar-1.18/lib/xstrtoumax.c; \ > then mv -f ".deps/xstrtoumax.Tpo" ".deps/xstrtoumax.Po"; else rm -f > ".deps/xstrtoumax.Tpo"; exit 1; fi > In file included from ./stdint.h:71, > from /usr/include/inttypes.h:242, > from ./inttypes.h:31, > from /jade1/GNU/tar-1.18/lib/xstrtol.h:25, > from /jade1/GNU/tar-1.18/lib/xstrtol.c:32, > from /jade1/GNU/tar-1.18/lib/xstrtoumax.c:6: > ./inttypes.h:44:3: error: #error "This file assumes that 'int' has exactly 32 > bits. Please report your platform and compiler to <[email protected]>." Can you please try this patch? Just modify lib/stdint_.h as indicated (with "patch lib/stdint_.h < this-mail"), then "make". Does the error go away? Bruno --- lib/stdint_.h 21 Jun 2007 04:39:10 -0000 1.43 +++ lib/stdint_.h 12 Jul 2007 22:41:42 -0000 @@ -66,9 +66,9 @@ /* In OpenBSD 3.8, <inttypes.h> includes <machine/types.h>, which defines int{8,16,32,64}_t, uint{8,16,32,64}_t and __BIT_TYPES_DEFINED__. <inttypes.h> also defines intptr_t and uintptr_t. */ -# define _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H +# define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H # include <inttypes.h> -# undef _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H +# undef _GL_JUST_INCLUDE_SYSTEM_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. */
