Re: Problem with fstatat on AIX 7.1

2011-09-01 Thread Paul Eggert
Please try the following patch to tar 1.26, on AIX 7.1. My hope is that this fixes the fstatat issues (without the need for those weird 'configure' options) and then we can move on to the other 'tar' issues. Thanks. --- gnu/fstatat.c 2011-03-12 01:14:29.0 -0800 +++ gnu/fstatat-fixed.

Re: Problem with fstatat on AIX 7.1

2011-09-01 Thread Paul Eggert
OK, thanks, I think I see the problem now: on AIX 7.1, fstatat is a macro and has the same problems as lstat, fstat, and stat. This means fstatat.c can't simply "#define fstatat rpl_fstatat" but must do something trickier. I have started this by applying the following patches to gnulib and will f

Re: Problem with fstatat on AIX 7.1

2011-09-01 Thread Paul Eggert
On 09/01/11 10:07, Kevin Brott wrote: > CFLAGS as created by ./configure are just "-g". OK, can you please try compiling and running the test program in with the options -g -D_LARGE_FILES and say what its exit status is? Also,

Re: Problem with fstatat on AIX 7.1

2011-08-31 Thread Paul Eggert
On 08/31/11 20:30, Kevin Brott wrote: > Attached are the full truss outputs. It *looks* like a lot of extra/failed > seeks in the fstatat-enabled tar? I think that's AIX doing its security thing. Perhaps it matters, but perhaps it's irrelevant. Without knowing AIX internals it's hard to say.

Re: Problem with fstatat on AIX 7.1

2011-08-31 Thread Kevin Brott
On Wed, Aug 31, 2011 at 19:35, Kevin Brott wrote: > On Wed, Aug 31, 2011 at 17:34, Paul Eggert wrote: > >> On 08/31/11 07:06, Kevin Brott wrote: >> > If we do not use fstatat then tar builds and passes almost all of the >> checks (only the two sparse file ones fail). >> > If we use fstatat, then

Re: Problem with fstatat on AIX 7.1

2011-08-31 Thread Kevin Brott
On Wed, Aug 31, 2011 at 17:34, Paul Eggert wrote: > On 08/31/11 07:06, Kevin Brott wrote: > > If we do not use fstatat then tar builds and passes almost all of the > checks (only the two sparse file ones fail). > > If we use fstatat, then almost all of the checks fail - because the > resulting bi

Re: Problem with fstatat on AIX 7.1

2011-08-31 Thread Paul Eggert
On 08/31/11 07:06, Kevin Brott wrote: > If we do not use fstatat then tar builds and passes almost all of the checks > (only the two sparse file ones fail). > If we use fstatat, then almost all of the checks fail - because the resulting > binary is dropping zero-byte files into the archives, and

Re: Problem with fstatat on AIX 7.1

2011-08-31 Thread Kevin Brott
On Wed, Aug 31, 2011 at 01:10, Bruno Haible wrote: > Hi Paul, > > > > Return code on that as compiled comes back as "1" . > > > > OK, thanks, to move forward on that part, I installed the following > > patch into gnulib. > > ... check for the AIX 7.1 bug > > But there is no AIX 7.1 bug. If fstata

Re: Problem with fstatat on AIX 7.1

2011-08-31 Thread Bruno Haible
Hi Paul, > > Return code on that as compiled comes back as "1" . > > OK, thanks, to move forward on that part, I installed the following > patch into gnulib. > ... check for the AIX 7.1 bug But there is no AIX 7.1 bug. If fstatat would return wrong st_size fields, the return code would have been

Re: Problem with fstatat on AIX 7.1

2011-08-30 Thread Paul Eggert
On 08/19/11 12:31, Kevin Brott wrote: > Return code on that as compiled comes back as "1" . OK, thanks, to move forward on that part, I installed the following patch into gnulib. I'll look at the other tar problems later. openat: work around AIX 7.1 fstatat bug Problem reported by Kevin Brott f

Re: Problem with fstatat on AIX 7.1

2011-08-18 Thread Paul Eggert
[Adding bug-gnulib@gnu.org and retitling Subject: for these threads: http://lists.gnu.org/archive/html/bug-tar/2011-08/msg3.html http://lists.gnu.org/archive/html/bug-tar/2011-08/msg5.html ] On 08/18/2011 05:06 PM, Kevin Brott wrote: > So it looks like you're probably on the right track.