Operating System - HP-UX
1832568 Members
4310 Online
110043 Solutions
New Discussion

Re: tar problem on hpux 11.23

 
SOLVED
Go to solution
Steven Buschman_3
Frequent Advisor

tar problem on hpux 11.23

Unusual problem on 11.23, both IA64 and PA-RISC.
I do not see this problem on 11.23 IA64 before Sep. 2004 release, specifically June 2003. I have also loaded the Dec 2005 QPK, and the problem exists.

The tar command errors out with certain files, but not necessarilly on complete extractions. Below is an example of some basic files created for a test. This is on a new system, with a fresh install of the Sep2004 base/apps on a RISC system (RP2470). I got the error with just the base OS installed (before apps), the tried it again after installing the apps and the Dec2005 QPK's for base and apps.

# uname -a
HP-UX tichigan B.11.23 U 9000/800 1874940690 unlimited-user license
# pwd
/tmp

# file /home/jdaniels/tmp/test.tar
/home/jdaniels/tmp/test.tar: tar file

# tar tvf /home/jdaniels/tmp/test.tar
rwxr-xr-x 0/3 0 Dec 2 16:24 2005 test/
rwxr-xr-x 0/3 0 Dec 2 16:24 2005 test/level1/
rw-r--r-- 0/3 6 Dec 2 16:24 2005 test/level1/file1
rwxr-xr-x 0/3 0 Dec 2 16:24 2005 test/level2/
rw-r--r-- 0/3 6 Dec 2 16:24 2005 test/level2/file2

# tar xvf /home/jdaniels/tmp/test.tar
x test/level1/file1, 6 bytes, 1 tape blocks
x test/level2/file2, 6 bytes, 1 tape blocks

# rm -rf test

# tar xvf /home/jdaniels/tmp/test.tar test/level1/file1
x test/level1/file1, 6 bytes, 1 tape blocks
tar:: No such file or directory
#

I cannot extract just the one file, but can extract the entire bundle. This problem was found when trying to install a product from CD where the install script used tar to extract just the platform binaries failed on some systems. I went to the vendor and they feel it is a HP issue because it works on the older versions of HPUX 11.23, but not on the newer version which actually makes sense to me. The problem is the first thing HP recommends is to upgrade the version to Sept. 2004, which is the problem.
Any ideas?
I've read some differences in POSIX, etc in the forum while searching, but haven't found the answer. Can someone shed any light, or remember a similar issue.
This is only on on 11.23, and only Sep. 2004 and newer from what I've seen and been able to duplicate it is successful on a couple IA64 pre-2004.
Thanks,
Steven
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: tar problem on hpux 11.23

PHCO_33431 looks like it fixes exactly your problem.
If it ain't broke, I can fix that.
Steven Buschman_3
Frequent Advisor

Re: tar problem on hpux 11.23

BINGO !!
That patch was it, I've been trying to find that for weeks on my own but searching for "tar" and "No such file or directory" both brought up so many irrelevant items.
I wasn't able to assign points yet (service down), but I won't forget! Thanks!