pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg_install vs libarchive



When trying to compile pkgtools/pkg_install-20080423 on NetBSD/macppc
(recently updated -current), I get this error:

cc -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 
-DDEF_UMASK=0022 
-I/media/e/work/pkgtools/pkg_install/work/libarchive/libarchive 
-I/media/e/work/pkgtools/pkg_install/work/libfetch -DHAVE_NBCOMPAT_H=1 
-I/media/e/work/pkgtools/pkg_install/work/libnbcompat -I. -I. -I../lib -O2 -g 
-c build.c
cc -L/media/e/work/pkgtools/pkg_install/work/libarchive/.libs 
-L/media/e/work/pkgtools/pkg_install/work/libfetch 
-L/media/e/work/pkgtools/pkg_install/work/libnbcompat -Wl,-R/usr/pkg/lib 
-L../lib -o pkg_create main.o perform.o pl.o util.o build.o -linstall -larchive 
-lbz2 -lz -ltermcap -lnbcompat
build.o: In function `pkg_build':
/media/e/work/pkgtools/pkg_install/work/pkg_install-20080423/create/build.c:244:
 undefined reference to `archive_entry_linkresolver_set_strategy'
/media/e/work/pkgtools/pkg_install/work/pkg_install-20080423/create/build.c:221:
 undefined reference to `archive_entry_linkify'
/media/e/work/pkgtools/pkg_install/work/pkg_install-20080423/create/build.c:317:
 undefined reference to `archive_entry_linkify'
/media/e/work/pkgtools/pkg_install/work/pkg_install-20080423/create/build.c:321:
 undefined reference to `archive_entry_linkify'
*** Error code 1

Stop.
make: stopped in 
/media/e/work/pkgtools/pkg_install/work/pkg_install-20080423/create


When I add "PREFER.libarchive = pkgsrc" to /etc/mk.conf, the compilation
succeeds.  What happened here?

Magnus



Home | Main Index | Thread Index | Old Index