rebuilding pkg_install fails

Pierre Abbat phma at phma.optus.nu
Wed Aug 10 19:23:52 PDT 2011


I just updated pkgsrc and pkgin to 2011Q2, then upgraded an unimportant 
package (gforth). It warned about a newer pkg_install version but installed 
the package anyway. So I attempted to build a pkg_install package as 
described in http://www.dragonflybsd.org/docs/howtos/HowToPkgsrc/#index10h3 . 
I got the following:

cc -DHAVE_CONFIG_H -DOPSYS_NAME=\"DragonFly\" -DMACHINE_ARCH=\"i386\" -DBINDIR=\"/usr/pkg/sbin\" -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DDEF_UMASK=0022 -I/usr/pkgsrc/pkgtools/pkg_install/work/libfetch -DHAVE_NBCOMPAT_H=1 -I/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -I/usr/include -I. -I. -I../lib -O2 -I/usr/include -c 
perform.c
cc -L/usr/pkgsrc/pkgtools/pkg_install/work/libfetch -L/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L../lib -o 
pkg_add main.o perform.o -linstall -lfetch -lcrypto -larchive -lnbcompat
. ./lib/libinstall.a(parse-config.o): In function `pkg_install_config':
parse-config.c:(.text+0x279): undefined reference to 
`fetchConnectionCacheInit'
. ./lib/libinstall.a(pkg_io.o): In function `open_archive_by_url':
pkg_io.c:(.text+0x25): undefined reference to `fetchCopyURL'
pkg_io.c:(.text+0x2f): undefined reference to `fetchStringifyURL'
. ./lib/libinstall.a(pkg_io.o): In function `fetch_archive_close':
pkg_io.c:(.text+0xb5): undefined reference to `fetchIO_close'
. ./lib/libinstall.a(pkg_io.o): In function `fetch_archive_read':
pkg_io.c:(.text+0x10d): undefined reference to `fetchIO_read'
pkg_io.c:(.text+0x17c): undefined reference to `fetchStringifyURL'
pkg_io.c:(.text+0x1aa): undefined reference to `fetchIO_close'
pkg_io.c:(.text+0x1fe): undefined reference to `fetchIO_read'
. ./lib/libinstall.a(pkg_io.o): In function `find_best_package_int':
pkg_io.c:(.text+0x35e): undefined reference to `fetchInitURLList'
pkg_io.c:(.text+0x3e1): undefined reference to `fetchCopyURL'
pkg_io.c:(.text+0x426): undefined reference to `fetchUnquoteFilename'
pkg_io.c:(.text+0x446): undefined reference to `fetchFreeURLList'
pkg_io.c:(.text+0x47c): undefined reference to `fetchFreeURLList'
pkg_io.c:(.text+0x4a3): undefined reference to `fetchUnquoteFilename'
pkg_io.c:(.text+0x4dd): undefined reference to `fetchStringifyURL'
*** Error code 1

Stop.
bmake: stopped 
in /usr/pkgsrc/pkgtools/pkg_install/work/pkg_install-20110215/add
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/pkg_install/work/pkg_install-20110215
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/pkg_install
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/pkg_install

Now what?

Pierre
-- 
I believe in Yellow when I'm in Sweden and in Black when I'm in Wales.





More information about the Users mailing list