Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Apr 2004 18:45:15 -0700
From:      Tim Kientzle <tim@kientzle.com>
To:        wsk <wsk@gddsn.org.cn>
Cc:        kientzle@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/tar bsdtar.c bsdtar.h util.c write.c
Message-ID:  <407F3AAB.8080805@kientzle.com>
In-Reply-To: <407F36C7.1010305@gddsn.org.cn>
References:  <407F36C7.1010305@gddsn.org.cn>

next in thread | previous in thread | raw e-mail | index | archive | help
You probably have an old version of libarchive
that's getting in the way.

First, delete all old versions of libarchive:

   rm -f /usr/lib/libarchive*

Then re-install libarchive:

   ( cd /usr/src/lib/libarchive ; make clean all install )

It should work now.

Tim Kientzle


wsk wrote:
> hi, why i can't build the bsdtar? any ideas?
> 1. build libarchive etc sucessed
> 2. (cd /usr/src/usr.bin/tar;make clean;make) get errors:
> wsk# make
> cc -O -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
> -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align
> -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -o bsdtar
> bsdtar.o matching.o read.o util.o write.o -larchive -lbz2 -lz
> write.o: In function `tar_mode_r':
> write.o(.text+0x19a): undefined reference to `archive_read_open_fd'
> write.o(.text+0x259): undefined reference to `archive_write_open_fd'
> write.o: In function `tar_mode_u':
> write.o(.text+0x31e): undefined reference to `archive_read_open_fd'
> write.o(.text+0x363): undefined reference to `archive_entry_mtime_nsec'
> write.o(.text+0x372): undefined reference to `archive_entry_mtime'
> write.o(.text+0x426): undefined reference to `archive_write_open_fd'
> write.o: In function `append_archive':
> write.o(.text+0x83e): undefined reference to `archive_entry_mtime_nsec'
> write.o(.text+0x850): undefined reference to `archive_entry_mtime'
> write.o: In function `lookup_hardlink':
> write.o(.text+0x13a0): undefined reference to `archive_entry_copy_hardlink'
> write.o: In function `setup_acls':
> write.o(.text+0x14c0): undefined reference to `archive_entry_acl_clear'
> write.o: In function `setup_acl':
> write.o(.text+0x1675): undefined reference to `archive_entry_acl_add_entry'
> *** Error code 1
> 
> Stop in /usr/src/usr.bin/tar.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?407F3AAB.8080805>