=> Bootstrap dependency digest>=20010302: found digest-20190127
===> 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 nut-2.7.4.tar.gz
=> Checksum RMD160 OK for nut-2.7.4.tar.gz
=> Checksum SHA512 OK for nut-2.7.4.tar.gz
===> Installing dependencies for ups-nut-cgi-2.7.4
==========================================================================
The following variables will affect the build process of this package,
ups-nut-cgi-2.7.4.  Their current value is shown below:

        * JPEG_DEFAULT = jpeg
        * NUT_STATEDIR = /var/db/nut

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

        * JPEGBASE (defined, but empty)
        * JPEG_TYPE = jpeg

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 libtool-base>=2.4.2nb9: found libtool-base-2.4.6nb2
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency ups-nut-2.*: found ups-nut-2.7.4
=> Full dependency freetype2>=2.8.1: found freetype2-2.10.1
=> Full dependency gd>=2.2.5nb2: found gd-2.3.0
=> Full dependency tiff>=4.0.3nb5: found tiff-4.1.0
===> Overriding tools for ups-nut-cgi-2.7.4
===> Extracting for ups-nut-cgi-2.7.4
===> Patching for ups-nut-cgi-2.7.4
=> Applying pkgsrc patches for ups-nut-cgi-2.7.4
=> Verifying /data/pkgsrc/sysutils/ups-nut-cgi/../../sysutils/ups-nut/patches/patch-aa
=> Applying pkgsrc patch /data/pkgsrc/sysutils/ups-nut-cgi/../../sysutils/ups-nut/patches/patch-aa
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-aa,v 1.12 2018/09/21 00:59:53 jym Exp $
|
|Default conf files go to example dir.
|
|--- conf/Makefile.in.orig	2013-02-08 15:36:48.000000000 +0100
|+++ conf/Makefile.in	2013-02-08 15:37:02.000000000 +0100
--------------------------
Patching file conf/Makefile.in using Plan A...
Hunk #1 succeeded at 183 (offset 71 lines).
done
=> Verifying /data/pkgsrc/sysutils/ups-nut-cgi/../../sysutils/ups-nut/patches/patch-clients_upsclient.c
=> Applying pkgsrc patch /data/pkgsrc/sysutils/ups-nut-cgi/../../sysutils/ups-nut/patches/patch-clients_upsclient.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-clients_upsclient.c,v 1.2 2018/09/21 00:59:53 jym Exp $
|
|Add missing header for timeval(3) functions.
|
|--- clients/upsclient.c.orig	2018-04-01 17:13:02.200981408 +0000
|+++ clients/upsclient.c
--------------------------
Patching file clients/upsclient.c using Plan A...
Hunk #1 succeeded at 34 (offset 6 lines).
done
=> Verifying /data/pkgsrc/sysutils/ups-nut-cgi/../../sysutils/ups-nut/patches/patch-drivers_hidparser.c
=> Applying pkgsrc patch /data/pkgsrc/sysutils/ups-nut-cgi/../../sysutils/ups-nut/patches/patch-drivers_hidparser.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-drivers_hidparser.c,v 1.1 2015/11/10 08:52:38 mrg Exp $
|
|work around horrible big-endian code that assumes "long" is 32 bits.
|enables usb-nut-ups to work on sparc64.
|
|
|--- drivers/hidparser.c.orig	2012-07-31 10:38:59.000000000 -0700
|+++ drivers/hidparser.c	2015-11-10 00:30:11.000000000 -0800
--------------------------
Patching file drivers/hidparser.c using Plan A...
Hunk #1 succeeded at 160 (offset -3 lines).
done
=> Verifying /data/pkgsrc/sysutils/ups-nut-cgi/../../sysutils/ups-nut/patches/patch-drivers_libusb.c
=> Applying pkgsrc patch /data/pkgsrc/sysutils/ups-nut-cgi/../../sysutils/ups-nut/patches/patch-drivers_libusb.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-drivers_libusb.c,v 1.1 2018/03/28 06:23:34 mrg Exp $
|
|Avoid "No error" messages.
|
|--- drivers/libusb.c.orig	2012-07-31 10:38:59.000000000 -0700
|+++ drivers/libusb.c	2016-10-21 01:44:40.000000000 -0700
--------------------------
Patching file drivers/libusb.c using Plan A...
Hunk #1 succeeded at 422 (offset 69 lines).
done
=> Verifying /data/pkgsrc/sysutils/ups-nut-cgi/../../sysutils/ups-nut/patches/patch-snmp-error-msg.c
=> Applying pkgsrc patch /data/pkgsrc/sysutils/ups-nut-cgi/../../sysutils/ups-nut/patches/patch-snmp-error-msg.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-snmp-error-msg.c,v 1.1 2018/09/21 00:59:53 jym Exp $
|
|Get an explicit error message if we fail obtaining a response.
|
|--- drivers/snmp-ups.c.orig	2016-03-09 11:39:45.000000000 +0000
|+++ drivers/snmp-ups.c
--------------------------
Patching file drivers/snmp-ups.c using Plan A...
Hunk #1 succeeded at 577.
done
===> Creating toolchain wrappers for ups-nut-cgi-2.7.4
===> Configuring for ups-nut-cgi-2.7.4
=> 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
=> Checking for portability problems in extracted files
Network UPS Tools version 2.7.4
checking build system type... x86_64--netbsd
checking host system type... x86_64--netbsd
checking target system type... x86_64--netbsd
checking for host system name... 
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 for autoconf macro to enable system extensions... yes
checking for style of include used by make... GNU
checking for x86_64--netbsd-gcc... clang
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 clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking whether clang understands -c and -o together... yes
checking dependency style of clang... gcc3
checking how to run the C preprocessor... clang -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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64--netbsd-gcc... (cached) clang
checking whether we are using the GNU C compiler... (cached) yes
checking whether clang accepts -g... (cached) yes
checking for clang option to accept ISO C89... (cached) none needed
checking whether clang understands -c and -o together... (cached) yes
checking dependency style of clang... (cached) gcc3
checking how to run the C preprocessor... clang -E
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking dependency style of clang++... gcc3
checking for egrep... (cached) /usr/bin/egrep
checking for ar... /usr/bin/ar
checking for x86_64--netbsd-ranlib... no
checking for ranlib... ranlib
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for flexible array members... yes
checking for variable-length arrays... yes
checking for flock... yes
checking for lockf... yes
checking for fcvt... no
checking for fcvtl... no
checking for cfsetispeed... yes
checking for tcsendbreak... yes
checking for seteuid... yes
checking for setsid... yes
checking for getpassphrase... no
checking for on_exit... no
checking for strptime... yes
checking for setlogmask... yes
checking whether LOG_UPTO is declared... yes
checking for unsigned long long int... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for setenv... yes
checking for strerror... yes
checking for atexit... yes
checking for CPPUNIT... no
configure: WARNING: libcppunit not found.
checking whether optind is declared... yes
checking for getopt.h... yes
checking for getopt_long... yes
checking whether uu_lock is declared... no
checking whether __func__ is declared... yes
checking for library containing gethostbyname... none required
checking for library containing connect... none required
checking whether time.h and sys/time.h may both be included... yes
checking for sys/modem.h... no
checking for stdarg.h... yes
checking for varargs.h... no
checking for sys/termios.h... yes
checking for sys/time.h... yes
checking for library containing pthread_create... -lpthread
checking for socklen_t... yes
checking for --with-all... not given
checking for Net-SNMP version via net-snmp-config... none found
checking for Net-SNMP cflags... 
checking for Net-SNMP libs... 
checking for net-snmp/net-snmp-config.h... no
checking for init_snmp... no
checking for libusb version via pkg-config... checking via libusb-config... none found
checking for libusb cflags... 
checking for libusb ldflags... -lusb
checking for usb.h... no
checking for usb_init... no
checking for libneon version via pkg-config (0.25.0 minimum required)... none found
checking for libneon cflags... 
checking for libneon ldflags... 
checking for ne_xmlreq.h... no
checking for ne_xml_dispatch_request... no
checking for libpowerman cflags... 
checking for libpowerman libs... 
checking for libpowerman.h... no
checking for pm_connect... no
checking for avahi-core version via pkg-config (0.6.30 minimum required)... none found
checking for avahi-client version via pkg-config (0.6.30 minimum required)... none found
checking for avahi cflags... 
checking for avahi ldflags... 
checking for avahi-common/malloc.h... no
checking for avahi_free... no
checking whether to build serial drivers... yes 
checking whether to build USB drivers... no 
checking whether to build SNMP drivers... no 
checking whether to build neon based XML driver... no 
checking whether to enable Avahi support... no 
checking whether to build Powerman PDU client driver... no 
checking for FreeIPMI version via pkg-config... none found
checking for FreeIPMI cflags... 
checking for FreeIPMI ldflags... -lfreeipmi -lipmimonitoring
checking for freeipmi/freeipmi.h... no
checking for ipmi_monitoring.h... no
checking for library containing ipmi_ctx_create... no
checking for library containing ipmi_ctx_find_inband... no
checking for library containing ipmi_monitoring_init... no
checking for library containing ipmi_monitoring_sensor_read_record_id... no
checking for library containing ipmi_sdr_cache_ctx_destroy... no
checking for library containing ipmi_sdr_ctx_destroy... no
checking whether to build IPMI driver... no 
checking whether to build Mac OS X meta-driver... no 
checking whether to build i2c based drivers... no 
checking for OpenSSL version via pkg-config... none found
checking for OpenSSL cflags... 
checking for OpenSSL ldflags... -lssl -lcrypto
checking for openssl/ssl.h... yes
checking for SSL_library_init... no
checking for Mozilla NSS version via pkg-config... none found
checking for Mozilla NSS cflags... 
checking for Mozilla NSS ldflags... -lnss3 -lnssutil3 -lsmime3 -lssl3 -lplds4 -lplc4 -lnspr4
checking for NSS_Init... no
checking for nss.h... no
checking for ssl.h... no
configure: WARNING: "Mozilla NSS and OpenSSL neither found, required for SSL support"
checking whether to enable SSL support... no 
checking for tcpd.h... yes
checking for library containing yp_get_default_domain... none required
checking for library containing request_init... -lwrap
checking whether to enable libwrap (tcp-wrappers) support... yes 
checking for libltdl cflags... -O2 -I/usr/pkg/include/freetype2 -I/usr/include -I/usr/pkg/include -Wall -Wsign-compare
checking for libltdl ldflags... 
checking for ltdl.h... no
checking for library containing lt_dlinit... no
checking whether to enable libltdl (Libtool dlopen abstraction) support... no 
checking for gd version via gdlib-config... none found
checking for gd include flags... 
checking for gd library flags... -L/usr/X11R6/lib -lgd -lpng -lz -ljpeg -lfreetype -lm -lXpm -lX11
checking for gd.h... yes
checking for gdfontmb.h... yes
checking for library containing gdImagePng... no
configure: error: libgd not found, required for CGI build
*** Error code 1

Stop.
make[1]: stopped in /data/pkgsrc/sysutils/ups-nut-cgi
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/sysutils/ups-nut-cgi