Gigabyte GA-MA74GM-S2H - FreeBSD - 2016 archive

back to main FreeBSD page for this machine.

2016 archive.

2016-12-26: automatic scrub - latest result for zroot pool:

root@kg-f2# zpool status zroot
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0 in 0h4m with 0 errors on Mon Dec 26 03:06:59 2016
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror-0     ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors

ok.

2016-12-08: automatic scrub - latest result for storage pool:

root@kg-f2# zpool status storage
  pool: storage
 state: ONLINE
  scan: scrub repaired 0 in 3h38m with 0 errors on Thu Dec  8 06:56:17 2016
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1-0  ONLINE       0     0     0
        ada3    ONLINE       0     0     0
        ada4    ONLINE       0     0     0
        ada5    ONLINE       0     0     0
        ada6    ONLINE       0     0     0
        ada0    ONLINE       0     0     0

errors: No known data errors

ok.

2016-11-20: automatic scrub - latest result for zroot pool:

root@kg-f2# zpool status zroot
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0 in 0h4m with 0 errors on Sun Nov 20 03:07:03 2016
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror-0     ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors

ok.

2016-11-03: automatic scrub - latest result for storage pool:

root@kg-f2# zpool status storage
  pool: storage
 state: ONLINE
  scan: scrub repaired 0 in 3h39m with 0 errors on Thu Nov  3 06:41:55 2016
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1-0  ONLINE       0     0     0
        ada3    ONLINE       0     0     0
        ada4    ONLINE       0     0     0
        ada5    ONLINE       0     0     0
        ada6    ONLINE       0     0     0
        ada0    ONLINE       0     0     0

errors: No known data errors

ok.

2016-10-16: automatic scrub - latest result for zroot pool:

root@kg-f2# zpool status zroot
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0 in 0h4m with 0 errors on Sun Oct 16 03:07:02 2016
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror-0     ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors

ok.

2016-09-29: automatic scrub - latest result for storage pool:

root@kg-f2# zpool status storage
  pool: storage
 state: ONLINE
  scan: scrub repaired 0 in 3h36m with 0 errors on Thu Sep 29 07:30:27 2016
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1-0  ONLINE       0     0     0
        ada3    ONLINE       0     0     0
        ada4    ONLINE       0     0     0
        ada5    ONLINE       0     0     0
        ada6    ONLINE       0     0     0
        ada0    ONLINE       0     0     0

errors: No known data errors

ok.

2016-09-10: automatic scrub - latest result for zroot pool:

root@kg-f2# zpool status zroot
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0 in 0h4m with 0 errors on Sat Sep 10 03:06:47 2016
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror-0     ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors

ok.

2016-08-25: uptime status:

root@kg-f2# date;uptime
Thu Aug 25 22:46:26 CEST 2016
10:46PM  up 179 days, 22:34, 2 users, load averages: 0.00, 0.00, 0.00

ok.

2016-08-25: automatic scrub - latest result for storage pool:

root@kg-f2# zpool status storage
  pool: storage
 state: ONLINE
  scan: scrub repaired 0 in 3h31m with 0 errors on Thu Aug 25 06:34:00 2016
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1-0  ONLINE       0     0     0
        ada3    ONLINE       0     0     0
        ada4    ONLINE       0     0     0
        ada5    ONLINE       0     0     0
        ada6    ONLINE       0     0     0
        ada0    ONLINE       0     0     0

errors: No known data errors

ok.

2016-08-05: automatic scrub - latest result for zroot pool:

root@kg-f2# zpool status zroot
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0 in 0h4m with 0 errors on Fri Aug  5 04:04:49 2016
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror-0     ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors

that's all.

2016-07-20: automatic scrub - latest result for storage pool:

root@kg-f2# zpool status storage
  pool: storage
 state: ONLINE
  scan: scrub repaired 0 in 3h44m with 0 errors on Wed Jul 20 07:40:17 2016
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1-0  ONLINE       0     0     0
        ada3    ONLINE       0     0     0
        ada4    ONLINE       0     0     0
        ada5    ONLINE       0     0     0
        ada6    ONLINE       0     0     0
        ada0    ONLINE       0     0     0

errors: No known data errors

that's it.

2016-07-01: automatic scrub - latest result for zroot pool:

root@kg-f2# zpool status zroot
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0 in 0h4m with 0 errors on Fri Jul  1 03:29:00 2016
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror-0     ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors

all for now.

2016-06-15: automatic scrub - latest result for storage pool:

root@kg-f2# zpool status storage
  pool: storage
 state: ONLINE
  scan: scrub repaired 0 in 3h26m with 0 errors on Wed Jun 15 07:20:14 2016
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1-0  ONLINE       0     0     0
        ada3    ONLINE       0     0     0
        ada4    ONLINE       0     0     0
        ada5    ONLINE       0     0     0
        ada6    ONLINE       0     0     0
        ada0    ONLINE       0     0     0

errors: No known data errors

ok.

2016-05-26: automatic scrub - latest result for zroot pool:

root@kg-f2# zpool status zroot
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0 in 0h4m with 0 errors on Thu May 26 03:46:52 2016
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror-0     ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors

ok.

2016-05-10: automatic scrub - latest result for storage pool:

root@kg-f2# zpool status storage
  pool: storage
 state: ONLINE
  scan: scrub repaired 0 in 3h41m with 0 errors on Tue May 10 06:43:44 2016
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1-0  ONLINE       0     0     0
        ada3    ONLINE       0     0     0
        ada4    ONLINE       0     0     0
        ada5    ONLINE       0     0     0
        ada6    ONLINE       0     0     0
        ada0    ONLINE       0     0     0

errors: No known data errors

ok.

2016-04-20: automatic scrub - latest result for zroot pool:

root@kg-f2# zpool status zroot
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0 in 0h4m with 0 errors on Wed Apr 20 03:07:10 2016
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror-0     ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors

ok.

2016-04-04: automatic scrub - latest result for storage pool:

root@kg-f2# zpool status storage
  pool: storage
 state: ONLINE
  scan: scrub repaired 0 in 3h42m with 0 errors on Mon Apr  4 06:45:42 2016
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1-0  ONLINE       0     0     0
        ada3    ONLINE       0     0     0
        ada4    ONLINE       0     0     0
        ada5    ONLINE       0     0     0
        ada6    ONLINE       0     0     0
        ada0    ONLINE       0     0     0

errors: No known data errors

ok.

2016-02-28: automatic scrub - latest result for storage pool:

root@kg-f2# zpool status storage
  pool: storage
 state: ONLINE
  scan: scrub repaired 0 in 3h31m with 0 errors on Sun Feb 28 06:34:07 2016
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1-0  ONLINE       0     0     0
        ada3    ONLINE       0     0     0
        ada4    ONLINE       0     0     0
        ada5    ONLINE       0     0     0
        ada6    ONLINE       0     0     0
        ada0    ONLINE       0     0     0

errors: No known data errors

ok.

2016-02-28: latest scrub result of zroot pool:

root@kg-f2# zpool status zroot
  pool: zroot
 state: ONLINE
  scan: scrub repaired 0 in 0h4m with 0 errors on Sun Feb 28 00:30:23 2016
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror-0     ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors

ok.

2016-02-27: ports - installed some ports.

Feb 27 23:41:44 kg-f2 pkg-static: ncftp-3.2.5 installed
Feb 27 23:44:45 kg-f2 pkg-static: dmidecode-3.0 installed
Feb 27 23:45:33 kg-f2 pkg-static: bsdstats-6.0 installed
Feb 27 23:46:52 kg-f2 pkg-static: smartmontools-6.4_1 installed
Feb 27 23:47:14 kg-f2 pkg-static: zfs-stats-1.2.2_1 installed
Feb 27 23:47:52 kg-f2 pkg-static: bonnie++-1.97_3 installed
Feb 27 23:54:08 kg-f2 pkg-static: libtool-2.4.6 installed
Feb 27 23:54:25 kg-f2 pkg-static: fusefs-libs-2.9.5 installed
Feb 27 23:55:17 kg-f2 pkg-static: pcre-8.37_4 installed
Feb 27 23:56:50 kg-f2 pkg-static: glib-2.46.2 installed
Feb 28 00:06:25 kg-f2 pkg-static: p5-Digest-SHA1-2.13_1 installed
Feb 28 00:06:45 kg-f2 pkg-static: libidn-1.31 installed
Feb 28 00:07:11 kg-f2 pkg-static: wget-1.16.3 installed
Feb 28 00:07:25 kg-f2 pkg-static: lsof-4.90.b,8 installed
Feb 28 00:07:28 kg-f2 pkg-static: rkhunter-1.4.2_2 installed

ok.

2016-02-27: zfs - add monthly (ok, every 35 days then) scrubs of zfs:

root@kg-f2# grep zfs /etc/periodic.conf
# zfs
daily_status_zfs_enable="YES"
daily_scrub_zfs_enable="YES"

this works because a threshold of 35 days is defined as default:

root@kg-f2# grep daily_scrub /etc/defaults/periodic.conf
daily_scrub_zfs_enable="NO"
daily_scrub_zfs_pools=""            # empty string selects all pools
daily_scrub_zfs_default_threshold="35"        # days between scrubs
#daily_scrub_zfs_${poolname}_threshold="35"    # pool specific threshold

ok.

2016-02-27: zfs - upgrade pools and filesystems: zroot

root@kg-f2# zpool upgrade zroot
This system supports ZFS pool feature flags.

Successfully upgraded 'zroot' from version 15 to feature flags.
Enabled the following features on 'zroot':
  async_destroy
  empty_bpobj
  lz4_compress
  multi_vdev_crash_dump
  spacemap_histogram
  enabled_txg
  hole_birth
  extensible_dataset
  bookmarks

If you boot from pool 'zroot', don't forget to update boot code.
Assuming you use GPT partitioning and da0 is your boot disk
the following command will do it:

    gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0

I have already upgraded boot code, so I should be good.

storage

root@kg-f2# zpool upgrade storage
This system supports ZFS pool feature flags.

Successfully upgraded 'storage' from version 15 to feature flags.
Enabled the following features on 'storage':
  async_destroy
  empty_bpobj
  lz4_compress
  multi_vdev_crash_dump
  spacemap_histogram
  enabled_txg
  hole_birth
  extensible_dataset
  bookmarks

good.

check filesystems

root@kg-f2# zfs upgrade
This system is currently running ZFS filesystem version 5.

The following filesystems are out of date, and can be upgraded.  After being
upgraded, these filesystems (and any 'zfs send' streams generated from
subsequent snapshots) will no longer be accessible by older software versions.


VER  FILESYSTEM
---  ------------
 4   storage
 4   zroot
 4   zroot/tmp
 4   zroot/usr
 4   zroot/usr/home
 4   zroot/usr/ports
 4   zroot/usr/ports/packages
 4   zroot/usr/src
 4   zroot/var
 4   zroot/var/crash
 4   zroot/var/db
 4   zroot/var/db/pkg
 4   zroot/var/empty
 4   zroot/var/log
 4   zroot/var/mail
 4   zroot/var/run
 4   zroot/var/tmp

upgrade them all

first zroot

root@kg-f2# zfs upgrade -r zroot
16 filesystems upgraded

check

root@kg-f2# zfs upgrade
This system is currently running ZFS filesystem version 5.

The following filesystems are out of date, and can be upgraded.  After being
upgraded, these filesystems (and any 'zfs send' streams generated from
subsequent snapshots) will no longer be accessible by older software versions.


VER  FILESYSTEM
---  ------------
 4   storage

upgrade storage too

root@kg-f2# zfs upgrade storage
1 filesystems upgraded

and zpool status

root@kg-f2# zpool status
  pool: storage
 state: ONLINE
  scan: none requested
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1-0  ONLINE       0     0     0
        ada3    ONLINE       0     0     0
        ada4    ONLINE       0     0     0
        ada5    ONLINE       0     0     0
        ada6    ONLINE       0     0     0
        ada0    ONLINE       0     0     0

errors: No known data errors

  pool: zroot
 state: ONLINE
  scan: none requested
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror-0     ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors

good. Do another reboot, just to be sure. The reboot worked.

2016-02-27: FreeBSD 8.4-stable with ahci (and siis) worked too. dmesg: normal. gpart says:

root@kg-f2# gpart show
=>       34  488397101  ada1  GPT  (232G)
         34        128     1  freebsd-boot  (64k)
        162    8388608     2  freebsd-swap  (4.0G)
    8388770  125829120     3  freebsd-zfs  (60G)
  134217890  354179245        - free -  (168G)

=>       34  488397101  ada2  GPT  (232G)
         34        128     1  freebsd-boot  (64k)
        162    8388608     2  freebsd-swap  (4.0G)
    8388770  125829120     3  freebsd-zfs  (60G)
  134217890  354179245        - free -  (168G)

all pools still here

root@kg-f2# zpool list
NAME      SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
storage  4.53T  4.24T   298G    93%  1.00x  ONLINE  -
zroot    59.5G  5.35G  54.2G     8%  1.00x  ONLINE  -

and status good

root@kg-f2# zpool status
  pool: storage
 state: ONLINE
status: The pool is formatted using a legacy on-disk format.  The pool can
    still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
    pool will no longer be accessible on software that does not support feature
    flags.
  scan: none requested
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1-0  ONLINE       0     0     0
        ada3    ONLINE       0     0     0
        ada4    ONLINE       0     0     0
        ada5    ONLINE       0     0     0
        ada6    ONLINE       0     0     0
        ada0    ONLINE       0     0     0

errors: No known data errors

  pool: zroot
 state: ONLINE
status: The pool is formatted using a legacy on-disk format.  The pool can
    still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
    pool will no longer be accessible on software that does not support feature
    flags.
  scan: none requested
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror-0     ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors

all drives have moved from atacontrol to camcontrol

root@kg-f2# atacontrol list
ATA channel 0:
    Master:      no device present
    Slave:       no device present
root@kg-f2# camcontrol devlist
<SAMSUNG HD103SJ 1AJ100E4>         at scbus0 target 0 lun 0 (ada0,pass0)
<SAMSUNG HD252HJ 1AC01118>         at scbus1 target 0 lun 0 (ada1,pass1)
<SAMSUNG HD252HJ 1AC01118>         at scbus2 target 0 lun 0 (ada2,pass2)
<SAMSUNG HD103SJ 1AJ100E4>         at scbus3 target 0 lun 0 (ada3,pass3)
<SAMSUNG HD103SJ 1AJ100E4>         at scbus4 target 0 lun 0 (ada4,pass4)
<SAMSUNG HD103SJ 1AJ100E4>         at scbus5 target 0 lun 0 (ada5,pass5)
<SAMSUNG HD103SJ 1AJ100E4>         at scbus6 target 0 lun 0 (ada6,pass6)

nice.

2016-02-27: next, add ahci to /boot/loader.conf and see if the machine still boots.

root@kg-f2# more /boot/loader.conf
ahci_load="YES"
zfs_load="YES"
vfs.root.mountfrom="zfs:zroot"
vfs.zfs.arc_max="2048M"
siis_load="YES"
amdtemp_load="YES"
# testing without MSI
hw.pci.enable_msix="0"
hw.pci.enable_msi="0"

try it.

2016-02-27: after a reboot, the machine runs FreeBSD 8.4-stable. dmesg output: normal, verbose.

root@kg-f2# uname -a
FreeBSD kg-f2.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #6 r296141: Sat Feb 27 20:38:47 CET 2016     root@kg-f2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
good.

Are all pools here?

root@kg-f2# zpool list
NAME      SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
storage  4.53T  4.24T   298G    93%  1.00x  ONLINE  -
zroot    59.5G  5.35G  54.2G     8%  1.00x  ONLINE  -
root@kg-f2# zpool status
  pool: storage
 state: ONLINE
status: The pool is formatted using a legacy on-disk format.  The pool can
    still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
    pool will no longer be accessible on software that does not support feature
    flags.
  scan: none requested
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1-0  ONLINE       0     0     0
        ad8     ONLINE       0     0     0
        ad10    ONLINE       0     0     0
        ad12    ONLINE       0     0     0
        ad14    ONLINE       0     0     0
        ada0    ONLINE       0     0     0

errors: No known data errors

  pool: zroot
 state: ONLINE
status: The pool is formatted using a legacy on-disk format.  The pool can
    still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
    pool will no longer be accessible on software that does not support feature
    flags.
  scan: none requested
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror-0     ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors

ok, I can upgrade it later.

zfs filesystems

root@kg-f2# zfs list
NAME                       USED  AVAIL  REFER  MOUNTPOINT
storage                   3.39T   180G  3.39T  /storage
zroot                     5.35G  53.2G   856M  legacy
zroot/tmp                  351K  53.2G   351K  /tmp
zroot/usr                 4.40G  53.2G  2.47G  /usr
zroot/usr/home             442K  53.2G   442K  /usr/home
zroot/usr/ports            778M  53.2G   778M  /usr/ports
zroot/usr/ports/packages    20K  53.2G    20K  /usr/ports/packages
zroot/usr/src             1.16G  53.2G  1.16G  /usr/src
zroot/var                  115M  53.2G  1.89M  /var
zroot/var/crash           21.5K  53.2G  21.5K  /var/crash
zroot/var/db               110M  53.2G   105M  /var/db
zroot/var/db/pkg          5.53M  53.2G  5.53M  /var/db/pkg
zroot/var/empty             20K  53.2G    20K  /var/empty
zroot/var/log              573K  53.2G   573K  /var/log
zroot/var/mail              22K  53.2G    22K  /var/mail
zroot/var/run             53.5K  53.2G  53.5K  /var/run
zroot/var/tmp             1.84M  53.2G  1.84M  /var/tmp

ok.

set up a verbose boot via nextboot

root@kg-f2# nextboot -o "-v" -k kernel/kernel
Error: /boot/kernel/kernel doesn't exist. Use -f to override.
root@kg-f2# l /boot/kernel/ke*
/boot/kernel/kernel*         /boot/kernel/kernel.symbols*

ok, does this work then?

root@kg-f2# nextboot -o "-v" -k kernel
WARNING: loader(8) has only R/O support for ZFS
nextboot.conf will NOT be reset in case of kernel boot failure

and it looks likes this

root@kg-f2# more /boot/nextboot.conf
nextboot_enable="YES"
kernel="kernel"
kernel_options="-v"

let's try it.

2016-02-27: what does /boot/loader.conf look like?

root@kg-f2# more /boot/loader.conf
zfs_load="YES"
vfs.root.mountfrom="zfs:zroot"
vfs.zfs.arc_max="2048M"
siis_load="YES"
amdtemp_load="YES"
# testing without MSI
hw.pci.enable_msix="0"
hw.pci.enable_msi="0"

hmm, ok, let us try it. Update, it worked nicely.

gpart says

root@kg-f2# gpart show
=>       34  488397101  ad4  GPT  (232G)
         34        128    1  freebsd-boot  (64k)
        162    8388608    2  freebsd-swap  (4.0G)
    8388770  125829120    3  freebsd-zfs  (60G)
  134217890  354179245       - free -  (168G)

=>       34  488397101  ad6  GPT  (232G)
         34        128    1  freebsd-boot  (64k)
        162    8388608    2  freebsd-swap  (4.0G)
    8388770  125829120    3  freebsd-zfs  (60G)
  134217890  354179245       - free -  (168G)

well, reboot then.

2016-02-27: before rebooting, fix the boot code:

root@kg-f2# gpart bootcode -p /boot/gptzfsboot -i 1 ad4
root@kg-f2# gpart bootcode -p /boot/gptzfsboot -i 1 ad6

hopefully, that will be enough.

2016-02-27: build latest FreeBSD 8.4-stable via "make world" procedure. build world

root@kg-f2# cd /usr/src
root@kg-f2# make -j4 buildworld
"/usr/src/Makefile.inc1", line 161: To cross-build, set TARGET_ARCH.
*** Error code 1
1 error

Ah - fix make

root@kg-f2# ll /usr/bin/*make*
-r-xr-xr-x  1 root  wheel  369380 Feb 27 18:05 /usr/bin/make*
-r-xr-xr-x  1 root  wheel  215768 Jun  3  2011 /usr/bin/makeinfo*
-r-xr-xr-x  1 root  wheel   18576 Jun  3  2011 /usr/bin/makewhatis*
-r-xr-xr-x  1 root  wheel  420544 Jun  3  2011 /usr/bin/oldmake*

fix

root@kg-f2# mv /usr/bin/make /usr/bin/newmake
root@kg-f2# mv /usr/bin/oldmake /usr/bin/make

retry build world

root@kg-f2# make -j4 buildworld
[...]
--------------------------------------------------------------
>>> World build completed on Sat Feb 27 20:25:35 CET 2016
--------------------------------------------------------------

kernel is next

root@kg-f2# make kernel
[...]
===> zlib (install)
install -o root -g wheel -m 555   zlib.ko /boot/kernel
install -o root -g wheel -m 555   zlib.ko.symbols /boot/kernel
kldxref /boot/kernel

mergemaster pre

root@kg-f2# mergemaster -p
[...]
*** Comparison complete

*** /var/tmp/temproot is empty, deleting

*** You installed a new master.passwd file, so make sure that you run
    '/usr/sbin/pwd_mkdb -p /etc/master.passwd'
     to rebuild your password files

    Would you like to run it now? y or n [n] y
    Running /usr/sbin/pwd_mkdb -p /etc/master.passwd



*** Comparing make variables

*** From /etc/make.conf
*** From /usr/src/share/examples/etc/make.conf

install world

root@kg-f2# make installworld
[...]
chflags noschg /usr/libexec/ld-elf32.so.1
install -s -o root -g wheel -m 555  -C -b -fschg -S ld-elf32.so.1 /libexec
/usr/libexec/ld-elf32.so.1 -> /libexec/ld-elf32.so.1
cd /usr/src/usr.bin/ldd; PROG=ldd32 MAKEOBJDIRPREFIX=/usr/obj/lib32 _SHLIBDIRPREFIX=/usr/obj/usr/src/lib32 VERSION="FreeBSD 8.2-STABLE amd64 804508" MACHINE=i386 MACHINE_ARCH=i386 MACHINE_CPU="i686 mmx sse sse2" PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/tmp/install.nDc6a3ut CC="cc -m32 -march=i686 -mmmx -msse -msse2 -mfancy-math-387 -DCOMPAT_32BIT  -iprefix /usr/obj/usr/src/lib32/usr/  -L/usr/obj/usr/src/lib32/usr/lib32  -B/usr/obj/usr/src/lib32/usr/lib32" CXX="c++ -m32 -march=i686 -mmmx -msse -msse2 -mfancy-math-387 -DCOMPAT_32BIT  -iprefix /usr/obj/usr/src/lib32/usr/  -L/usr/obj/usr/src/lib32/usr/lib32  -B/usr/obj/usr/src/lib32/usr/lib32" OBJC="cc -m32 -march=i686 -mmmx -msse -msse2 -mfancy-math-387 -DCOMPAT_32BIT  -iprefix /usr/obj/usr/src/lib32/usr/  -L/usr/obj/usr/src/lib32/usr/lib32  -B/usr/obj/usr/src/lib32/usr/lib32" LD="ld -m elf_i386_fbsd -Y P,/usr/obj/usr/src/lib32/usr/lib32" AS="as --32" LIBDIR=/usr/lib32 SHLIBDIR=/usr/lib32 make -DNO_CPU_CFLAGS -DCOMPAT_32BIT -DWITHOUT_BIND -DWITHOUT_MAN -DWITHOUT_INFO -DWITHOUT_HTML -DNO_CTF -DNO_INCS install
install -s -o root -g wheel -m 555   ldd32 /usr/bin

delete old stuff

root@kg-f2# make delete-old
>>> Removing old files (only deletes safe to delete libs)
remove /usr/share/man/man9/sleepq_calc_signal_retval.9.gz? y
remove /usr/share/man/man9/sleepq_catch_signals.9.gz? y
remove /usr/share/man/man9/vfs_mount.9.gz? y
remove /usr/share/man/man4/cc.4.gz? y
remove /usr/share/man/man9/cc.9.gz? y
remove /usr/share/man/man8/sticky.8.gz? y
remove /usr/share/man/man9/chooseproc.9.gz? y
remove /usr/share/man/man9/net_add_domain.9.gz? y
>>> Old files removed
>>> Removing old directories
>>> Old directories removed
To remove old libraries run 'make delete-old-libs'.
root@kg-f2# make delete-old-libs
>>> Removing old libraries
Please be sure no application still uses those libraries, else you
can not start such an application. Consult UPDATING for more
information regarding how to cope with the removal/revision bump
of a specific library.
>>> Old libraries removed

run mergemaster

root@kg-f2# mergemaster -iUP
[...]
*** You chose the automatic upgrade option for files that you did
    not alter on your system.  The following were upgraded for you:
      /.cshrc
      /COPYRIGHT
      /boot/device.hints
      /etc/amd.map
      /etc/apmd.conf
      /etc/auth.conf
      /etc/bluetooth/hcsecd.conf
      /etc/bluetooth/hosts
      /etc/bluetooth/protocols
      /etc/crontab
      /etc/csh.cshrc
      /etc/csh.login
      /etc/csh.logout
      /etc/ddb.conf
      /etc/defaults/bluetooth.device.conf
      /etc/defaults/devfs.rules
      /etc/defaults/periodic.conf
      /etc/defaults/rc.conf
      /etc/devd.conf
      /etc/devd/asus.conf
      /etc/devd/uath.conf
      /etc/devfs.conf
      /etc/disktab
      /etc/fbtab
      /etc/freebsd-update.conf
      /etc/ftpusers
      /etc/gettytab
      /etc/gnats/freefall
      /etc/gss/mech
      /etc/gss/qop
      /etc/hosts
      /etc/hosts.allow
      /etc/hosts.equiv
      /etc/hosts.lpd
      /etc/libalias.conf
      /etc/locate.rc
      /etc/login.access
      /etc/login.conf
      /etc/mac.conf
      /etc/mail/Makefile
      /etc/mail/README
      /etc/mail/access.sample
      /etc/mail/aliases
      /etc/mail/freebsd.cf
      /etc/mail/freebsd.mc
      /etc/mail/freebsd.submit.cf
      /etc/mail/freebsd.submit.mc
      /etc/mail/helpfile
      /etc/mail/mailer.conf
      /etc/mail/mailertable.sample
      /etc/mail/sendmail.cf
      /etc/mail/submit.cf
      /etc/mail/virtusertable.sample
      /etc/mtree/BIND.chroot.dist
      /etc/mtree/BSD.include.dist
      /etc/mtree/BSD.local.dist
      /etc/mtree/BSD.root.dist
      /etc/mtree/BSD.sendmail.dist
      /etc/mtree/BSD.usr.dist
      /etc/mtree/BSD.var.dist
      /etc/mtree/BSD.x11-4.dist
      /etc/mtree/BSD.x11.dist
      /etc/netconfig
      /etc/netstart
      /etc/network.subr
      /etc/networks
      /etc/newsyslog.conf
      /etc/nscd.conf
      /etc/nsmb.conf
      /etc/nsswitch.conf
      /etc/opieaccess
      /etc/pam.d/README
      /etc/pam.d/atrun
      /etc/pam.d/cron
      /etc/pam.d/ftp
      /etc/pam.d/ftpd
      /etc/pam.d/imap
      /etc/pam.d/kde
      /etc/pam.d/login
      /etc/pam.d/other
      /etc/pam.d/passwd
      /etc/pam.d/pop3
      /etc/pam.d/rsh
      /etc/pam.d/sshd
      /etc/pam.d/su
      /etc/pam.d/system
      /etc/pam.d/telnetd
      /etc/pam.d/xdm
      /etc/pccard_ether
      /etc/periodic/daily/100.clean-disks
      /etc/periodic/daily/110.clean-tmps
      /etc/periodic/daily/120.clean-preserve
      /etc/periodic/daily/130.clean-msgs
      /etc/periodic/daily/140.clean-rwho
      /etc/periodic/daily/150.clean-hoststat
      /etc/periodic/daily/200.backup-passwd
      /etc/periodic/daily/210.backup-aliases
      /etc/periodic/daily/220.backup-pkgdb
      /etc/periodic/daily/300.calendar
      /etc/periodic/daily/310.accounting
      /etc/periodic/daily/330.news
      /etc/periodic/daily/400.status-disks
      /etc/periodic/daily/404.status-zfs
      /etc/periodic/daily/405.status-ata-raid
      /etc/periodic/daily/406.status-gmirror
      /etc/periodic/daily/407.status-graid3
      /etc/periodic/daily/408.status-gstripe
      /etc/periodic/daily/409.status-gconcat
      /etc/periodic/daily/420.status-network
      /etc/periodic/daily/430.status-rwho
      /etc/periodic/daily/440.status-mailq
      /etc/periodic/daily/450.status-security
      /etc/periodic/daily/460.status-mail-rejects
      /etc/periodic/daily/470.status-named
      /etc/periodic/daily/480.status-ntpd
      /etc/periodic/daily/500.queuerun
      /etc/periodic/daily/800.scrub-zfs
      /etc/periodic/daily/999.local
      /etc/periodic/monthly/200.accounting
      /etc/periodic/monthly/999.local
      /etc/periodic/security/100.chksetuid
      /etc/periodic/security/110.neggrpperm
      /etc/periodic/security/200.chkmounts
      /etc/periodic/security/300.chkuid0
      /etc/periodic/security/400.passwdless
      /etc/periodic/security/410.logincheck
      /etc/periodic/security/460.chkportsum
      /etc/periodic/security/500.ipfwdenied
      /etc/periodic/security/510.ipfdenied
      /etc/periodic/security/520.pfdenied
      /etc/periodic/security/550.ipfwlimit
      /etc/periodic/security/610.ipf6denied
      /etc/periodic/security/700.kernelmsg
      /etc/periodic/security/800.loginfail
      /etc/periodic/security/900.tcpwrap
      /etc/periodic/security/security.functions
      /etc/periodic/weekly/310.locate
      /etc/periodic/weekly/320.whatis
      /etc/periodic/weekly/330.catman
      /etc/periodic/weekly/340.noid
      /etc/periodic/weekly/400.status-pkg
      /etc/periodic/weekly/999.local
      /etc/pf.os
      /etc/phones
      /etc/portsnap.conf
      /etc/ppp/ppp.conf
      /etc/printcap
      /etc/protocols
      /etc/rc
      /etc/rc.bsdextended
      /etc/rc.d/DAEMON
      /etc/rc.d/FILESYSTEMS
      /etc/rc.d/LOGIN
      /etc/rc.d/NETWORKING
      /etc/rc.d/SERVERS
      /etc/rc.d/abi
      /etc/rc.d/accounting
      /etc/rc.d/addswap
      /etc/rc.d/adjkerntz
      /etc/rc.d/amd
      /etc/rc.d/apm
      /etc/rc.d/apmd
      /etc/rc.d/archdep
      /etc/rc.d/atm1
      /etc/rc.d/atm2
      /etc/rc.d/atm3
      /etc/rc.d/auditd
      /etc/rc.d/auto_linklocal
      /etc/rc.d/bgfsck
      /etc/rc.d/bluetooth
      /etc/rc.d/bootparams
      /etc/rc.d/bridge
      /etc/rc.d/bsnmpd
      /etc/rc.d/bthidd
      /etc/rc.d/ccd
      /etc/rc.d/cleanvar
      /etc/rc.d/cleartmp
      /etc/rc.d/cron
      /etc/rc.d/ddb
      /etc/rc.d/defaultroute
      /etc/rc.d/devd
      /etc/rc.d/devfs
      /etc/rc.d/dhclient
      /etc/rc.d/dmesg
      /etc/rc.d/dumpon
      /etc/rc.d/encswap
      /etc/rc.d/fsck
      /etc/rc.d/ftp-proxy
      /etc/rc.d/ftpd
      /etc/rc.d/gbde
      /etc/rc.d/geli
      /etc/rc.d/geli2
      /etc/rc.d/gptboot
      /etc/rc.d/gssd
      /etc/rc.d/hastd
      /etc/rc.d/hcsecd
      /etc/rc.d/hostapd
      /etc/rc.d/hostid
      /etc/rc.d/hostid_save
      /etc/rc.d/hostname
      /etc/rc.d/inetd
      /etc/rc.d/initrandom
      /etc/rc.d/ip6addrctl
      /etc/rc.d/ipfilter
      /etc/rc.d/ipfs
      /etc/rc.d/ipfw
      /etc/rc.d/ipmon
      /etc/rc.d/ipnat
      /etc/rc.d/ipsec
      /etc/rc.d/ipxrouted
      /etc/rc.d/jail
      /etc/rc.d/kadmind
      /etc/rc.d/kerberos
      /etc/rc.d/keyserv
      /etc/rc.d/kldxref
      /etc/rc.d/kpasswdd
      /etc/rc.d/ldconfig
      /etc/rc.d/local
      /etc/rc.d/localpkg
      /etc/rc.d/lockd
      /etc/rc.d/lpd
      /etc/rc.d/mdconfig
      /etc/rc.d/mdconfig2
      /etc/rc.d/mixer
      /etc/rc.d/motd
      /etc/rc.d/mountcritlocal
      /etc/rc.d/mountcritremote
      /etc/rc.d/mountd
      /etc/rc.d/mountlate
      /etc/rc.d/moused
      /etc/rc.d/mroute6d
      /etc/rc.d/mrouted
      /etc/rc.d/msgs
      /etc/rc.d/named
      /etc/rc.d/natd
      /etc/rc.d/netif
      /etc/rc.d/netoptions
      /etc/rc.d/network_ipv6
      /etc/rc.d/newsyslog
      /etc/rc.d/nfscbd
      /etc/rc.d/nfsclient
      /etc/rc.d/nfsd
      /etc/rc.d/nfsserver
      /etc/rc.d/nfsuserd
      /etc/rc.d/nisdomain
      /etc/rc.d/nscd
      /etc/rc.d/nsswitch
      /etc/rc.d/ntpd
      /etc/rc.d/ntpdate
      /etc/rc.d/othermta
      /etc/rc.d/pf
      /etc/rc.d/pflog
      /etc/rc.d/pfsync
      /etc/rc.d/power_profile
      /etc/rc.d/powerd
      /etc/rc.d/ppp
      /etc/rc.d/pppoed
      /etc/rc.d/pwcheck
      /etc/rc.d/quota
      /etc/rc.d/random
      /etc/rc.d/rarpd
      /etc/rc.d/resolv
      /etc/rc.d/rfcomm_pppd_server
      /etc/rc.d/root
      /etc/rc.d/route6d
      /etc/rc.d/routed
      /etc/rc.d/routing
      /etc/rc.d/rpcbind
      /etc/rc.d/rtadvd
      /etc/rc.d/rtsold
      /etc/rc.d/rwho
      /etc/rc.d/savecore
      /etc/rc.d/sdpd
      /etc/rc.d/securelevel
      /etc/rc.d/sendmail
      /etc/rc.d/serial
      /etc/rc.d/sppp
      /etc/rc.d/sshd
      /etc/rc.d/statd
      /etc/rc.d/static_arp
      /etc/rc.d/swap1
      /etc/rc.d/syscons
      /etc/rc.d/sysctl
      /etc/rc.d/syslogd
      /etc/rc.d/timed
      /etc/rc.d/tmp
      /etc/rc.d/ubthidhci
      /etc/rc.d/ugidfw
      /etc/rc.d/var
      /etc/rc.d/virecover
      /etc/rc.d/watchdogd
      /etc/rc.d/wpa_supplicant
      /etc/rc.d/ypbind
      /etc/rc.d/yppasswdd
      /etc/rc.d/ypserv
      /etc/rc.d/ypset
      /etc/rc.d/ypupdated
      /etc/rc.d/ypxfrd
      /etc/rc.d/zfs
      /etc/rc.d/zvol
      /etc/rc.firewall
      /etc/rc.initdiskless
      /etc/rc.resume
      /etc/rc.sendmail
      /etc/rc.shutdown
      /etc/rc.subr
      /etc/rc.suspend
      /etc/regdomain.xml
      /etc/remote
      /etc/rpc
      /etc/security/audit_class
      /etc/security/audit_control
      /etc/security/audit_event
      /etc/security/audit_user
      /etc/security/audit_warn
      /etc/services
      /etc/shells
      /etc/snmpd.config
      /etc/ssh/moduli
      /etc/ssh/ssh_config
      /etc/ssh/sshd_config
      /etc/ssl/openssl.cnf
      /etc/syslog.conf
      /etc/termcap.small
      /etc/ttys
      /root/.k5login
      /root/.login
      /var/named/etc/namedb/master/empty.db
      /var/named/etc/namedb/master/localhost-forward.db
      /var/named/etc/namedb/master/localhost-reverse.db
      /var/named/etc/namedb/named.conf
      /var/named/etc/namedb/named.root


*** You installed a new aliases file, so make sure that you run
    '/usr/bin/newaliases' to rebuild your aliases database

    Would you like to run it now? y or n [n] y
    Running /usr/bin/newaliases

/etc/mail/aliases: 29 aliases, longest 10 bytes, 297 bytes total

*** You installed a login.conf file, so make sure that you run
    '/usr/bin/cap_mkdb /etc/login.conf'
     to rebuild your login.conf database

    Would you like to run it now? y or n [n] y
    Running /usr/bin/cap_mkdb /etc/login.conf


*** You installed a services file, so make sure that you run
    '/usr/sbin/services_mkdb -q -o /var/db/services.db /etc/services'
     to rebuild your services database

    Would you like to run it now? y or n [n] y
    Running /usr/sbin/services_mkdb -q -o /var/db/services.db /etc/services


*** There is no /var/db/zoneinfo file to update /etc/localtime.
    You should run tzsetup

    Would you like to run it now? y or n [n] y
    Running tzsetup

and done.

2016-02-27: scrub zroot pool before anything else:

root@kg-f2# zpool scrub zroot

five minutes later

root@kg-f2# zpool status zroot                                                                                      
  pool: zroot
 state: ONLINE
 scrub: scrub completed after 0h4m with 0 errors on Sat Feb 27 19:44:35 2016
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror       ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors

ok.

2016-02-27: source - check out a new source tree via subversion:

root@kg-f2# svn checkout https://svn.FreeBSD.org/base/stable/8 /usr/src
Error validating server certificate for 'https://svn.freebsd.org:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: svn.freebsd.org
 - Valid: from Jun 22 00:00:00 2015 GMT until Jun 22 23:59:59 2016 GMT
 - Issuer: Gandi Standard SSL CA 2, Gandi, Paris, Paris, FR
 - Fingerprint: E9:37:73:80:B5:32:1B:93:92:94:98:17:59:F0:FA:A2:5F:1E:DE:B9
(R)eject, accept (t)emporarily or accept (p)ermanently? p
[...]
A    /usr/src/README
 U   /usr/src
Checked out revision 296141.

verify

root@kg-f2# egrep "^BRANCH|^REVISION" /usr/src/sys/conf/newvers.sh
REVISION="8.4"
BRANCH="STABLE"

good.

2016-02-27: source - clean out the source directory:

root@kg-f2# cd /usr/src
root@kg-f2# rm -rf *
root@kg-f2# ls -la
total 3
drwxr-xr-x   2 root  wheel   2 Feb 27 19:19 .
drwxr-xr-x  17 root  wheel  17 Dec 12  2009 ..

ok.

2016-02-27: ports - install portupgrade

root@kg-f2# cd /usr/ports/ports-mgmt/portupgrade
root@kg-f2# make install clean
[...]

afterwards, I install subversion. From /var/log/messages:

Feb 27 18:51:27 kg-f2 pkg-static: indexinfo-0.2.4 installed
Feb 27 18:51:28 kg-f2 pkg-static: libffi-3.2.1 installed
Feb 27 18:51:56 kg-f2 pkg-static: m4-1.4.17_1,1 installed
Feb 27 18:52:28 kg-f2 pkg-static: libiconv-1.14_9 installed
Feb 27 18:52:54 kg-f2 pkg-static: gettext-runtime-0.19.7 installed
Feb 27 18:55:28 kg-f2 pkg-static: gettext-tools-0.19.7 installed
Feb 27 18:58:50 kg-f2 pkg-static: perl5-5.20.3_8 installed
Feb 27 18:58:55 kg-f2 pkg-static: p5-Locale-gettext-1.06 installed
Feb 27 18:59:03 kg-f2 pkg-static: gmake-lite-4.1_1 installed
Feb 27 18:59:05 kg-f2 pkg-static: help2man-1.43.3_1 installed
Feb 27 18:59:15 kg-f2 pkg-static: gmake-4.1_2 installed
Feb 27 18:59:20 kg-f2 pkg-static: autoconf-wrapper-20131203 installed
Feb 27 18:59:20 kg-f2 pkg-static: autoconf-2.69 installed
Feb 27 18:59:25 kg-f2 pkg-static: automake-wrapper-20131203 installed
Feb 27 18:59:25 kg-f2 pkg-static: automake-1.15_1 installed
Feb 27 18:59:34 kg-f2 pkg-static: libyaml-0.1.6_2 installed
Feb 27 18:59:35 kg-f2 pkg-static: libexecinfo-1.1_3 installed
Feb 27 18:59:46 kg-f2 pkg-static: libedit-3.1.20150325_1 installed
Feb 27 19:04:21 kg-f2 pkg-static: ruby-2.1.8,1 installed
Feb 27 19:06:03 kg-f2 pkg-static: db5-5.3.28_3 installed
Feb 27 19:06:34 kg-f2 pkg-static: ruby21-bdb-0.6.6_4 installed
Feb 27 19:06:34 kg-f2 pkg-static: portupgrade-2.4.14,2 installed
Feb 27 19:08:20 kg-f2 pkg-static: pkgconf-0.9.12_1 installed
Feb 27 19:08:28 kg-f2 pkg-static: expat-2.1.0_3 installed
Feb 27 19:08:39 kg-f2 pkg-static: gdbm-1.11_2 installed
Feb 27 19:09:35 kg-f2 pkg-static: apr-1.5.2.1.5.4 installed
Feb 27 19:10:14 kg-f2 pkg-static: sqlite3-3.10.2_2 installed
Feb 27 19:11:55 kg-f2 pkg-static: python27-2.7.11_1 installed
Feb 27 19:12:01 kg-f2 pkg-static: py27-setuptools27-20.0 installed
Feb 27 19:12:02 kg-f2 pkg-static: python2-2_3 installed
Feb 27 19:12:04 kg-f2 pkg-static: scons-2.4.1 installed
Feb 27 19:12:13 kg-f2 pkg-static: serf-1.3.8_1 installed
Feb 27 19:14:50 kg-f2 pkg-static: subversion-1.9.3_1 installed

good.

2016-02-27: ports - list all ports:

root@kg-f2# pv -OL=\>
autoconf-2.68               <  needs updating (port has 2.69) (=> 'devel/autoconf')
autoconf-wrapper-20071109   <  needs updating (port has 20131203)
automake-1.11.1             <  needs updating (port has 1.15) (=> 'devel/automake')
automake-wrapper-20071109   <  needs updating (port has 20131203)
bonnie++-1.96               <  needs updating (port has 1.97_3)
bsdstats-5.5_1              <  needs updating (port has 6.0)
cpuid-3.3_6                 <  needs updating (port has 3.3_7)
db41-4.1.25_4               <  needs updating (port has 4.8.30.0_2) (=> 'databases/db48')
dmidecode-2.10              <  needs updating (port has 2.12)
fusefs-kmod-0.3.9.p1.20080208_7  <  needs updating (port has 0.263233_1,1)
fusefs-libs-2.7.4           <  needs updating (port has 2.9.4)
fusefs-sshfs-2.2            <  needs updating (port has 2.5)
gamin-0.1.10_4              <  needs updating (port has 0.1.10_8)
gettext-0.18.1.1            <  needs updating (port has 0.19.4)
gio-fam-backend-2.24.2      <  needs updating (port has 2.44.1_1) (=> 'devel/glib20')
glib-2.24.2                 <  needs updating (port has 2.44.1_1)
gmake-3.81_4                <  needs updating (port has 4.1_2)
help2man-1.38.2_1           <  needs updating (port has 1.43.3_1)
k8temp-0.4.0                <  needs updating (port has 0.4.1)
libtool-2.2.10              <  needs updating (port has 2.4.6) (=> 'devel/libtool')
lsof-4.84A,5                <  needs updating (port has 4.89.e,8)
m4-1.4.15,1                 <  needs updating (port has 1.4.17_1,1)
ncftp-3.2.4                 <  needs updating (port has 3.2.5)
p5-Digest-SHA1-2.13         <  needs updating (port has 2.13_1)
p5-Locale-gettext-1.05_3    <  needs updating (port has 1.05_4)
p5-Number-Bytes-Human-0.07  <  needs updating (port has 0.07_1)
pcre-8.10                   <  needs updating (port has 8.37_2)
portupgrade-2.4.6_4,2       <  needs updating (port has 2.4.14,2)
python26-2.6.6              <  needs updating (port has 2.7.10) (=> 'lang/python27')
rkhunter-1.3.6              <  needs updating (port has 1.4.2_2)
ruby-1.8.7.248_5,1          <  needs updating (port has 2.0.0.645,1) (=> 'lang/ruby20')
ruby18-bdb-0.6.5_1          <  needs updating (port has 0.6.6_4)
smartmontools-5.40          <  needs updating (port has 6.4_1)
unzip-6.0                   <  needs updating (port has 6.0_6)
wget-1.12_2                 <  needs updating (port has 1.16.3)
x86info-1.27_1              <  needs updating (port has 1.30_1)
zfs-stats-1.0               <  needs updating (port has 1.2.2_1)

it is probably easier to just remove all ports and then start from scratch. Do it:

root@kg-f2# pkg remove bonnie++-1.96 bsdstats-5.5_1 cpuid-3.3_6 db41-4.1.25_4 dmidecode-2.10 fusefs-kmod-0.3.9.p1.20080208_7 fusefs-libs-2.7.4 k8temp-0.4.0 libiconv-1.14_9 libtool-2.2.10 lsof-4.84A,5 m4-1.4.15,1 ncftp-3.2.4 p5-Digest-SHA1-2.13 p5-Number-Bytes-Human-0.07 pcre-8.10 perl-5.8.9_3 pkg-config-0.25_1 portupgrade-2.4.6_4,2 python26-2.6.6 ruby-1.8.7.248_5,1 ruby18-bdb-0.6.5_1 ruby18-deplate-0.8.5 smartmontools-5.40 unzip-6.0 x86info-1.27_1 zfs-stats-1.0
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 27 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
    bonnie++-1.96
    bsdstats-5.5_1
    cpuid-3.3_6
    db41-4.1.25_4
    dmidecode-2.10
    fusefs-kmod-0.3.9.p1.20080208_7
    fusefs-libs-2.7.4
    k8temp-0.4.0
    libiconv-1.14_9
    libtool-2.2.10
    lsof-4.84A,5
    m4-1.4.15,1
    ncftp-3.2.4
    p5-Digest-SHA1-2.13
    p5-Number-Bytes-Human-0.07
    pcre-8.10
    perl-5.8.9_3
    pkg-config-0.25_1
    portupgrade-2.4.6_4,2
    python26-2.6.6
    ruby-1.8.7.248_5,1
    ruby18-bdb-0.6.5_1
    ruby18-deplate-0.8.5
    smartmontools-5.40
    unzip-6.0
    x86info-1.27_1
    zfs-stats-1.0

The operation will free 132 iB.

Proceed with deinstalling packages? [y/N]: y
[1/27] Deinstalling portupgrade-2.4.6_4,2...
[1/27] Deleting files for portupgrade-2.4.6_4,2: 100%
[2/27] Deinstalling zfs-stats-1.0...
[2/27] Deleting files for zfs-stats-1.0: 100%
[3/27] Deinstalling fusefs-libs-2.7.4...
[3/27] Deleting files for fusefs-libs-2.7.4: 100%
[4/27] Deinstalling p5-Digest-SHA1-2.13...
[4/27] Deleting files for p5-Digest-SHA1-2.13: 100%
[5/27] Deinstalling p5-Number-Bytes-Human-0.07...
[5/27] Deleting files for p5-Number-Bytes-Human-0.07: 100%
[6/27] Deinstalling ruby18-bdb-0.6.5_1...
[6/27] Deleting files for ruby18-bdb-0.6.5_1: 100%
[7/27] Deinstalling ruby18-deplate-0.8.5...
[7/27] Deleting files for ruby18-deplate-0.8.5: 100%
[8/27] Deinstalling bonnie++-1.96...
[8/27] Deleting files for bonnie++-1.96: 100%
[9/27] Deinstalling bsdstats-5.5_1...
[9/27] Deleting files for bsdstats-5.5_1: 100%
[10/27] Deinstalling cpuid-3.3_6...
[10/27] Deleting files for cpuid-3.3_6: 100%
[11/27] Deinstalling db41-4.1.25_4...
[11/27] Deleting files for db41-4.1.25_4: 100%
[12/27] Deinstalling dmidecode-2.10...
[12/27] Deleting files for dmidecode-2.10: 100%
[13/27] Deinstalling fusefs-kmod-0.3.9.p1.20080208_7...
[13/27] Deleting files for fusefs-kmod-0.3.9.p1.20080208_7: 100%
[14/27] Deinstalling k8temp-0.4.0...
[14/27] Deleting files for k8temp-0.4.0: 100%
[15/27] Deinstalling libiconv-1.14_9...
[15/27] Deleting files for libiconv-1.14_9: 100%
[16/27] Deinstalling libtool-2.2.10...
[16/27] Deleting files for libtool-2.2.10: 100%
[17/27] Deinstalling lsof-4.84A,5...
[17/27] Deleting files for lsof-4.84A,5: 100%
[18/27] Deinstalling m4-1.4.15,1...
[18/27] Deleting files for m4-1.4.15,1: 100%
[19/27] Deinstalling ncftp-3.2.4...
[19/27] Deleting files for ncftp-3.2.4: 100%
[20/27] Deinstalling pcre-8.10...
[20/27] Deleting files for pcre-8.10: 100%
[21/27] Deinstalling perl-5.8.9_3...
[21/27] Deleting files for perl-5.8.9_3: 100%
Removing stale symlinks from /usr/bin...
    Removing /usr/bin/perl
    Removing /usr/bin/perl5
Done.
Cleaning up /etc/make.conf... Done.
Cleaning up /etc/manpath.config... Done.
[22/27] Deinstalling pkg-config-0.25_1...
[22/27] Deleting files for pkg-config-0.25_1: 100%
[23/27] Deinstalling python26-2.6.6...
[23/27] Deleting files for python26-2.6.6: 100%
[24/27] Deinstalling ruby-1.8.7.248_5,1...
[24/27] Deleting files for ruby-1.8.7.248_5,1: 100%
[25/27] Deinstalling smartmontools-5.40...
===> Stopping smartd ...
[25/27] Deleting files for smartmontools-5.40: 100%
[26/27] Deinstalling unzip-6.0...
[26/27] Deleting files for unzip-6.0: 100%
[27/27] Deinstalling x86info-1.27_1...
[27/27] Deleting files for x86info-1.27_1: 100%

ok.

2016-02-27: ports - remove a few ports

root@kg-f2# pkg remove  autoconf-2.68 autoconf-wrapper-20071109   automake-1.11.1  automake-wrapper-20071109
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 4 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
    autoconf-2.68
    autoconf-wrapper-20071109
    automake-1.11.1
    automake-wrapper-20071109

The operation will free 4 iB.

Proceed with deinstalling packages? [y/N]: y
[1/4] Deinstalling automake-1.11.1...
[1/4] Deleting files for automake-1.11.1: 100%
[2/4] Deinstalling autoconf-2.68...
[2/4] Deleting files for autoconf-2.68: 100%
[3/4] Deinstalling autoconf-wrapper-20071109...
[3/4] Deleting files for autoconf-wrapper-20071109: 100%
[4/4] Deinstalling automake-wrapper-20071109...
[4/4] Deleting files for automake-wrapper-20071109: 100%

ok.

2016-02-27: ports - build subversion:

root@kg-f2# cd /usr/ports/devel/subversion/
root@kg-f2# make install clean
===> Building/installing dialog4ports as it is required for the config dialog
"/usr/ports/Mk/Uses/python.mk", line 398: Could not find /usr/ports/lang/python26/Makefile.version
Usage: /usr/local/bin/python2.6-config [--prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--help]
"/usr/ports/Mk/Uses/python.mk", line 409: warning: "/usr/local/bin/python2.6-config --abiflags" returned non-zero status
make: fatal errors encountered -- cannot continue
===>  Cleaning for dialog4ports-0.1.5_2
===>  License BSD2CLAUSE accepted by the user
===>   dialog4ports-0.1.5_2 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by dialog4ports-0.1.5_2 for building
===>  Extracting for dialog4ports-0.1.5_2
=> SHA256 Checksum OK for dialog4ports-0.1.5.tar.gz.
===>  Patching for dialog4ports-0.1.5_2
===>  Configuring for dialog4ports-0.1.5_2
===>  Building for dialog4ports-0.1.5_2
Warning: Object directory not changed from original /usr/ports/ports-mgmt/dialog4ports/work/dialog4ports-0.1.5
cc -O2 -pipe -fstack-protector -fno-strict-aliasing  -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c dialog4ports.c
cc -O2 -pipe -fstack-protector -fno-strict-aliasing  -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c mixedlist.c
dialog4ports.c:32:22: error: dlg_keys.h: No such file or directory
mixedlist.c:29:22: error: dlg_keys.h: No such file or directory
mixedlist.c: In function 'd4p_default_mixlistitem':
mixedlist.c:44: error: 'dialog_vars' undeclared (first use in this function)
mixedlist.c:44: error: (Each undeclared identifier is reported only once
mixedlist.c:44: error: for each function it appears in.)
cc1: warnings being treated as errors
mixedlist.c:47: warning: implicit declaration of function 'strcmp'
mixedlist.c: In function 'd4p_calc_mixlist_width':
mixedlist.c:64: warning: implicit declaration of function 'dlg_count_columns'
mixedlist.c:64: warning: nested extern declaration of 'dlg_count_columns'
mixedlist.c: In function 'd4p_calc_mixlisth':
mixedlist.c:77: error: 'SLINES' undeclared (first use in this function)
mixedlist.c:77: error: 'dialog_vars' undeclared (first use in this function)
mixedlist.c: In function 'd4p_print_arrows':
mixedlist.c:96: warning: implicit declaration of function 'dlg_draw_scrollbar'
mixedlist.c:96: warning: nested extern declaration of 'dlg_draw_scrollbar'
mixedlist.c: In function 'd4p_helpwindow':
mixedlist.c:116: error: 'DLG_EXIT_ERROR' undeclared (first use in this function)
mixedlist.c:118: error: 'dialog_vars' undeclared (first use in this function)
mixedlist.c:120: warning: passing argument 1 of 'dialog_textbox' discards qualifiers from pointer target type
mixedlist.c:120: warning: passing argument 2 of 'dialog_textbox' discards qualifiers from pointer target type
mixedlist.c: In function 'd4p_clean_window':
mixedlist.c:129: warning: implicit declaration of function 'dlg_clear'
mixedlist.c:129: warning: nested extern declaration of 'dlg_clear'
mixedlist.c:131: warning: implicit declaration of function 'dlg_del_window'
mixedlist.c:131: warning: nested extern declaration of 'dlg_del_window'
mixedlist.c:132: warning: implicit declaration of function 'dlg_mouse_free_regions'
mixedlist.c:132: warning: nested extern declaration of 'dlg_mouse_free_regions'
mixedlist.c: In function 'print_item':
mixedlist.c:149: warning: implicit declaration of function 'dlg_get_attrs'
mixedlist.c:149: warning: nested extern declaration of 'dlg_get_attrs'
mixedlist.c:175: warning: implicit declaration of function 'strlen'
mixedlist.c:175: warning: incompatible implicit declaration of built-in function 'strlen'
mixedlist.c:207: warning: incompatible implicit declaration of built-in function 'strlen'
mixedlist.c:209: warning: implicit declaration of function 'dlg_index_wchars'
mixedlist.c:209: warning: nested extern declaration of 'dlg_index_wchars'
mixedlist.c:209: warning: assignment makes pointer from integer without a cast
mixedlist.c:215: warning: implicit declaration of function 'dlg_limit_columns'
mixedlist.c:215: warning: nested extern declaration of 'dlg_limit_columns'
mixedlist.c:226: warning: incompatible implicit declaration of built-in function 'strlen'
mixedlist.c:227: warning: implicit declaration of function 'dlg_index_columns'
mixedlist.c:227: warning: nested extern declaration of 'dlg_index_columns'
mixedlist.c:227: warning: assignment makes pointer from integer without a cast
mixedlist.c:234: warning: implicit declaration of function 'dlg_print_text'
mixedlist.c:234: warning: nested extern declaration of 'dlg_print_text'
mixedlist.c: In function 'dlg_mixedlist':
mixedlist.c:260: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'binding'
mixedlist.c:260: error: 'binding' undeclared (first use in this function)
mixedlist.c:260: error: expected expression before ']' token
mixedlist.c:290: error: 'dialog_state' undeclared (first use in this function)
mixedlist.c:290: warning: implicit declaration of function 'dlg_defaultno_button'
mixedlist.c:290: warning: nested extern declaration of 'dlg_defaultno_button'
mixedlist.c:297: error: 'DLG_EXIT_UNKNOWN' undeclared (first use in this function)
mixedlist.c:300: warning: implicit declaration of function 'dlg_strclone'
mixedlist.c:300: warning: nested extern declaration of 'dlg_strclone'
mixedlist.c:300: warning: initialization makes pointer from integer without a cast
mixedlist.c:301: warning: implicit declaration of function 'dlg_ok_labels'
mixedlist.c:301: warning: nested extern declaration of 'dlg_ok_labels'
mixedlist.c:301: warning: initialization makes pointer from integer without a cast
mixedlist.c:304: warning: implicit declaration of function 'dlg_does_output'
mixedlist.c:304: warning: nested extern declaration of 'dlg_does_output'
mixedlist.c:305: warning: implicit declaration of function 'dlg_tab_correct_str'
mixedlist.c:305: warning: nested extern declaration of 'dlg_tab_correct_str'
mixedlist.c:332: error: 'SLINES' undeclared (first use in this function)
mixedlist.c:332: error: 'SCOLS' undeclared (first use in this function)
mixedlist.c:349: warning: implicit declaration of function 'dlg_auto_size'
mixedlist.c:349: warning: nested extern declaration of 'dlg_auto_size'
mixedlist.c:349: error: 'MARGIN' undeclared (first use in this function)
mixedlist.c:350: warning: implicit declaration of function 'MAX'
mixedlist.c:350: warning: nested extern declaration of 'MAX'
mixedlist.c:361: warning: implicit declaration of function 'dlg_button_layout'
mixedlist.c:361: warning: nested extern declaration of 'dlg_button_layout'
mixedlist.c:362: warning: implicit declaration of function 'dlg_print_size'
mixedlist.c:362: warning: nested extern declaration of 'dlg_print_size'
mixedlist.c:363: warning: implicit declaration of function 'dlg_ctl_size'
mixedlist.c:363: warning: nested extern declaration of 'dlg_ctl_size'
mixedlist.c:365: warning: implicit declaration of function 'dlg_box_x_ordinate'
mixedlist.c:365: warning: nested extern declaration of 'dlg_box_x_ordinate'
mixedlist.c:366: warning: implicit declaration of function 'dlg_box_y_ordinate'
mixedlist.c:366: warning: nested extern declaration of 'dlg_box_y_ordinate'
mixedlist.c:368: warning: implicit declaration of function 'dlg_new_window'
mixedlist.c:368: warning: nested extern declaration of 'dlg_new_window'
mixedlist.c:368: warning: assignment makes pointer from integer without a cast
mixedlist.c:369: warning: implicit declaration of function 'dlg_register_window'
mixedlist.c:369: warning: nested extern declaration of 'dlg_register_window'
mixedlist.c:370: warning: implicit declaration of function 'dlg_register_buttons'
mixedlist.c:370: warning: nested extern declaration of 'dlg_register_buttons'
mixedlist.c:372: warning: implicit declaration of function 'dlg_mouse_setbase'
mixedlist.c:372: warning: nested extern declaration of 'dlg_mouse_setbase'
mixedlist.c:374: warning: implicit declaration of function 'dlg_draw_box'
mixedlist.c:374: warning: nested extern declaration of 'dlg_draw_box'
mixedlist.c:375: warning: implicit declaration of function 'dlg_draw_bottom_box'
mixedlist.c:375: warning: nested extern declaration of 'dlg_draw_bottom_box'
mixedlist.c:377: warning: implicit declaration of function 'dlg_draw_title'
mixedlist.c:377: warning: nested extern declaration of 'dlg_draw_title'
mixedlist.c:380: warning: implicit declaration of function 'dlg_print_autowrap'
mixedlist.c:380: warning: nested extern declaration of 'dlg_print_autowrap'
mixedlist.c:387: error: 'dialog_vars' undeclared (first use in this function)
mixedlist.c:389: warning: implicit declaration of function 'dlg_item_help'
mixedlist.c:389: warning: nested extern declaration of 'dlg_item_help'
mixedlist.c:401: warning: implicit declaration of function 'MIN'
mixedlist.c:401: warning: nested extern declaration of 'MIN'
mixedlist.c:404: warning: implicit declaration of function 'dlg_sub_window'
mixedlist.c:404: warning: nested extern declaration of 'dlg_sub_window'
mixedlist.c:405: warning: assignment makes pointer from integer without a cast
mixedlist.c:464: warning: implicit declaration of function 'dlg_mouse_mkbigregion'
mixedlist.c:464: warning: nested extern declaration of 'dlg_mouse_mkbigregion'
mixedlist.c:471: warning: implicit declaration of function 'dlg_draw_buttons'
mixedlist.c:471: warning: nested extern declaration of 'dlg_draw_buttons'
mixedlist.c:477: warning: implicit declaration of function 'dlg_mouse_wgetch'
mixedlist.c:477: warning: nested extern declaration of 'dlg_mouse_wgetch'
mixedlist.c:478: warning: implicit declaration of function 'dlg_result_key'
mixedlist.c:478: warning: nested extern declaration of 'dlg_result_key'
mixedlist.c:481: warning: implicit declaration of function 'is_DLGK_MOUSE'
mixedlist.c:481: warning: nested extern declaration of 'is_DLGK_MOUSE'
mixedlist.c:483: error: 'M_EVENT' undeclared (first use in this function)
mixedlist.c:507: warning: implicit declaration of function 'dlg_lookup_key'
mixedlist.c:507: warning: nested extern declaration of 'dlg_lookup_key'
mixedlist.c:562: warning: implicit declaration of function 'dlg_exiterr'
mixedlist.c:562: warning: nested extern declaration of 'dlg_exiterr'
mixedlist.c:579: warning: implicit declaration of function 'dlg_match_char'
mixedlist.c:579: warning: nested extern declaration of 'dlg_match_char'
mixedlist.c:579: warning: implicit declaration of function 'dlg_last_getc'
mixedlist.c:579: warning: nested extern declaration of 'dlg_last_getc'
mixedlist.c:597: warning: implicit declaration of function 'dlg_flush_getc'
mixedlist.c:597: warning: nested extern declaration of 'dlg_flush_getc'
mixedlist.c:598: warning: implicit declaration of function 'dlg_char_to_button'
mixedlist.c:598: warning: nested extern declaration of 'dlg_char_to_button'
mixedlist.c:621: error: 'DLGK_ITEM_FIRST' undeclared (first use in this function)
mixedlist.c:624: error: 'DLGK_ITEM_LAST' undeclared (first use in this function)
mixedlist.c:627: error: 'DLGK_PAGE_PREV' undeclared (first use in this function)
mixedlist.c:641: error: 'DLGK_PAGE_NEXT' undeclared (first use in this function)
mixedlist.c:650: error: 'DLGK_ITEM_PREV' undeclared (first use in this function)
mixedlist.c:657: error: 'DLGK_ITEM_NEXT' undeclared (first use in this function)
mixedlist.c:757: error: 'DLGK_ENTER' undeclared (first use in this function)
mixedlist.c:758: warning: implicit declaration of function 'dlg_enter_buttoncode'
mixedlist.c:758: warning: nested extern declaration of 'dlg_enter_buttoncode'
mixedlist.c:760: error: 'DLGK_FIELD_PREV' undeclared (first use in this function)
mixedlist.c:761: warning: implicit declaration of function 'dlg_prev_button'
mixedlist.c:761: warning: nested extern declaration of 'dlg_prev_button'
mixedlist.c:765: error: 'DLGK_FIELD_NEXT' undeclared (first use in this function)
mixedlist.c:766: warning: implicit declaration of function 'dlg_next_button'
mixedlist.c:766: warning: nested extern declaration of 'dlg_next_button'
mixedlist.c:780: warning: implicit declaration of function 'dlg_ok_buttoncode'
mixedlist.c:780: warning: nested extern declaration of 'dlg_ok_buttoncode'
mixedlist.c:798: warning: implicit declaration of function 'free'
mixedlist.c:798: warning: nested extern declaration of 'free'
*** Error code 1
cc1: warnings being treated as errors
dialog4ports.c: In function 'add_item':
dialog4ports.c:68: warning: implicit declaration of function 'strdup'
dialog4ports.c:68: warning: incompatible implicit declaration of built-in function 'strdup'
dialog4ports.c: In function 'parse_env_sl':
dialog4ports.c:117: warning: incompatible implicit declaration of built-in function 'strdup'
dialog4ports.c:118: warning: implicit declaration of function 'strsep'
dialog4ports.c:118: warning: nested extern declaration of 'strsep'
dialog4ports.c:118: warning: assignment makes pointer from integer without a cast
dialog4ports.c: In function 'parsing_env':
dialog4ports.c:142: warning: implicit declaration of function 'strcmp'
dialog4ports.c:143: warning: incompatible implicit declaration of built-in function 'strdup'
dialog4ports.c:145: warning: assignment makes pointer from integer without a cast
dialog4ports.c:153: warning: incompatible implicit declaration of built-in function 'strdup'
dialog4ports.c:154: warning: assignment makes pointer from integer without a cast
dialog4ports.c:166: warning: assignment makes pointer from integer without a cast
dialog4ports.c: In function 'main':
dialog4ports.c:259: error: too many arguments to function 'init_dialog'
dialog4ports.c:291: warning: implicit declaration of function 'strcasecmp'
dialog4ports.c:292: error: 'SLINES' undeclared (first use in this function)
dialog4ports.c:292: error: (Each undeclared identifier is reported only once
dialog4ports.c:292: error: for each function it appears in.)
dialog4ports.c:293: error: 'SCOLS' undeclared (first use in this function)
dialog4ports.c:314: error: 'dialog_vars' undeclared (first use in this function)
dialog4ports.c:326: warning: implicit declaration of function 'dlg_clear'
dialog4ports.c:326: warning: nested extern declaration of 'dlg_clear'
*** Error code 1
2 errors
===> 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/dialog4ports.
*** Error code 1

Stop in /usr/ports/ports-mgmt/dialog4ports.
===> Options unchanged

You can have the repository created for you by defining
WITH_REPOSITORY_CREATION.

Make sure that:
* all your svn users are members of a common group
* this group is the group id of the db/ and locks/
  subdirectories of your repository
* the above subdirectories are writable by this group

Many useful scripts will be installed into /usr/local/share/subversion
===>  License APACHE20 accepted by the user
===>   subversion-1.9.3_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by subversion-1.9.3_1 for building
===>  Extracting for subversion-1.9.3_1
=> SHA256 Checksum OK for subversion19/subversion-1.9.3.tar.bz2.
===>  Patching for subversion-1.9.3_1
===>  Applying extra patch /usr/ports/devel/subversion/files/extra-patch-fbsd-template
===>  Applying FreeBSD patches for subversion-1.9.3_1
===>   subversion-1.9.3_1 depends on executable: pkgconf - not found
===>  License ISCL accepted by the user
===>   pkgconf-0.9.12_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by pkgconf-0.9.12_1 for building
===>  Extracting for pkgconf-0.9.12_1
=> SHA256 Checksum OK for pkgconf-0.9.12.tar.bz2.
===>  Patching for pkgconf-0.9.12_1
===>  Configuring for pkgconf-0.9.12_1
configure: loading site script /usr/ports/Templates/config.site
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for strlcpy... (cached) yes
checking for strlcat... (cached) yes
checking for strndup... (cached) yes
checking for strtok_r... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether to enable strict mode... (cached) no
checking how to run the C preprocessor... cpp
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tests/run.sh
config.status: creating config.h
===>  Building for pkgconf-0.9.12_1
cc -O2 -pipe -fstack-protector -fno-strict-aliasing -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DPKG_DEFAULT_PATH=\"/usr/local/libdata/pkgconfig:/usr/libdata/pkgconfig\" -DSYSTEM_INCLUDEDIR=\"/usr/include\" -DSYSTEM_LIBDIR=\"/usr/lib\" -Wall -Wextra -Wformat=2 -std=gnu99 -c main.c -o main.o
cc -O2 -pipe -fstack-protector -fno-strict-aliasing -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DPKG_DEFAULT_PATH=\"/usr/local/libdata/pkgconfig:/usr/libdata/pkgconfig\" -DSYSTEM_INCLUDEDIR=\"/usr/include\" -DSYSTEM_LIBDIR=\"/usr/lib\" -Wall -Wextra -Wformat=2 -std=gnu99 -c cache.c -o cache.o
cc -O2 -pipe -fstack-protector -fno-strict-aliasing -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DPKG_DEFAULT_PATH=\"/usr/local/libdata/pkgconfig:/usr/libdata/pkgconfig\" -DSYSTEM_INCLUDEDIR=\"/usr/include\" -DSYSTEM_LIBDIR=\"/usr/lib\" -Wall -Wextra -Wformat=2 -std=gnu99 -c pkg.c -o pkg.o
cc -O2 -pipe -fstack-protector -fno-strict-aliasing -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DPKG_DEFAULT_PATH=\"/usr/local/libdata/pkgconfig:/usr/libdata/pkgconfig\" -DSYSTEM_INCLUDEDIR=\"/usr/include\" -DSYSTEM_LIBDIR=\"/usr/lib\" -Wall -Wextra -Wformat=2 -std=gnu99 -c bsdstubs.c -o bsdstubs.o
cc -O2 -pipe -fstack-protector -fno-strict-aliasing -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DPKG_DEFAULT_PATH=\"/usr/local/libdata/pkgconfig:/usr/libdata/pkgconfig\" -DSYSTEM_INCLUDEDIR=\"/usr/include\" -DSYSTEM_LIBDIR=\"/usr/lib\" -Wall -Wextra -Wformat=2 -std=gnu99 -c getopt_long.c -o getopt_long.o
cc -O2 -pipe -fstack-protector -fno-strict-aliasing -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DPKG_DEFAULT_PATH=\"/usr/local/libdata/pkgconfig:/usr/libdata/pkgconfig\" -DSYSTEM_INCLUDEDIR=\"/usr/include\" -DSYSTEM_LIBDIR=\"/usr/lib\" -Wall -Wextra -Wformat=2 -std=gnu99 -c fragment.c -o fragment.o
cc -O2 -pipe -fstack-protector -fno-strict-aliasing -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DPKG_DEFAULT_PATH=\"/usr/local/libdata/pkgconfig:/usr/libdata/pkgconfig\" -DSYSTEM_INCLUDEDIR=\"/usr/include\" -DSYSTEM_LIBDIR=\"/usr/lib\" -Wall -Wextra -Wformat=2 -std=gnu99 -c argvsplit.c -o argvsplit.o
cc -O2 -pipe -fstack-protector -fno-strict-aliasing -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DPKG_DEFAULT_PATH=\"/usr/local/libdata/pkgconfig:/usr/libdata/pkgconfig\" -DSYSTEM_INCLUDEDIR=\"/usr/include\" -DSYSTEM_LIBDIR=\"/usr/lib\" -Wall -Wextra -Wformat=2 -std=gnu99 -c fileio.c -o fileio.o
cc -O2 -pipe -fstack-protector -fno-strict-aliasing -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DPKG_DEFAULT_PATH=\"/usr/local/libdata/pkgconfig:/usr/libdata/pkgconfig\" -DSYSTEM_INCLUDEDIR=\"/usr/include\" -DSYSTEM_LIBDIR=\"/usr/lib\" -Wall -Wextra -Wformat=2 -std=gnu99 -c tuple.c -o tuple.o
cc -O2 -pipe -fstack-protector -fno-strict-aliasing -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DPKG_DEFAULT_PATH=\"/usr/local/libdata/pkgconfig:/usr/libdata/pkgconfig\" -DSYSTEM_INCLUDEDIR=\"/usr/include\" -DSYSTEM_LIBDIR=\"/usr/lib\" -Wall -Wextra -Wformat=2 -std=gnu99 -c dependency.c -o dependency.o
cc -O2 -pipe -fstack-protector -fno-strict-aliasing -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DPKG_DEFAULT_PATH=\"/usr/local/libdata/pkgconfig:/usr/libdata/pkgconfig\" -DSYSTEM_INCLUDEDIR=\"/usr/include\" -DSYSTEM_LIBDIR=\"/usr/lib\" -Wall -Wextra -Wformat=2 -std=gnu99 -c queue.c -o queue.o
cc -fstack-protector -o pkgconf main.o cache.o pkg.o bsdstubs.o getopt_long.o fragment.o argvsplit.o fileio.o tuple.o dependency.o queue.o
===>  Staging for pkgconf-0.9.12_1
===>   Generating temporary packing list
mkdir -p /usr/ports/devel/pkgconf/work/stage/usr/local/bin
install  -s -m 555 pkgconf /usr/ports/devel/pkgconf/work/stage/usr/local/bin/pkgconf
mkdir -p /usr/ports/devel/pkgconf/work/stage/usr/local/share/aclocal
install  -m 0644 ./pkg.m4 /usr/ports/devel/pkgconf/work/stage/usr/local/share/aclocal/pkg.m4
mkdir -p /usr/ports/devel/pkgconf/work/stage/usr/local/man/man1
install  -m 0644 ./pkgconf.1 /usr/ports/devel/pkgconf/work/stage/usr/local/man/man1/pkgconf.1
/bin/ln -sf pkgconf /usr/ports/devel/pkgconf/work/stage/usr/local/bin/pkg-config
====> Compressing man pages (compress-man)
===>  Installing for pkgconf-0.9.12_1
===>  Checking if pkgconf already installed
===>   Registering installation for pkgconf-0.9.12_1 as automatic
Installing pkgconf-0.9.12_1...
pkg-static: pkgconf-0.9.12_1 conflicts with pkg-config-0.25_1 (installs files into the same place).  Problematic file: /usr/local/bin/pkg-config
*** Error code 70

Stop in /usr/ports/devel/pkgconf.
*** Error code 1

Stop in /usr/ports/devel/subversion.
*** Error code 1

Stop in /usr/ports/devel/subversion.

ok, upgrade ports first then.

2016-02-27: ports - try to install pkg:

root@kg-f2# cd /usr/ports/ports-mgmt/pkg && make UPGRADEPKG=1 install clean
[...]
====> Compressing man pages (compress-man)
===>  Installing for pkg-1.6.4_1
===>  Checking if pkg already installed
===>   Registering installation for pkg-1.6.4_1
Installing pkg-1.6.4_1...
===> SECURITY REPORT:
      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.
/usr/local/lib/libpkg.so.3.0.0

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage:
http://wiki.freebsd.org/pkgng
"/usr/ports/Mk/Uses/python.mk", line 398: Could not find /usr/ports/lang/python26/Makefile.version
Usage: /usr/local/bin/python2.6-config [--prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--help]
"/usr/ports/Mk/Uses/python.mk", line 409: warning: "/usr/local/bin/python2.6-config --abiflags" returned non-zero status
make: fatal errors encountered -- cannot continue
===>  Cleaning for pkg-1.6.4_1

ok?

root@kg-f2# which pkg
/usr/local/sbin/pkg
root@kg-f2# pkg help
Usage: pkg [-v] [-d] [-l] [-N] [-j <jail name or id>|-c <chroot path>|-r <rootdir>] [-C <configuration file>] [-R <repo config dir>] [-o var=value] [-4|-6] <command> [<args>]
Global options supported:
    -d             Increment debug level
    -j             Execute pkg(8) inside a jail(8)
    -r             Execute pkg(8) using relocating installation to <rootdir>
    -c             Execute pkg(8) inside a chroot(8)
    -C             Use the specified configuration file
    -R             Directory to search for individual repository configurations
    -l             List available commands and exit
    -v             Display pkg(8) version
    -N             Test if pkg(8) is activated and avoid auto-activation
    -o             Override configuration option from the command line
    -4             Only use IPv4
    -6             Only use IPv6

Commands supported:
    add            Compatibility interface to install a package
    alias          List the command line aliases
    annotate       Add, modify or delete tag-value style annotations on packages
    audit          Reports vulnerable packages
    autoremove     Removes orphan packages
    backup         Backs-up and restores the local package database
    check          Checks for missing dependencies and database consistency
    clean          Cleans old packages from the cache
    config         Display the value of the configuration options
    convert        Convert database from/to pkgng
    create         Creates software package distributions
    delete         Deletes packages from the database and the system
    fetch          Fetches packages from a remote repository
    help           Displays help information
    info           Displays information about installed packages
    install        Installs packages from remote package repositories and local archives
    lock           Locks package against modifications or deletion
    plugins        Manages plugins and displays information about plugins
    query          Queries information about installed packages
    register       Registers a package into the local database
    remove         Deletes packages from the database and the system
    repo           Creates a package repository catalogue
    rquery         Queries information in repository catalogues
    search         Performs a search of package repository catalogues
    set            Modifies information about packages in the local database
    ssh            Package server (to be used via ssh)
    shell          Opens a debug shell
    shlib          Displays which packages link against a specific shared library
    stats          Displays package database statistics
    unlock         Unlocks a package, allowing modification or deletion
    update         Updates package repository catalogues
    updating       Displays UPDATING information for a package
    upgrade        Performs upgrades of packaged software distributions
    version        Displays the versions of installed packages
    which          Displays which package installed a specific file

Commands provided by plugins:

For more information on the different commands see 'pkg help <command>'.
root@kg-f2# which pkg2ng
/usr/local/sbin/pkg2ng

looks like it. Now convert:

root@kg-f2# pkg2ng
Converting packages from /var/db/pkg
Converting automake-wrapper-20071109...
Installing automake-wrapper-20071109...
Converting libtool-2.2.10...
Installing libtool-2.2.10...
Converting bonnie++-1.96...
Installing bonnie++-1.96...
Converting db41-4.1.25_4...
Installing db41-4.1.25_4...
Converting pkg-config-0.25_1...
pkg: lstat(/usr/local/lib/pkgconfig/): No such file or directory
pkg: lstat(/usr/local/lib/pkgconfig/): No such file or directory
Installing pkg-config-0.25_1...
Converting gettext-0.18.1.1...
Installing gettext-0.18.1.1...
Converting portupgrade-2.4.6_4,2...
Installing portupgrade-2.4.6_4,2...
Converting fusefs-kmod-0.3.9.p1.20080208_7...
Installing fusefs-kmod-0.3.9.p1.20080208_7...
Converting automake-1.11.1...
Installing automake-1.11.1...
Converting gio-fam-backend-2.24.2...
Installing gio-fam-backend-2.24.2...
Converting wget-1.12_2...
Installing wget-1.12_2...
Converting p5-Number-Bytes-Human-0.07...
Installing p5-Number-Bytes-Human-0.07...
Converting help2man-1.38.2_1...
Installing help2man-1.38.2_1...
Converting k8temp-0.4.0...
Installing k8temp-0.4.0...
Converting unzip-6.0...
Installing unzip-6.0...
Converting pcre-8.10...
Installing pcre-8.10...
Converting x86info-1.27_1...
Installing x86info-1.27_1...
Converting bsdstats-5.5_1...
Installing bsdstats-5.5_1...
Converting glib-2.24.2...
Installing glib-2.24.2...
Converting ncftp-3.2.4...
Installing ncftp-3.2.4...
Converting gamin-0.1.10_4...
Installing gamin-0.1.10_4...
Converting perl-5.8.9_3...
pkg: lstat(/usr/local/lib/perl5/5.8.9/mach/XS/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/mach/auto/XS/Typemap/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/mach/auto/XS/APItest/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/mach/auto/XS/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/mach/auto/Scalar/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/Text/TabsWrap/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/Text/Balanced/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/Test/Simple/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/Term/ANSIColor/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/Switch/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/NEXT/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/Net/Ping/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/Locale/Codes/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/IO/Socket/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/IO/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/Getopt/Long/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/Filter/Simple/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/Encode/KR/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/Encode/JP/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/Encode/CN/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/Class/ISA/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/CGI/eg/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/Attribute/Handlers/): No such file or directory
pkg: lstat(/usr/local/lib/perl5/5.8.9/auto/): No such file or directory
Installing perl-5.8.9_3...
Converting dmidecode-2.10...
Installing dmidecode-2.10...
Converting zfs-stats-1.0...
Installing zfs-stats-1.0...
Converting fusefs-libs-2.7.4...
Installing fusefs-libs-2.7.4...
Converting ruby18-bdb-0.6.5_1...
Installing ruby18-bdb-0.6.5_1...
Converting autoconf-wrapper-20071109...
Installing autoconf-wrapper-20071109...
Converting ruby18-deplate-0.8.5...
Installing ruby18-deplate-0.8.5...
Converting autoconf-2.68...
Installing autoconf-2.68...
Converting m4-1.4.15,1...
Installing m4-1.4.15,1...
Converting ruby-1.8.7.248_5,1...
Installing ruby-1.8.7.248_5,1...
Converting p5-Locale-gettext-1.05_3...
Installing p5-Locale-gettext-1.05_3...
Converting gmake-3.81_4...
Installing gmake-3.81_4...
Converting rkhunter-1.3.6...
pkg: duplicate directory listing: /usr/local/share/doc/rkhunter-1.3.6, ignoring
Installing rkhunter-1.3.6...
Converting cpuid-3.3_6...
Installing cpuid-3.3_6...
Converting p5-Digest-SHA1-2.13...
Installing p5-Digest-SHA1-2.13...
Converting libiconv-1.13.1_1...
Installing libiconv-1.13.1_1...
Converting fusefs-sshfs-2.2...
Installing fusefs-sshfs-2.2...
Converting python26-2.6.6...
Installing python26-2.6.6...
Converting smartmontools-5.40...
Installing smartmontools-5.40...
Converting lsof-4.84A,5...
Installing lsof-4.84A,5...
Analysing shared libraries, this will take a while...
Checking all packages: 100%

done. Nice.

2016-02-27: ports - get an updated ports tree (the current one is from 2010) via portsnap fetch; portsnap update.

root@kg-f2# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 7 mirrors found.
Fetching public key from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Sat Feb 27 01:06:48 CET 2016:
0fe29410b606f3bc6c7c2e412f7f881c910768a6738fb3100% of   70 MB 3499 kBps 00m00s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Sat Feb 27 01:06:48 CET 2016 to Sat Feb 27 17:28:14 CET 2016.
Fetching 4 metadata patches... done.
Applying metadata patches... done.
Fetching 0 metadata files... done.
Fetching 34 patches.....10....20....30.. done.
Applying patches... done.
Fetching 0 new ports or files... done.

update

root@kg-f2# portsnap update
/usr/ports was not created by portsnap.
You must run 'portsnap extract' before running 'portsnap update'.

ok, do it.

root@kg-f2# portsnap extract
[...]
/usr/ports/x11/yelp/
/usr/ports/x11/zenity/
Building new INDEX files... done.

ok. Unfortunately, the old 'make' breaks the ports tree tools:

root@kg-f2# pwd
/usr/ports/devel/subversion
root@kg-f2# make
Unknown modifier 't'

"/usr/ports/Mk/bsd.port.mk", line 1699: Malformed conditional (defined(USE_RC_SUBR) && ${USE_RC_SUBR:tu} != "YES")
Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

"/usr/ports/Mk/bsd.sites.mk", line 1038: Malformed conditional (!empty(_PERL_CPAN_ID) && ${_PERL_CPAN_FLAG:tl} == "cpan")
Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

"/usr/ports/Mk/bsd.port.mk", line 2907: warning: Missing closing parenthesis for defined()
Unknown modifier 't'

"/usr/ports/Mk/bsd.port.mk", line 2907: Malformed conditional (((!defined(OPTIONS_DEFINE) && !defined(OPTIONS_SINGLE) && !defined(OPTIONS_MULTI))  && !defined(OPTIONS_GROUP) && !defined(OPTIONS_RADIO)  || defined(CONFIG_DONE_${PKGBASE:tu}) ||  defined(PACKAGE_BUILDING) || defined(BATCH)))
"/usr/ports/Mk/bsd.port.mk", line 2909: if-less endif
Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier '-'

"/usr/ports/Mk/bsd.port.mk", line 4317: Need an operator
Unknown modifier '-'

"/usr/ports/Mk/bsd.port.mk", line 4317: Need an operator
Unknown modifier '-'

"/usr/ports/Mk/bsd.port.mk", line 4317: Need an operator
Unknown modifier '-'

"/usr/ports/Mk/bsd.port.mk", line 4317: Need an operator
Unknown modifier '-'

"/usr/ports/Mk/bsd.port.mk", line 4317: Need an operator
Unknown modifier '-'

"/usr/ports/Mk/bsd.port.mk", line 4317: Need an operator
Unknown modifier '-'

"/usr/ports/Mk/bsd.port.mk", line 4317: Need an operator
Unknown modifier '-'

"/usr/ports/Mk/bsd.port.mk", line 4317: Need an operator
Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

Unknown modifier 't'

2 open conditionals:
      at line 4791 (evaluated to true)
     at line 4789 (evaluated to true)
make: fatal errors encountered -- cannot continue

Hmm, can I snag a make from another machine?

tingo@kg-f2$ cd dl
tingo@kg-f2$ scp tingo@web:/usr/bin/make .
The authenticity of host 'kg-web.kg4.no (10.1.10.3)' can't be established.
RSA key fingerprint is b0:3b:2e:62:0b:1b:77:7e:49:bf:1a:64:aa:cb:4f:65.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'kg-web.kg4.no' (RSA) to the list of known hosts.
Password:
make                                          100%  361KB 360.7KB/s   00:00   

will it work?

tingo@kg-f2$ make
make: no target to make.

it might.

root@kg-f2# mv /usr/bin/make /usr/bin/oldmake
root@kg-f2# cp -v /home/tingo/dl/make /usr/bin/make
/home/tingo/dl/make -> /usr/bin/make

and now retry the ports thing.

root@kg-f2# make
===> Building/installing dialog4ports as it is required for the config dialog
"/usr/ports/Mk/Uses/python.mk", line 398: Could not find /usr/ports/lang/python26/Makefile.version
Usage: /usr/local/bin/python2.6-config [--prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--help]
"/usr/ports/Mk/Uses/python.mk", line 409: warning: "/usr/local/bin/python2.6-config --abiflags" returned non-zero status
make: fatal errors encountered -- cannot continue
===>  Cleaning for dialog4ports-0.1.5_2
===>  License BSD2CLAUSE accepted by the user
===>   dialog4ports-0.1.5_2 depends on file: /usr/local/sbin/pkg - not found
You are about to convert your system to pkg while you have ports/packages
installed with the old pkg_install tools.

To switch to pkg:
    1) Install ports-mgmt/pkg
       cd ports-mgmt/pkg && make UPGRADEPKG=1 install clean
    2) Convert your package database by running pkg2ng

*** Error code 1

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

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

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

Stop in /usr/ports/ports-mgmt/dialog4ports.
===> Options unchanged

You can have the repository created for you by defining
WITH_REPOSITORY_CREATION.

Make sure that:
* all your svn users are members of a common group
* this group is the group id of the db/ and locks/
  subdirectories of your repository
* the above subdirectories are writable by this group

Many useful scripts will be installed into /usr/local/share/subversion
===>  License APACHE20 accepted by the user
===>   subversion-1.9.3_1 depends on file: /usr/local/sbin/pkg - not found
You are about to convert your system to pkg while you have ports/packages
installed with the old pkg_install tools.

To switch to pkg:
    1) Install ports-mgmt/pkg
       cd ports-mgmt/pkg && make UPGRADEPKG=1 install clean
    2) Convert your package database by running pkg2ng

*** Error code 1

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

Stop in /usr/ports/devel/subversion.
*** Error code 1

Stop in /usr/ports/devel/subversion.

Ok, looks better.

2016-02-27: pool storage - resilver completed:

root@kg-f2# date;zpool status storage
Sat Feb 27 17:32:43 CET 2016
  pool: storage
 state: ONLINE
 scrub: resilver completed after 2h46m with 0 errors on Sat Feb 27 16:43:01 2016
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1    ONLINE       0     0     0
        ad8     ONLINE       0     0     0
        ad10    ONLINE       0     0     0
        ad12    ONLINE       0     0     0
        ad14    ONLINE       0     0     0  868G resilvered
        ada0    ONLINE       0     0     0

errors: No known data errors

all ok.

2016-02-27: ad14 - saga continues let's see if a trick works

root@kg-f2# dd if=/dev/zero of=/dev/ad14 bs=1M count=1
1+0 records in
1+0 records out
1048576 bytes transferred in 0.006012 secs (174414916 bytes/sec)

then

root@kg-f2# zpool online storage ad14
warning: device 'ad14' onlined, but remains in faulted state
use 'zpool replace' to replace devices that are no longer present

oh, crap.

and in /var/log/messages I see:

Feb 27 13:39:47 kg-f2 root: ZFS: vdev failure, zpool=storage type=vdev.bad_label

I'm guessing it won't replace it either?

root@kg-f2# zpool replace storage ad14

that's... interesting. status

root@kg-f2# zpool status storage
  pool: storage
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
    continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
 scrub: resilver in progress for 0h0m, 0.42% done, 3h3m to go
config:

    NAME            STATE     READ WRITE CKSUM
    storage         DEGRADED     0     0     0
      raidz1        DEGRADED     0     0     0
        ad8         ONLINE       0     0     0
        ad10        ONLINE       0     0     0
        ad12        ONLINE       0     0     0
        replacing   DEGRADED     0     0     0
          ad14/old  UNAVAIL      0     0     0  cannot open
          ad14      ONLINE       0     0     0  3.69G resilvered
        ada0        ONLINE       0     0     0

errors: No known data errors

ok, let the resilver finish and then check.

2016-02-27: ad14 - smartctl says:

root@kg-f2# smartctl -H /dev/ad14
smartctl 5.40 2010-10-16 r3189 [FreeBSD 8.2-STABLE amd64] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

root@kg-f2# smartctl -i /dev/ad14
smartctl 5.40 2010-10-16 r3189 [FreeBSD 8.2-STABLE amd64] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     SAMSUNG SpinPoint F3 series
Device Model:     SAMSUNG HD103SJ
Serial Number:    S246J1KSB01866
Firmware Version: 1AJ100E4
User Capacity:    1,000,204,886,016 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  ATA-8-ACS revision 6
Local Time is:    Sat Feb 27 13:20:37 2016 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

ok.

2016-02-27: zpool storage - it looks like ad14 got sick:

root@kg-f2# zpool status storage
  pool: storage
 state: ONLINE
status: One or more devices could not be used because the label is missing or
 invalid.  Sufficient replicas exist for the pool to continue
 functioning in a degraded state.
action: Replace the device using 'zpool replace'.
   see: http://www.sun.com/msg/ZFS-8000-4J
 scrub: none requested
config:

 NAME        STATE     READ WRITE CKSUM
 storage     ONLINE       0     0     0
  raidz1    ONLINE       0     0     0
    ad8     ONLINE       0     0     0
    ad10    ONLINE       0     0     0
    ad12    ONLINE       0     0     0
    ad14    UNAVAIL      0     0     0  corrupted data
    ada0    ONLINE       0     0     0

errors: No known data errors

Hmm, what happens if I just try to replace it?

root@kg-f2# zpool replace storage ad14 ad14
invalid vdev specification
use '-f' to override the following errors:
/dev/ad14 is part of active pool 'storage'

ok, how about

root@kg-f2# zpool replace storage ad14 
invalid vdev specification
use '-f' to override the following errors:
/dev/ad14 is part of active pool 'storage'

ok, try it with -f

root@kg-f2# zpool replace -f storage ad14
invalid vdev specification
the following errors must be manually repaired:
/dev/ad14 is part of active pool 'storage'
root@kg-f2# zpool replace -f storage ad14 ad14
invalid vdev specification
the following errors must be manually repaired:
/dev/ad14 is part of active pool 'storage'

it didn't like that one either.

try to offline it

root@kg-f2# zpool offline storage ad14

now

root@kg-f2# zpool status storage
  pool: storage
 state: DEGRADED
status: One or more devices has been taken offline by the administrator.
 Sufficient replicas exist for the pool to continue functioning in a
 degraded state.
action: Online the device using 'zpool online' or replace the device with
 'zpool replace'.
 scrub: none requested
config:

 NAME        STATE     READ WRITE CKSUM
 storage     DEGRADED     0     0     0
  raidz1    DEGRADED     0     0     0
    ad8     ONLINE       0     0     0
    ad10    ONLINE       0     0     0
    ad12    ONLINE       0     0     0
    ad14    OFFLINE      0     0     0
    ada0    ONLINE       0     0     0

errors: No known data errors

can I online it?

root@kg-f2# zpool online storage ad14
warning: device 'ad14' onlined, but remains in faulted state
use 'zpool replace' to replace devices that are no longer present

status now

root@kg-f2# zpool status storage
  pool: storage
 state: DEGRADED
status: One or more devices could not be used because the label is missing or
 invalid.  Sufficient replicas exist for the pool to continue
 functioning in a degraded state.
action: Replace the device using 'zpool replace'.
   see: http://www.sun.com/msg/ZFS-8000-4J
 scrub: none requested
config:

 NAME        STATE     READ WRITE CKSUM
 storage     DEGRADED     0     0     0
  raidz1    DEGRADED     0     0     0
    ad8     ONLINE       0     0     0
    ad10    ONLINE       0     0     0
    ad12    ONLINE       0     0     0
    ad14    UNAVAIL      0     0     0  corrupted data
    ada0    ONLINE       0     0     0

errors: No known data errors

try replace again

root@kg-f2# zpool replace storage ad14
invalid vdev specification
use '-f' to override the following errors:
/dev/ad14 is part of active pool 'storage'
root@kg-f2# zpool replace -f storage ad14
invalid vdev specification
the following errors must be manually repaired:
/dev/ad14 is part of active pool 'storage'

nope. Perhaps I can remove it?

root@kg-f2# zpool offline storage ad14
root@kg-f2# zpool remove storage ad14
cannot remove ad14: only inactive hot spares or cache devices can be removed

no, can't do that Dave.

2016-02-27: after a reboot, the memory is now 8 GB. From dmesg:

root@kg-f2# dmesg | grep memory
real memory  = 8589934592 (8192 MB)
avail memory = 8111308800 (7735 MB)

ok.

2016-02-27: before taking down the machine to upgrade memory:

root@kg-f2# date;temp;swapinfo -h;echo " ";tvlm;echo " ";tvls;echo " ";df -h;echo " ";uptime;echo " ";ps ax | grep -v grep | grep ddc;ps ax | grep -v grep | grep smartd;ps ax | grep -v grep | grep natd
Sat Feb 27 12:02:41 CET 2016
dev.cpu.0.temperature: 38.5C
dev.cpu.1.temperature: 38.5C
Device          1K-blocks     Used    Avail Capacity
/dev/gpt/swap0    4194304       0B     4.0G     0%
/dev/gpt/swap1    4194304       0B     4.0G     0%
Total             8388608       0B     8.0G     0%

Feb 25 00:15:35 kg-f2 ntpd[1373]: kernel time sync status change 6001
Feb 25 02:15:11 kg-f2 ntpd[1373]: kernel time sync status change 2001
Feb 25 02:49:23 kg-f2 ntpd[1373]: kernel time sync status change 6001
Feb 25 03:06:29 kg-f2 ntpd[1373]: kernel time sync status change 2001
Feb 25 03:57:42 kg-f2 ntpd[1373]: kernel time sync status change 6001
Feb 25 04:14:48 kg-f2 ntpd[1373]: kernel time sync status change 2001
Feb 25 05:23:07 kg-f2 ntpd[1373]: kernel time sync status change 6001
Feb 25 05:48:46 kg-f2 ntpd[1373]: kernel time sync status change 2001
Feb 27 04:10:21 kg-f2 ntpd[1373]: kernel time sync status change 6001
Feb 27 04:27:26 kg-f2 ntpd[1373]: kernel time sync status change 2001

Dec 10 10:09:29 kg-f2 newsyslog[570]: logfile first created

Filesystem                  Size    Used   Avail Capacity  Mounted on
zroot                        55G    809M     54G     1%    /
devfs                       1.0k    1.0k      0B   100%    /dev
storage                     3.6T    3.4T    180G    95%    /storage
zroot/tmp                    54G    295k     54G     0%    /tmp
zroot/usr                    57G    2.2G     54G     4%    /usr
zroot/usr/home               54G     56k     54G     0%    /usr/home
zroot/usr/ports              55G    244M     54G     0%    /usr/ports
zroot/usr/ports/packages     54G     20k     54G     0%    /usr/ports/packages
zroot/usr/src                55G    542M     54G     1%    /usr/src
zroot/var                    54G    1.9M     54G     0%    /var
zroot/var/crash              54G     21k     54G     0%    /var/crash
zroot/var/db                 54G     14M     54G     0%    /var/db
zroot/var/db/pkg             54G    2.4M     54G     0%    /var/db/pkg
zroot/var/empty              54G     20k     54G     0%    /var/empty
zroot/var/log                54G    685k     54G     0%    /var/log
zroot/var/mail               54G     22k     54G     0%    /var/mail
zroot/var/run                54G     56k     54G     0%    /var/run
zroot/var/tmp                54G    920k     54G     0%    /var/tmp

12:02PM  up 361 days, 14:27, 2 users, load averages: 0.00, 0.00, 0.00

 1303  ??  I      0:16.51 /usr/local/sbin/smartd -p /var/run/smartd.pid -c /usr/local/etc/smartd.conf

zpool status

root@kg-f2# zpool status
  pool: storage
 state: ONLINE
 scrub: scrub completed after 3h22m with 0 errors on Thu Jan 21 20:07:15 2016
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1    ONLINE       0     0     0
        ad8     ONLINE       0     0     0
        ad10    ONLINE       0     0     0
        ad12    ONLINE       0     0     0
        ad14    ONLINE       0     0     0
        ada0    ONLINE       0     0     0

errors: No known data errors

  pool: zroot
 state: ONLINE
 scrub: scrub completed after 0h3m with 0 errors on Sat Jan  9 15:07:25 2016
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror       ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors

zpool list

root@kg-f2# zpool list
NAME      SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
storage  4.53T  4.24T   298G    93%  ONLINE  -
zroot    59.5G  3.77G  55.7G     6%  ONLINE  -

check upgrade status

zfs

root@kg-f2# zfs upgrade
This system is currently running ZFS filesystem version 4.

All filesystems are formatted with the current version.

zpool

root@kg-f2# zpool upgrade
This system is currently running ZFS pool version 15.

All pools are formatted using this version.

ok.

2016-01-21: latest scrub result, storage:

root@kg-f2# zpool status storage
  pool: storage
 state: ONLINE
 scrub: scrub completed after 3h22m with 0 errors on Thu Jan 21 20:07:15 2016
config:

    NAME        STATE     READ WRITE CKSUM
    storage     ONLINE       0     0     0
      raidz1    ONLINE       0     0     0
        ad8     ONLINE       0     0     0
        ad10    ONLINE       0     0     0
        ad12    ONLINE       0     0     0
        ad14    ONLINE       0     0     0
        ada0    ONLINE       0     0     0

errors: No known data errors

nothing more.

2016-01-09: latest scrub result, zroot:

root@kg-f2# zpool status zroot
  pool: zroot
 state: ONLINE
 scrub: scrub completed after 0h3m with 0 errors on Sat Jan  9 15:07:25 2016
config:

    NAME           STATE     READ WRITE CKSUM
    zroot          ONLINE       0     0     0
      mirror       ONLINE       0     0     0
        gpt/disk0  ONLINE       0     0     0
        gpt/disk1  ONLINE       0     0     0

errors: No known data errors

that's all.