[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tar 1.13.22 and AIX 4.3.2
From: |
Albert Chin-A-Young |
Subject: |
Re: tar 1.13.22 and AIX 4.3.2 |
Date: |
Thu, 6 Sep 2001 15:26:57 -0500 |
User-agent: |
Mutt/1.2.5i |
On Thu, Sep 06, 2001 at 12:55:17PM -0700, Paul Eggert wrote:
> > From: Albert Chin-A-Young <address@hidden>
> > User-Agent: Mutt/1.2.5i
> > Date: Thu, 6 Sep 2001 14:06:19 -0500
> >
> > 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.
> >
> > This looks just fine to me. Maybe a bug in the IBM C compiler?
>
> Most likely. Perhaps it is parsing `sizeof function (args)' incorrectly.
> But rather than try to debug this, how about trying the following
> patch to sidestep the issue? It also fixes a minor gotcha with signed
> versus unsigned configuration.
I posted to comp.std.c so we'll see.
> 2001-09-06 Paul Eggert <address@hidden>
>
> * lib/strtoimax.c (HAVE_LONG_LONG):
> Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
> (strtoimax): Use sizeof (long), not sizeof strtol (ptr,
> endptr, base), to work around bug in IBM C compiler.
This change works with *all* the compilers here and AIX! Thanks!
--
albert chin (address@hidden)