[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tar 1.13.22 and AIX 4.3.2
From: |
Albert Chin-A-Young |
Subject: |
tar 1.13.22 and AIX 4.3.2 |
Date: |
Thu, 6 Sep 2001 14:06:19 -0500 |
User-agent: |
Mutt/1.2.5i |
With the IBM C compiler xlc:
gmake[2]: Entering directory `/opt/build/tar-1.13.22/lib'
xlc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -O2 -qmaxmem=-1
-qarch=com -c `test -f strtoumax.c || echo './'`strtoumax.c
"strtoimax.c", line 87.43: 1506-045 (S) Undeclared identifier ptr.
"strtoimax.c", line 87.48: 1506-045 (S) Undeclared identifier endptr.
"strtoimax.c", line 87.56: 1506-045 (S) Undeclared identifier base.
"strtoimax.c", line 88.47: 1506-045 (S) Undeclared identifier ptr.
"strtoimax.c", line 88.52: 1506-045 (S) Undeclared identifier endptr.
"strtoimax.c", line 88.60: 1506-045 (S) Undeclared identifier base.
The strtoumax function in strtoimax.c expands to:
#line 82 "strtoimax.c"
uintmax_t
strtoumax (char const *ptr, char **endptr, int base)
{
#line 88
struct size_is_that_of_long_or_long_long { char a[((sizeof (uintmax_t) ==
sizeof strtoul (ptr, endptr, base) || sizeof (uintmax_t) == sizeof strtoull
(ptr, endptr, base))) ? 1 : -1]; };
if (sizeof (uintmax_t) != sizeof strtoul (ptr, endptr, base))
return strtoull (ptr, endptr, base);
#line 97
return strtoul (ptr, endptr, base);
}
This looks just fine to me. Maybe a bug in the IBM C compiler? The
Sun, HP, IRIX, and Tru64 UNIX C compilers compile the above without
errors.
--
albert chin (address@hidden)
- tar 1.13.22 and AIX 4.3.2,
Albert Chin-A-Young <=