=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
=> Checksum SHA1 OK for ZoneMinder-1.28.1.tar.gz
=> Checksum RMD160 OK for ZoneMinder-1.28.1.tar.gz
=> Checksum SHA512 OK for ZoneMinder-1.28.1.tar.gz
===> Installing dependencies for zoneminder-1.28.1nb12
==========================================================================
The supported build options for zoneminder are:

	apache

The currently selected options are:

	apache

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

	PKG_OPTIONS.zoneminder (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
zoneminder-1.28.1nb12.  Their current value is shown below:

        * APACHE_GROUP = www
        * APACHE_USER = www
        * JPEG_DEFAULT = jpeg
        * PKG_APACHE_DEFAULT = apache24
        * SSLBASE = /usr
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private
        * VARBASE = /var
        * ZM_HTTPD_CGIBIN = libexec/zoneminder/cgi-bin

Based on these variables, the following variables have been set:

        * APACHE_PKG_PREFIX = ap24
        * JPEGBASE (defined, but empty)
        * JPEG_TYPE = jpeg
        * PKG_APACHE = apache24

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Tool dependency automake>=1.9: found automake-1.15nb4
=> Tool dependency autoconf>=2.58: found autoconf-2.69nb7
=> Tool dependency gmake>=3.81: found gmake-4.1nb3
=> Tool dependency gtar-base>=1.13.25: found gtar-base-1.29
=> Tool dependency perl>=5.24.0: found perl-5.24.1
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.0.1
=> Tool dependency checkperms>=1.1: found checkperms-1.11nb1
=> Build dependency x11-links>=1.04: found x11-links-1.05
=> Build dependency apache>=2.4.7<2.5: found apache-2.4.25nb2
=> Build dependency apache>=2.4.18nb1: found apache-2.4.25nb2
=> Build dependency cwrappers>=20150314: found cwrappers-20170112
=> Full dependency netpbm-[0-9]*: found netpbm-10.77.02
=> Full dependency p5-Archive-Zip-[0-9]*: found p5-Archive-Zip-1.59
=> Full dependency p5-Date-Manip-[0-9]*: found p5-Date-Manip-6.58
=> Full dependency p5-Device-SerialPort-[0-9]*: found p5-Device-SerialPort-1.04nb8
=> Full dependency p5-DBD-mysql-[0-9]*: found p5-DBD-mysql-4.041
=> Full dependency p5-MIME-Lite-[0-9]*: found p5-MIME-Lite-3.030nb2
=> Full dependency p5-MIME-tools-[0-9]*: found p5-MIME-tools-5.508
=> Full dependency p5-PHP-Serialization-[0-9]*: found p5-PHP-Serialization-0.34nb6
=> Full dependency p5-libwww-[0-9]*: found p5-libwww-6.23
=> Full dependency ap24-php56-[0-9]*: found ap24-php56-5.6.30
=> Full dependency php56-mysql-[0-9]*: found php56-mysql-5.6.30
=> Full dependency php56-pdo_mysql-[0-9]*: found php56-pdo_mysql-5.6.30
=> Full dependency ffmpeg2>=2.8.10nb1: found ffmpeg2-2.8.11nb1
=> Full dependency perl<5.26.0: found perl-5.24.1
=> Full dependency perl>=5.24.0: found perl-5.24.1
=> Full dependency jpeg>=9: found jpeg-9b
=> Full dependency mysql-client>=5.5.10<5.6: found mysql-client-5.5.54
=> Full dependency mysql-client>=5.5.48nb1: found mysql-client-5.5.54
=> Full dependency pcre>=8.30nb1: found pcre-8.40nb1
===> Overriding tools for zoneminder-1.28.1nb12
===> Extracting for zoneminder-1.28.1nb12
/bin/cp /data/pkgsrc-current/security/zoneminder/files/zoneminder.conf /data/scratch/security/zoneminder/work/ZoneMinder-1.28.1/zoneminder.conf
===> Patching for zoneminder-1.28.1nb12
=> Applying pkgsrc patches for zoneminder-1.28.1nb12
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-Makefile_am
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-Makefile_am
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-Makefile_am,v 1.3 2015/04/05 08:51:08 dsainty Exp $
|
|Disable the hacks around ownership setup so Pkgsrc can take responsibility.
|Don't install zm.conf at all - let Pkgsrc install it into EGDIR.
|
|--- Makefile.am.orig	2011-05-20 09:39:37.000000000 +0000
|+++ Makefile.am
--------------------------
Patching file Makefile.am using Plan A...
Hunk #1 succeeded at 5.
Hunk #2 succeeded at 20.
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-configure_ac
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-configure_ac
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-configure_ac,v 1.4 2015/04/07 12:54:36 dsainty Exp $
|
|Recognise lower-case "netbsd" as BSD.
|
|Correct shell test = syntax.
|
|Allow Pkgsrc to manage dlopen() support.
|
|--- configure.ac.orig	2015-02-05 15:52:37.000000000 +1300
|+++ configure.ac	2015-04-01 23:24:28.305177975 +1300
--------------------------
Patching file configure.ac using Plan A...
Hunk #1 succeeded at 23.
Hunk #2 succeeded at 48.
Hunk #3 succeeded at 254.
Hunk #4 succeeded at 303.
Hunk #5 succeeded at 311.
Hunk #6 succeeded at 356.
Hunk #7 succeeded at 372.
Hunk #8 succeeded at 383.
Hunk #9 succeeded at 411.
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-scripts_ZoneMinder_lib_ZoneMinder_General_pm
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-scripts_ZoneMinder_lib_ZoneMinder_General_pm
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-scripts_ZoneMinder_lib_ZoneMinder_General_pm,v 1.2 2015/04/05 08:51:08 dsainty Exp $
|
|Perl doesn't really support "> /dev/null", so just capture into $output.
|
|% ktruss -i perl -e 'qx(does-not-exist >/dev/null 2>&1);'|egrep 'dup2.*2'
|does-not-exist: not found
|% ktruss -i perl -e 'qx(does-not-exist 2>&1);'|egrep 'dup2.*2'           
| 16954      1 perl     dup2(0x1, 0x2)              = 2
|
|The problem is that, whilst Perl supports 2>&1 internally (and does not use
|the shell at all) if there is no other redirection, it does not support file
|redirection - it defers that (and therefore necessarily must also defer the
|stderr redirection) to the shell.  If the system's shell happens to report
|"Not found" errors before redirection is processed (E.g. NetBSD shell) then
|the stderr redirection is happening too late to be captured.
|
|That leads to unintended errors reported on stderr - primarily if sudo is not
|installed on the system, or not in the $PATH.
|
|Use the -m parameter to su, as ZM_WEB_USER shouldn't require a login shell.
|
|--- scripts/ZoneMinder/lib/ZoneMinder/General.pm.orig	2015-04-01 19:40:39.708621257 +1300
|+++ scripts/ZoneMinder/lib/ZoneMinder/General.pm	2015-04-01 19:50:47.372646449 +1300
--------------------------
Patching file scripts/ZoneMinder/lib/ZoneMinder/General.pm using Plan A...
Hunk #1 succeeded at 107.
Hunk #2 succeeded at 124.
Hunk #3 succeeded at 137.
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-scripts_zm_in
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-scripts_zm_in
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-scripts_zm_in,v 1.3 2015/04/05 08:51:08 dsainty Exp $
|
|/etc/rc.d/init.d/functions doesn't commonly exist.
|
|The LOCKFILE feature appears unused, and requires a /var/lock/subsys directory
|we don't have.
|
|--- scripts/zm.in.orig	2015-02-05 15:52:37.000000000 +1300
|+++ scripts/zm.in	2015-04-01 19:13:32.876553811 +1300
--------------------------
Patching file scripts/zm.in using Plan A...
Hunk #1 succeeded at 7.
Hunk #2 succeeded at 54.
Hunk #3 succeeded at 66.
Hunk #4 succeeded at 107.
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-src_Makefile_am
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-src_Makefile_am
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_Makefile_am,v 1.3 2015/04/05 08:51:08 dsainty Exp $
|
|Don't pointlessly chown zms.
|
|--- src/Makefile.am.orig	2015-02-05 15:52:37.000000000 +1300
|+++ src/Makefile.am	2015-04-01 19:33:05.628602430 +1300
--------------------------
Patching file src/Makefile.am using Plan A...
Hunk #1 succeeded at 128.
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm__monitor.cpp
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm__monitor.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_zm__monitor.cpp,v 1.1 2017/02/15 00:54:25 joerg Exp $
|
|--- src/zm_monitor.cpp.orig	2017-02-15 00:50:20.875646245 +0000
|+++ src/zm_monitor.cpp
--------------------------
Patching file src/zm_monitor.cpp using Plan A...
Hunk #1 succeeded at 149.
Hunk #2 succeeded at 534.
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm__thread.h
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm__thread.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_zm__thread.h,v 1.4 2015/04/10 02:58:49 dsainty Exp $
|
|Fix build with Clang.
|
|pthread_t is opaque, and under NetBSD is a pointer.  It's being abused here,
|but the value is only used for logging, and casting pthread_self() is more
|portable than syscall(SYS_gettid).
|
|--- src/zm_thread.h.orig	2015-02-05 15:52:37.000000000 +1300
|+++ src/zm_thread.h	2015-04-09 18:48:51.419626259 +1200
--------------------------
Patching file src/zm_thread.h using Plan A...
Hunk #1 succeeded at 22.
Hunk #2 succeeded at 203.
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm__timer.h
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm__timer.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_zm__timer.h,v 1.3 2015/04/10 02:58:49 dsainty Exp $
|
|Fix build with Clang.
|
|pthread_t is opaque, and under NetBSD is a pointer.  It's being abused here,
|but the value is only used for logging, and casting pthread_self() is more
|portable than syscall(SYS_gettid).
|
|--- src/zm_timer.h.orig	2008-07-25 09:33:24.000000000 +0000
|+++ src/zm_timer.h
--------------------------
Patching file src/zm_timer.h using Plan A...
Hunk #1 succeeded at 33 (offset 3 lines).
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm__utils.cpp
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm__utils.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_zm__utils.cpp,v 1.1 2013/03/24 16:47:47 joerg Exp $
|
|--- src/zm_utils.cpp.orig	2011-06-21 09:19:11.000000000 +0000
|+++ src/zm_utils.cpp
--------------------------
Patching file src/zm_utils.cpp using Plan A...
Hunk #1 succeeded at 72 (offset 34 lines).
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm__utils.h
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm__utils.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_zm__utils.h,v 1.2 2015/04/05 08:51:08 dsainty Exp $
|
|--- src/zm_utils.h.orig	2015-04-01 17:20:39.840273017 +1300
|+++ src/zm_utils.h	2015-04-01 17:28:57.376293647 +1300
--------------------------
Patching file src/zm_utils.h using Plan A...
Hunk #1 succeeded at 33.
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm_comms_cpp
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm_comms_cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_zm_comms_cpp,v 1.2 2013/03/24 16:47:47 joerg Exp $
|
|Don't attempt to include headers that don't exist.
|
|--- src/zm_comms.cpp.orig	2011-06-21 09:19:10.000000000 +0000
|+++ src/zm_comms.cpp
--------------------------
Patching file src/zm_comms.cpp using Plan A...
Hunk #1 succeeded at 25.
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm_comms_h
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm_comms_h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_zm_comms_h,v 1.3 2013/04/29 21:31:13 joerg Exp $
|
|extern "C" system headers.
|
|Include missing system headers for NetBSD.
|
|--- src/zm_comms.h.orig	2009-10-14 13:08:49.000000000 +0000
|+++ src/zm_comms.h
--------------------------
Patching file src/zm_comms.h using Plan A...
Hunk #1 succeeded at 22.
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm_ffmpeg_camera_cpp
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm_ffmpeg_camera_cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_zm_ffmpeg_camera_cpp,v 1.1 2015/04/10 02:58:49 dsainty Exp $
|
|Replace the non-portable pthread_tryjoin_np() with pthread_join(), assessed
|as a reasonable patch by the original author.
|
|https://github.com/ZoneMinder/ZoneMinder/commit/7534557533a7347f4901a139c2b698e76aaf164d
|
|--- src/zm_ffmpeg_camera.cpp.orig	2015-04-09 12:31:49.987117639 +1200
|+++ src/zm_ffmpeg_camera.cpp	2015-04-09 14:40:54.059009480 +1200
--------------------------
Patching file src/zm_ffmpeg_camera.cpp using Plan A...
Hunk #1 succeeded at 120.
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm_logger_cpp
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm_logger_cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_zm_logger_cpp,v 1.3 2013/04/29 21:31:13 joerg Exp $
|
|If the system has syscall() but not SYS_gettid [E.g. NetBSD], don't attempt
|to use SYS_gettid.
|
|--- src/zm_logger.cpp.orig	2011-06-28 11:07:35.000000000 +0000
|+++ src/zm_logger.cpp
--------------------------
Patching file src/zm_logger.cpp using Plan A...
Hunk #1 succeeded at 31 (offset -2 lines).
Hunk #2 succeeded at 530 (offset 14 lines).
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm_remote_camera_h
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm_remote_camera_h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_zm_remote_camera_h,v 1.4 2015/04/05 08:51:08 dsainty Exp $
|
|Declare sockaddr_in.
|
|--- src/zm_remote_camera.h.orig	2015-02-05 15:52:37.000000000 +1300
|+++ src/zm_remote_camera.h	2015-04-01 17:56:10.736361360 +1300
--------------------------
Patching file src/zm_remote_camera.h using Plan A...
Hunk #1 succeeded at 23.
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm_signal_cpp
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm_signal_cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_zm_signal_cpp,v 1.1 2015/04/10 02:58:49 dsainty Exp $
|
|Don't assume machine-dependent IP register details are available for any
|platform except Linux.  Only Linux is sure to have this style of mcontext_t.
|
|Resolves build on systems that have ucontext_t but an mcontext_t that
|doesn't look like Linux.
|
|--- src/zm_signal.cpp.orig	2015-04-09 19:15:46.423693213 +1200
|+++ src/zm_signal.cpp	2015-04-09 19:18:25.475699808 +1200
--------------------------
Patching file src/zm_signal.cpp using Plan A...
Hunk #1 succeeded at 66.
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm_thread_cpp
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-src_zm_thread_cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_zm_thread_cpp,v 1.2 2013/03/24 16:47:47 joerg Exp $
|
|pthread_mutex_timedlock() is not available on NetBSD 5.0, and not required
|in ZoneMinder.
|
|--- src/zm_thread.cpp.orig	2011-06-21 09:19:11.000000000 +0000
|+++ src/zm_thread.cpp
--------------------------
Patching file src/zm_thread.cpp using Plan A...
Hunk #1 succeeded at 72.
Hunk #2 succeeded at 86.
Hunk #3 succeeded at 339 (offset 1 line).
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-src_zmc_cpp
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-src_zmc_cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_zmc_cpp,v 1.2 2013/03/24 16:47:47 joerg Exp $
|
|Use a more appropriate initialisation for a long, and use the definition out
|of <limits.h>, for portability.
|
|--- src/zmc.cpp.orig	2011-06-21 09:19:11.000000000 +0000
|+++ src/zmc.cpp
--------------------------
Patching file src/zmc.cpp using Plan A...
Hunk #1 succeeded at 19.
Hunk #2 succeeded at 228 (offset 4 lines).
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-src_zmf.cpp
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-src_zmf.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_zmf.cpp,v 1.1 2017/02/15 00:54:25 joerg Exp $
|
|--- src/zmf.cpp.orig	2017-02-15 00:51:13.260940737 +0000
|+++ src/zmf.cpp
--------------------------
Patching file src/zmf.cpp using Plan A...
Hunk #1 succeeded at 293.
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-web_Makefile.am
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-web_Makefile.am
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-web_Makefile.am,v 1.1 2013/03/24 16:47:47 joerg Exp $
|
|--- web/Makefile.am.orig	2013-03-24 15:56:43.000000000 +0000
|+++ web/Makefile.am
--------------------------
Patching file web/Makefile.am using Plan A...
Hunk #1 succeeded at 21.
done
=> Verifying /data/pkgsrc-current/security/zoneminder/patches/patch-web_ajax_stream_php
=> Applying pkgsrc patch /data/pkgsrc-current/security/zoneminder/patches/patch-web_ajax_stream_php
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-web_ajax_stream_php,v 1.2 2013/03/24 16:47:47 joerg Exp $
|
|http://www.zoneminder.com/forums/viewtopic.php?t=13322
|
|--- web/ajax/stream.php.orig	2011-06-27 11:14:00.000000000 +0000
|+++ web/ajax/stream.php
--------------------------
Patching file web/ajax/stream.php using Plan A...
Hunk #1 succeeded at 60.
done
===> Creating toolchain wrappers for zoneminder-1.28.1nb12
/bin/mkdir -p /data/scratch/security/zoneminder/work/.buildlink/bin && /bin/ln -fs ../sbin/apxs /data/scratch/security/zoneminder/work/.buildlink/bin/apxs
/bin/mkdir -p /data/scratch/security/zoneminder/work/.buildlink/bin && /bin/ln -fs apr-1-config /data/scratch/security/zoneminder/work/.buildlink/bin/apr-config
/bin/mkdir -p /data/scratch/security/zoneminder/work/.buildlink/bin && /bin/ln -fs apu-1-config /data/scratch/security/zoneminder/work/.buildlink/bin/apu-config
===> Configuring for zoneminder-1.28.1nb12
=> Adjusting systemd pkexec perl.
=> Adjusting default paths in configuration.
=> Adjusting paths in scripts.
INFO: [subst.mk:script-path] Nothing changed in ./scripts/zmsystemctl.pl.in.
=> Fixing ZoneMinder configuration file for Apache.
set -e; cd /data/scratch/security/zoneminder/work/ZoneMinder-1.28.1;  aclocal; autoheader; automake -a --foreign -i; autoconf
configure.ac:269: installing './compile'
configure.ac:14: installing './config.guess'
configure.ac:14: installing './config.sub'
configure.ac:3: installing './install-sh'
configure.ac:3: installing './missing'
=> Generating pkg-config file for builtin expat package.
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Replacing Perl interpreter in scripts/zmaudit.pl.in scripts/zmcamtool.pl.in scripts/zmcontrol.pl.in scripts/zmdc.pl.in scripts/zmfilter.pl.in scripts/zmpkg.pl.in scripts/zmtrack.pl.in scripts/zmtrigger.pl.in scripts/zmupdate.pl.in scripts/zmvideo.pl.in scripts/zmwatch.pl.in scripts/zmx10.pl.in.
=> Checking for portability problems in extracted files
configure: WARNING: unrecognized options: --enable-crashtrace, --with-apxs2
checking for a BSD-compatible install... /usr/bin/install -c -o pbulkXXX -g users
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64--netbsd
checking host system type... x86_64--netbsd
configure: WARNING: You can call configure with the --with-libarch option.
    This tells configure where to find architecture specific libraries.
    The default of 'lib' is usually ok but 64 bit machines may require lib64.
    e.g. --with-libarch=lib or --with-libarch=lib64
configure: WARNING: You can call configure with the --with-mariadb option.
    This tells configure where to find the mariaDB C library and headers if configure cannot
    locate them automatically.
    e.g. --with-mariadb=/usr/local or --with-mariadb=/usr
configure: WARNING: You can call configure with the --with-polkit option.
This tells configure where to place the polkit policy files.
checking pkg-config is at least version 0.9.0... yes
checking for POLKIT... yes
configure: WARNING: You can call configure with the --with-extralibs option.
    Ordinarily you will need to use this option only when your copy of ffmpeg has been built
    with support for additional formats and you would use this option to detail which additional
    libraries ffmpeg was built with so that it is able to link successfully with ZoneMinder.
    You will need to wrap this option in quotes if it contains any spaces.
    e.g. --with-extralibs="-lmp3lame"
configure: WARNING: You can call configure with the --with-webhost option.
    This tells configure what the host name is for name based virtual hosting. This is only used to populate the sample web/zmHttpd.conf file.
    e.g. --with-webhost=zm.localdomain
configure: WARNING: You can call configure with the --enable-debug=<yes|no> or --disable-debug option.
    This tells configure whether to compile ZoneMinder with debug included. Although debug is included
    by default it is not output unless explicitly switched on elsewhere. These checks may induce a
    small penalty on performance and if you are after squeezing the maximum possible performance out
    of ZoneMinder you may use this switch to prevent debug from being compiled in.
    e.g. --enable-debug=yes or --disable-debug
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 c++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of c++... none
checking for x86_64--netbsd-gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking whether ln -s works... yes
checking for x86_64--netbsd-ranlib... no
checking for ranlib... ranlib
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C++ preprocessor... c++ -E
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdbool.h that conforms to C99... no
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for inline... inline
checking for mode_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for siginfo_t... yes
checking for ucontext_t... yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for working strtod... yes
checking for vprintf... yes
checking for _doprnt... no
checking for gethostbyname... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for munmap... yes
checking for posix_memalign... yes
checking for putenv... yes
checking for select... yes
checking for sendfile... no
checking for socket... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoull... yes
checking for syscall... yes
checking for sleep... yes
checking for usleep... yes
checking for ioctl... yes
checking for ioctlsocket... no
checking for sigaction... yes
checking for ffmpeg... yes
checking for ffmpeg... /usr/pkg/bin/ffmpeg2
checking for pnmscale... yes
checking for pnmscale... /usr/pkg/bin/pnmscale
checking for library containing mysql_init... -lmysqlclient
checking for jpeg_start_compress in -ljpeg... yes
checking for pthread_create in -lpthread... yes
checking openssl/md5.h usability... yes
checking openssl/md5.h presence... yes
checking for openssl/md5.h... yes
checking for MD5 in -lcrypto... yes
checking for pcre_compile in -lpcre... yes
checking for zlibVersion in -lz... yes
checking for x264_predict_16x16_init in -lx264... yes
checking for av_malloc in -lavutil... yes
checking for av_image_copy in -lavcore... no
checking for avcodec_version in -lavcodec... yes
checking for avformat_version in -lavformat... yes
checking for avdevice_register_all in -lavdevice... yes
checking for sws_scale in -lswscale... yes
checking for libvlc_new in -lvlc... no
configure: WARNING: libvlc.a may be required for streaming
checking for BZ2_bzCompress in -lbz2... yes
checking for compress in -lz... yes
checking for curl_global_init in -lcurl... no
checking for working alloca.h... no
checking for alloca... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for memory.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/param.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking values.h usability... no
checking values.h presence... no
checking for values.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for sys/socket.h... (cached) yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking sys/sendfile.h usability... no
checking sys/sendfile.h presence... no
checking for sys/sendfile.h... no
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking ucontext.h usability... yes
checking ucontext.h presence... yes
checking for ucontext.h... yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking linux/videodev.h usability... no
checking linux/videodev.h presence... no
checking for linux/videodev.h... no
checking linux/videodev2.h usability... no
checking linux/videodev2.h presence... no
checking for linux/videodev2.h... no
configure: WARNING: zm requires Video4Linux or Video4Linux2 to be installed for analog or USB camera support
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
checking how to run the C preprocessor... gcc -E
checking libavutil/avutil.h usability... yes
checking libavutil/avutil.h presence... yes
checking for libavutil/avutil.h... yes
checking libavcodec/avcodec.h usability... yes
checking libavcodec/avcodec.h presence... yes
checking for libavcodec/avcodec.h... yes
checking libavformat/avformat.h usability... yes
checking libavformat/avformat.h presence... yes
checking for libavformat/avformat.h... yes
checking libswscale/swscale.h usability... yes
checking libswscale/swscale.h presence... yes
checking for libswscale/swscale.h... yes
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking vlc/vlc.h usability... no
checking vlc/vlc.h presence... no
checking for vlc/vlc.h... no
checking curl/curl.h usability... no
checking curl/curl.h presence... no
checking for curl/curl.h... no
checking whether MD5 is declared... yes
checking whether backtrace is declared... yes
checking whether backtrace_symbols is declared... yes
checking for perl version greater than or equal to 5.6.0... ok
checking for perl module Sys::Syslog... ok
checking for perl module DBI... ok
checking for perl module DBD::mysql... ok
checking for perl module Getopt::Long... ok
checking for perl module Time::HiRes... ok
checking for perl module Date::Manip... ok
checking for perl module LWP::UserAgent... ok
checking for perl module ExtUtils::MakeMaker... ok
checking for perl module Module::Load... ok
checking for perl module Device::SerialPort... ok
checking for perl module Net::FTP... ok
checking for perl module Net::SFTP::Foreign... no
configure: WARNING: Net::SFTP::Foreign is required for automatic event uploading using sftp
checking for perl module Expect... no
configure: WARNING: Expect is required for automatic event uploading using sftp
checking for perl module Archive::Tar... ok
checking for perl module Archive::Zip... ok
checking for perl module Net::SMTP... ok
checking for perl module MIME::Lite... ok
checking for perl module MIME::Entity... ok
checking for perl module X10::ActiveHome... no
configure: WARNING: X10::ActiveHome is required for X.10 support
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating zm.conf
config.status: creating zmconfgen.pl
config.status: creating db/Makefile
config.status: creating db/zm_create.sql
config.status: creating misc/Makefile
config.status: creating misc/apache.conf
config.status: creating misc/logrotate.conf
config.status: creating misc/syslog.conf
config.status: creating misc/com.zoneminder.systemctl.policy
config.status: creating misc/com.zoneminder.systemctl.rules
config.status: creating scripts/Makefile
config.status: creating scripts/zm
config.status: creating scripts/zmaudit.pl
config.status: creating scripts/zmcontrol.pl
config.status: creating scripts/zmdc.pl
config.status: creating scripts/zmfilter.pl
config.status: creating scripts/zmpkg.pl
config.status: creating scripts/zmtrack.pl
config.status: creating scripts/zmcamtool.pl
config.status: creating scripts/zmsystemctl.pl
config.status: creating scripts/zmtrigger.pl
config.status: creating scripts/zmupdate.pl
config.status: creating scripts/zmvideo.pl
config.status: creating scripts/zmwatch.pl
config.status: creating scripts/zmx10.pl
config.status: creating scripts/zmdbbackup
config.status: creating scripts/zmdbrestore
config.status: creating scripts/zmeventdump
config.status: creating scripts/zmlogrotate.conf
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/Base.pm
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/Config.pm
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/Memory.pm
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm
config.status: creating src/Makefile
config.status: creating src/zm_config.h
config.status: creating web/Makefile
config.status: creating web/ajax/Makefile
config.status: creating web/css/Makefile
config.status: creating web/graphics/Makefile
config.status: creating web/includes/Makefile
config.status: creating web/includes/config.php
config.status: creating web/js/Makefile
config.status: creating web/lang/Makefile
config.status: creating web/skins/Makefile
config.status: creating web/skins/classic/Makefile
config.status: creating web/skins/classic/ajax/Makefile
config.status: creating web/skins/classic/css/Makefile
config.status: creating web/skins/classic/graphics/Makefile
config.status: creating web/skins/classic/includes/Makefile
config.status: creating web/skins/classic/js/Makefile
config.status: creating web/skins/classic/lang/Makefile
config.status: creating web/skins/classic/views/Makefile
config.status: creating web/skins/classic/views/css/Makefile
config.status: creating web/skins/classic/views/js/Makefile
config.status: creating web/skins/mobile/Makefile
config.status: creating web/skins/mobile/ajax/Makefile
config.status: creating web/skins/mobile/css/Makefile
config.status: creating web/skins/mobile/graphics/Makefile
config.status: creating web/skins/mobile/includes/Makefile
config.status: creating web/skins/mobile/lang/Makefile
config.status: creating web/skins/mobile/views/Makefile
config.status: creating web/skins/mobile/views/css/Makefile
config.status: creating web/tools/Makefile
config.status: creating web/tools/mootools/Makefile
config.status: creating web/views/Makefile
config.status: creating web/skins/xml/Makefile
config.status: creating web/skins/xml/views/Makefile
config.status: creating web/skins/xml/includes/Makefile
config.status: creating web/skins/flat/Makefile
config.status: creating web/skins/flat/ajax/Makefile
config.status: creating web/skins/flat/css/Makefile
config.status: creating web/skins/flat/graphics/Makefile
config.status: creating web/skins/flat/includes/Makefile
config.status: creating web/skins/flat/js/Makefile
config.status: creating web/skins/flat/lang/Makefile
config.status: creating web/skins/flat/views/Makefile
config.status: creating web/skins/flat/views/css/Makefile
config.status: creating web/skins/flat/views/js/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing src/zm_config_defines.h commands
Generating 'src/zm_config_defines.h'
Updating 'db/zm_create.sql'
config.status: executing scripts/ZoneMinder/Makefile commands
perl Makefile.PL PREFIX=/usr/pkg INSTALLDIRS=vendor
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for ZoneMinder
Writing MYMETA.yml and MYMETA.json
configure: WARNING: unrecognized options: --enable-crashtrace, --with-apxs2
Generating a Unix-style Makefile
Writing Makefile for ZoneMinder
Writing MYMETA.yml and MYMETA.json