tar-1.26

Solarisowy tar ma trochę braków w stosunku do programu GNU Tar. Na przykład nie rozpoznaje skompresowanych archiwów. Warto więc zainstalować jego odpowiednika GNU. Ja dla rozróżnienia dodaję do GNU Tar przedrostek 'g’ (opcja –program-prefix=g przy kompilacji).

Konfiguracja i kompilacja z użyciem skryptu (w załączeniu):


soft@wega:~/tar% ./drf_tar-1.26_conf
cc: Sun C 5.10 SunOS_sparc 2009/06/03
usage: cc [ options] files.  Use 'cc -flags' for details
MANPATH=/usr/cluster/man:/usr/local/share/man:/usr/local/man:/usr/share/man
PATH=/usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin
CFLAGS=-fast
CPPFLAGS=-I/usr/local/include
CXXFLAGS=-fast
LDFLAGS=-L/usr/local/lib -R/usr/local/lib
=============================================
dmake clean [y|n] ?
n
configure [y|n] ?
y
...
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing tests/atconfig commands
=============================================

Kompilacja:


dmake [y|n] ?
y
dmake  all-recursive
Making all in doc
Making all in gnu
  GEN    arg-nonnull.h
  GEN    c++defs.h
  GEN    configmake.h
...
ld: warning: file /usr/local/lib/libiconv.so: attempted multiple inclusion of file
Making all in scripts
Making all in po
Making all in tests
Compilation successful

Testowanie:


Test (dmake test || dmake check) [y|n] ?
y
dmake: Fatal error: Don't know how to make target `test'
Making check in doc
Making check in gnu
dmake  check-recursive
...
## ------------------------ ##
## GNU tar 1.26 test suite. ##
## ------------------------ ##
...
 56: incremental dump when the parent directory is unreadable FAILED (listed03.at:25)
...
ERROR: 113 tests were run,
1 failed unexpectedly.
8 tests were skipped.

Jak widać powyżej, jeden z testów kończy się błędem, ale jest to już zgłoszony w wersji 1.24 bug, który objawia się na niektórych systemach, nie będę więc go zgłaszał ponownie.
dmake install po przełączeniu na roota.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.