make bsdtar failled

Ruslan Ermilov ru at FreeBSD.org
Thu Apr 15 22:42:40 PDT 2004


On Fri, Apr 16, 2004 at 08:27:53AM +0800, wsk wrote:
> Ruslan Ermilov :
> 
> >On Thu, Apr 15, 2004 at 08:36:04PM +0800, wsk wrote:
> > 
> >
> >>cd /usr/src/usr.bin/tar;make
> >>and get the follow errors
> >>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 -c
> >>/usr/src/usr.bin/tar/write.c
> >>/usr/src/usr.bin/tar/write.c: In function `record_hardlink':
> >>/usr/src/usr.bin/tar/write.c:810: warning: implicit declaration of
> >>function `archive_entry_copy_hardlink'
> >>*** Error code 1
> >>
> >>Stop in /usr/src/usr.bin/tar.
> >>
> >>   
> >>
> >Do the same in lib/libarchive first.
> >
> >
> >Cheers,
> > 
> >
> make the libarchive passed with not any problems! later
> (cd /usr/src/usr.bin/tar;make clean;make) get the follow errors
> 
> 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 -c 
> /usr/src/usr.bin/tar/write.c
> 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+0x30a): undefined reference to `archive_read_open_fd'
> write.o(.text+0x34f): undefined reference to `archive_entry_mtime_nsec'
> write.o(.text+0x35e): undefined reference to `archive_entry_mtime'
> write.o(.text+0x412): undefined reference to `archive_write_open_fd'
> write.o: In function `append_archive':
> write.o(.text+0x816): undefined reference to `archive_entry_mtime_nsec'
> write.o(.text+0x828): undefined reference to `archive_entry_mtime'
> write.o: In function `record_hardlink':
> write.o(.text+0x10bd): undefined reference to `archive_entry_copy_hardlink'
> write.o: In function `setup_acls':
> write.o(.text+0x1190): undefined reference to `archive_entry_acl_clear'
> write.o: In function `setup_acl':
> write.o(.text+0x1329): undefined reference to `archive_entry_acl_add_entry'
> *** Error code 1
> 
> Stop in /usr/src/usr.bin/tar.
> 
You also need to "make install" in lib/libarhive before making here.


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040416/19ea6e46/attachment.bin


More information about the freebsd-current mailing list