pkg fails to compile

Sin sinister at gmail.com
Thu May 26 14:12:06 UTC 2016


Hi everyone,


I've got FreeBSD 8 stable ( R299674 ) and portsnap fetch applied as new as a few minutes ago.  I'm not able to get /usr/ports/ports-mgmt/pkg to compile.  Just errors with:


CC       libpkg_la-pkg_add.lo
pkg_add.c: In function 'set_attrs':
pkg_add.c:214: warning: passing argument 1 of 'getcwd' from incompatible pointer type
pkg_add.c:237: warning: passing argument 1 of 'chdir' from incompatible pointer type
pkg_add.c: In function 'fill_timespec_buf':
pkg_add.c:287: error: 'const struct stat' has no member named 'st_atim'
pkg_add.c:288: error: 'const struct stat' has no member named 'st_atim'
pkg_add.c:289: error: 'const struct stat' has no member named 'st_mtim'
pkg_add.c:290: error: 'const struct stat' has no member named 'st_mtim'
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 2
1 error
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop in /usr/ports/ports-mgmt/pkg.
*** Error code 1


The bootstrap version is:

pkg -v
1.5.5


I can't seem to get it updated from pkg repository either:

root at server:/usr/ports/ports-mgmt/pkg # pkg install pkg
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking integrity... done (0 conflicting)
The most recent version of packages are already installed



I thought it was my box.  So installed a virtual machine fresh with FreeBSD 8.4 stable and still can't get pkg to compile.  I'm at a loss on how to get pkg 1.8.3 installed on Freebsd 8 at this point.  From what I can tell it should still be able to compile / install according to documentation.  Any thoughts on another permutation ?  at this point I can't even compile from the ports tree because pkg is complaining so hard:


root at server:/usr/ports/sysutils/rtty # make
===>  rtty-4.0 pkg(8) must be version 1.6.0 or greater, but you have 1.5.5.
You must upgrade the ports-mgmt/pkg port first.
*** Error code 1

Stop in /usr/ports/sysutils/rtty.



More information about the freebsd-pkg mailing list