gnu tar v1.19 installation error messages (368 Views)
Reply
Regular Advisor
Jan Shu
Posts: 134
Registered: ‎01-28-2002
Message 1 of 25 (368 Views)
Accepted Solution

gnu tar v1.19 installation error messages

Hi All,

I downloaded tar-1.19.tar.gz from http://ftp.gnu.org/gnu/tar/ to a HPUX 11.23 PA-RISC server. I ran ./configure --> make --> make install --> I got the following error messages. Can you please help?

njuxdv02 # make install
No suffix list.
Making install in doc
test -z "/usr/local/share/info" || /bin/sh ../build-aux/mkinstalldirs "/usr/local/share/info
"
mkdir /usr/local/share
mkdir /usr/local/share/info
/opt/imake/bin/install -c -m 644 './tar.info' '/usr/local/share/info/tar.info'
/opt/imake/bin/install -c -m 644 './tar.info-1' '/usr/local/share/info/tar.info-1'
/opt/imake/bin/install -c -m 644 './tar.info-2' '/usr/local/share/info/tar.info-2'
Making install in lib
make install-am
source='strerror.c' object='strerror.o' libtool=no \
DEPDIR=.deps depmode=hp /bin/sh ../build-aux/depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -g -c -o strerror.o strerror.c
cc: "strerror.c", line 32: error 1588: "CHAR_BIT" undefined.
cc: "strerror.c", line 32: error 1503: Array size must be integral.
*** Error exit code 1

Stop.
*** Error exit code 1


Regards,
Jan Shu
System Admin
Honored Contributor
OldSchool
Posts: 3,372
Registered: ‎09-09-2004
Message 2 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

duplicate. see other post
Honored Contributor
OldSchool
Posts: 3,372
Registered: ‎09-09-2004
Message 3 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

see porting center for precompiled depot version
http://hpux.cs.utah.edu/hppd/hpux/Gnu/tar-1.19/
Regular Advisor
Jan Shu
Posts: 134
Registered: ‎01-28-2002
Message 4 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

Hi OldSchool,
Thanks. I will try this http://hpux.cs.utah.edu/hppd/hpux/Gnu/tar-1.19/. I will let you know if it works. Thanks.

Regards,
Jan
Regular Advisor
Jan Shu
Posts: 134
Registered: ‎01-28-2002
Message 5 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

Hi OldSchool,

The URL you sent it works!! Can you please reply to this thread again so I can give you 10 pints? Thanks.

Regards,
Jan
Regular Advisor
Jan Shu
Posts: 134
Registered: ‎01-28-2002
Message 6 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

Hi OldSchool,

I went to http://hpux.cs.utah.edu/hppd/hpux/Gnu/tar-1.19/ and downloaded tar-1.19 for HP-UX 11i v2 (HP-UX 11.23) PA-RISC 2.0, tar-1.19-hppa-11.23.depot.gz, gettext-0.17-hppa-11.23.depot.gz, libiconv-1.12-hppa-11.23.depot.gz. And then I gunzip these 3 files and ran SAM software install utilities and completed the 3 depot installations. After the install, I ran tar on a 14GB file and it was failed. I found the http://hpux.cs.utah.edu/hppd/cgi-bin/wwwtar?/hpux/Gnu/tar-1.19/tar-1.19-src-11.11.tar.gz+tar-1.19/HP... showing different installation steps. What is the correct installation step? Can you please help again? Thanks.

Regards,
Jan
Honored Contributor
Steven Schweda
Posts: 9,091
Registered: ‎02-23-2005
Message 7 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

> I ran tar on a 14GB file and it was failed.

Which "tar" did you run?
Actual command?
Actual error message?
Honored Contributor
OldSchool
Posts: 3,372
Registered: ‎09-09-2004
Message 8 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

Like Steven asked, "Which tar did you run?"

The gnu tar will *not* replace the existing tar on the system. I believe that gnu tar installs in /usr/local/bin...could be wrong.

check the output of "which tar" to see which one it finds first.
Regular Advisor
Jan Shu
Posts: 134
Registered: ‎01-28-2002
Message 9 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

Hi Steven,

I couldn't tell which tar (hp tar or gnu tar) I have now since I installed the tar-1.19-hppa-11.23.depot.gz an hour ago.

The command I had was "tar -cvf /backup/test.tar /oradata/test.DBF" and the error message was "tar:Size of /oradata/test.DBF >=8GB. Not Dump".

I suspect my gnu tar 1.19 installation wasn't correct or maybe I missed somethings.

Regards,
Jan
Regular Advisor
Jan Shu
Posts: 134
Registered: ‎01-28-2002
Message 10 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

Hi OldSchool,
Here is the which tar result.

njuxdv02 # which tar
/usr/bin/tar

What is the correct command for the gnu tar? I am new to this gnu tar. Thanks.

regards,
Jan
Honored Contributor
OldSchool
Posts: 3,372
Registered: ‎09-09-2004
Message 11 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

you probably need to check the man page, particularly the "archive format" switches. make sure that you specify gnu format, not "oldest supported" or "posix" as those fail at 8gb as well.
Honored Contributor
OldSchool
Posts: 3,372
Registered: ‎09-09-2004
Message 12 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

again...

gnu tar probably installed in /usr/local/bin

the original tar remains on the system in /usr/bin.

check the above locations, then run the command with the full path to the desired version of tar...

also see gnu tar man pages

note...i usually create a link called gnutar that points to gnu tar so that I don't neeed to worry about full path / default path to pick the one I want to run
Honored Contributor
OldSchool
Posts: 3,372
Registered: ‎09-09-2004
Message 13 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

the results of "which" and the command line you provided would seem to indicate that it ran the std tar distributed with the system (/usr/bin/tar). which is why it died on the 8 gig file
Regular Advisor
Jan Shu
Posts: 134
Registered: ‎01-28-2002
Message 14 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

Hi OldSchool,

It will be the "oracle" account using this gnu tar. How to create the link for "oracle" so it can run gnutar easily without using the old tar? Thanks again.

Regards,
Jan
Regular Advisor
Jan Shu
Posts: 134
Registered: ‎01-28-2002
Message 15 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

Hi OldSchool,

The /usr/local/bin/tar is able to archive file with 14GB size. That is a good news. Though this was on a PA-RISC server. Now I need to install GNU TAR on an Itanium server and hopefully it will work too. Please wait for the result.

I will ask my DBA to create their own link to /usr/local/bin/tar.

Regards,
Jan
Regular Advisor
Jan Shu
Posts: 134
Registered: ‎01-28-2002
Message 16 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

Hi OldSchool,

It works on Itanium server too. I should give you 10 points!!

Thanks a lot.

Jan
Honored Contributor
Steven Schweda
Posts: 9,091
Registered: ‎02-23-2005
Message 17 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

> I will ask my DBA to create their own link
> to /usr/local/bin/tar.

There are uncounted numbers of ways to
arrange these things. You can change the
order of the directories in PATH, or you can
specify full paths for all commands, or ...

I normally do this:

dy # ln -s tar /usr/local/bin/gtar

Then, when I want the "tar" which came with
the OS, I say "tar", and when I want GNU
"tar", I say "gtar":

dy # type tar
tar is /usr/bin/tar

dy # type gtar
gtar is /usr/local/bin/gtar

dy # tar --version
tar: s: unknown option
tar: usage tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[
-C directory] file] ...

dy # gtar --version
tar (GNU tar) 1.18
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.


This way, any old scripts which use "tar"
will get the "tar" which they were expecting,
I can get GNU "tar" very easily, and if I
ever install a newer version of GNU "tar"
(which I suppose I should do now), the "gtar"
link will point to the new one with no
additional effort. It works for me.
Honored Contributor
Steven Schweda
Posts: 9,091
Registered: ‎02-23-2005
Message 18 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

> [...] (which I suppose I should do now) [...]

Or perhaps not. I got the same
strerror.c-CHAR_BIT complaint on my 11.11
system using GCC 4.2.2. I haven't looked at
it very closely, but it appears that the
"configure" test "for working strerror
function" is no good, and when that test
fails, the builders try to use a substitute
strerror() function, and that one can't be
compiled as supplied. A quick Google search
for:
gnu tar 1.19 strerror
suggests that it's broken on a bunch of other
systems, too. (And I thought that _my_
testing was sloppy.)

GNU "tar" 1.18 seemed to be a higher-quality
release. I think that I'll stick with that
one until 1.20 comes out.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 19 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

Hi Jan:

In addition to the manpages, you can reference:

http://www.gnu.org/software/tar/manual/tar.html

I would install the GNU version in '/usr/local/bin' and when necessary to use the GNU version reference it by absolute path, leaving simple references to 'tar' to normally find '/usr/bin/tar' or '/sbin/tar'. Remember, binaries in '/sbin' are guaranteed to reference only static (archive) libaries and thus do not require '/usr' to be mounted such as in the case of single-user mode.

Regards!

...JRF...
Regular Advisor
Jan Shu
Posts: 134
Registered: ‎01-28-2002
Message 20 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

Hi All,

I appreciated your fast help to make this gnu tar 1.19 working on my HPUX 11.23 PA-RISC and Itanium servers. Here is a simple summary :

1. for PA-RISC go to http://hpux.cs.utah.edu/hppd/hpux/Gnu/tar-1.19/ and download
tar-1.19-hppa-11.23.depot.gz
gettext-0.17-hppa-11.23.depot.gz
libiconv-1.12-hppa-11.23.depot.gz
make-3.81-hppa-11.23.depot.gz

2. gunzip above 4 download files and you have these 4 depot files.
tar-1.19-hppa-11.23.depot
gettext-0.17-hppa-11.23.depot
libiconv-1.12-hppa-11.23.depot
make-3.81-hppa-11.23.depot

3. run SAM Software Manager Install utilities and install them in this order:
make-3.81-hppa-11.23.depot --> libiconv-1.12-hppa-11.23.depot --> gettext-0.17-hppa-11.23.depot --> tar-1.19-hppa-11.23.depot

4. create link
ln -s /usr/local/bin/tar /usr/bin/gtar

5. Example
tar -cvf afiles.tar apple angst aspic


5. For more reading:
http://www.gnu.org/software/tar/manual/tar.html for the manual.

Regular Advisor
Jan Shu
Posts: 134
Registered: ‎01-28-2002
Message 21 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

It is the same steps for Itanium servers, except I downloaded the 4 files for HPUX 11.23 Itanium.
Regular Advisor
Jan Shu
Posts: 134
Registered: ‎01-28-2002
Message 22 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

correction on my previouse update:
It should be "gtar" in below command line
gtar -cvf afiles.tar apple angst aspic
Acclaimed Contributor
Dennis Handly
Posts: 25,198
Registered: ‎03-06-2006
Message 23 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

>3. run SAM Software Manager Install utilities and install them in this order:

You can use swinstall to install them directly:
# swinstall -s $PWD/tar-1.19-hppa-11.23.depot \*

You can also swcopy the 4 depots into a larger depot and then install them all at once. (This is useful for patches that reboot after each one.)
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1170628
Honored Contributor
Steven Schweda
Posts: 9,091
Registered: ‎02-23-2005
Message 24 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

> ln -s /usr/local/bin/tar /usr/bin/gtar

If you specify the link this way, that is,
with an absolute path instead of a relative
path, you can have problems in some cases. I
claim that
"ln -s ../local/bin/tar /usr/local/bin/gtar"
is safer.

For example, if you use an NFS mount like
/net/other_host/usr/bin/gtar, my link will
take you to /net/other_host/usr/local/bin/tar,
but yours will take you to /usr/local/bin/tar,
which may or may not exist.
Regular Advisor
Jan Shu
Posts: 134
Registered: ‎01-28-2002
Message 25 of 25 (368 Views)

Re: gnu tar v1.19 installation error messages

This thread is close after successful gnu tar 1.19 installation according above helpful inputs. Thank you very much.

Happy New Year.

Best Regards,
Jan
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.