Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2016 10:11:58 -0400
From:      "Sin" <sinister@gmail.com>
To:        <freebsd-pkg@freebsd.org>
Subject:   pkg fails to compile
Message-ID:  <9A0A9503B49D42BB96BFAE62F90B867B@dts>

next in thread | raw e-mail | index | archive | help
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
=3D=3D=3D> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=3Dyes 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@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@server:/usr/ports/sysutils/rtty # make
=3D=3D=3D>  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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9A0A9503B49D42BB96BFAE62F90B867B>