Go to content Go to navigation Go to search

Tread lightly on the things of earth

Mike’s weblog about computing, politics, and faith (a progressive view)

Tags: , NetBSD 2.0.2 pkg_install failed build fix

Here’s how I fixed my NetBSD router box’s ongoing failing build of pkg_install (in NetBSD 2.0.2).

Here’s how I fixed my NetBSD i386 router box’s ongoing failing build of pkg_install in NetBSD 2.0.2 (on which all other packages depend). Pkgsrc is CVS tag pkgsrc-2005Q1.

Observing mention of statvfs.h as a common thread in my various build errors, I did the following —

  1. cp -p pkgsrc/pkgtools/libnbcompat/files/nbcompat/statvfs.h /usr/include/sys/statvfs.h

    -rw-rw-r— 1 root wsrc 4469 Aug 22 2004 statvfs.h
    -rw-rw-r— 1 root wsrc 5961 May 11 2004 statvfs.h.orig

  2. Updated pkgsrc/pkgtools/libnbcompat (required forcible removal of previous version)

  3. Updated pkgsrc/pkgtools/pkg_install

Now other packages in pkgsrc will build.

(I also copied the NetBSD 2.0.2 source into place as /usr/src, and my 2.0.2 tools build directory as /usr/tools. Both src and tools had been 2.0. But I don’t think this directly affected the successful outcome.)