=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for nut-2.8.2.tar.gz
=> Checksum SHA512 OK for nut-2.8.2.tar.gz
===> Installing dependencies for ups-nut-cgi-2.8.2nb1
==========================================================================
The supported build options for ups-nut-cgi are:

	nss openssl

The currently selected options are:

	openssl

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

	PKG_OPTIONS.ups-nut (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
ups-nut-cgi-2.8.2nb1.  Their current value is shown below:

        * JPEG_DEFAULT = jpeg
        * NUT_STATEDIR = /var/db/nut
        * SSLBASE = /usr
        * SSLCERTBUNDLE (not defined)
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private
        * VARBASE = /var

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 the value
of variables in the first group 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.7nb1
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency pkgconf-[0-9]*: found pkgconf-2.3.0
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Build dependency x11-links>=1.36: found x11-links-1.36
=> Full dependency ups-nut-2.*: found ups-nut-2.8.2
=> Full dependency freetype2>=2.13.2nb1: found freetype2-2.13.3
=> Full dependency gd>=2.3.3nb14: found gd-2.3.3nb14
=> Full dependency tiff>=4.6.0: found tiff-4.6.0nb3
=> Full dependency jpeg>=9: found jpeg-9f
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Overriding tools for ups-nut-cgi-2.8.2nb1
===> Extracting for ups-nut-cgi-2.8.2nb1
===> Patching for ups-nut-cgi-2.8.2nb1
=> Applying pkgsrc patches for ups-nut-cgi-2.8.2nb1
===> Creating toolchain wrappers for ups-nut-cgi-2.8.2nb1
===> Configuring for ups-nut-cgi-2.8.2nb1
=> Generating pkg-config files for builtin xz package.
=> 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
checking for CONFIG_FLAGS... --sysconfdir=/usr/pkg/etc/nut --datadir=/usr/pkg/share/nut --localstatedir=/var/db/nut --with-statepath=/var/db/nut --with-htmlpath=/usr/pkg/share/nut/html --with-user=nut --with-group=nut --with-ssl=openssl --without-nss --with-openssl --with-cgi --with-cgipath=/usr/pkg/libexec/cgi-bin --x-includes=/usr/X11R7/include --x-libraries=/usr/X11R7/lib --prefix=/usr/pkg --build=x86_64--netbsd --host=x86_64--netbsd --mandir=/usr/pkg/man --enable-option-checking=yes
Network UPS Tools version 2.8.2
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 pbulk -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 whether make supports nested variables... (cached) yes
checking for autoconf macro to enable system extensions... yes
checking whether make supports the include directive... yes (GNU style)
checking for x86_64--netbsd-gcc... gcc
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 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... gcc3
checking how to run the C preprocessor... gcc -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 how to run the C preprocessor... gcc -E
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking dependency style of c++... gcc3
checking whether c++ understands -c and -o together... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether this make implementation supports export VAR=VAL syntax... yes
checking pkg-config is at least version 0.9.0... yes
checking whether usable PKG_CONFIG was already detected by autoconf... yes: /pbulk/work/sysutils/ups-nut-cgi/work/.tools/bin/pkg-config
configure: checking for autoconf macro support of pkg-config (/pbulk/work/sysutils/ups-nut-cgi/work/.tools/bin/pkg-config)
configure: checking for autoconf macro support of pkg-config module checker
checking for pkg-config... yes
checking for realpath... realpath
checking whether ln -s works... yes
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 if CC compiler family is GCC... yes
checking if CXX compiler family is GCC... yes
checking if CPP preprocessor family is GCC... yes
checking if CC compiler family is clang... no
checking if CXX compiler family is clang... no
checking if CPP preprocessor family is clang... no
checking Compact version of C compiler... "gcc (nb3 20231008) 10.5.0"
checking Compact version of C++ compiler... "g++ (nb3 20231008) 10.5.0"
checking Compact version of C preprocessor... "gcc (nb3 20231008) 10.5.0"
configure: Detecting support for additional compiler flags
checking whether C compiler accepts -Qunused-arguments... no
checking whether C++ compiler accepts -Qunused-arguments... no
checking whether C compiler accepts -Wno-reserved-identifier... yes
checking whether C++ compiler accepts -Wno-reserved-identifier... yes
configure: NOT checking for options to request colorized compiler output (pass --enable-Wcolor for that)
checking whether C compiler accepts -Wno-unknown-warning-option... yes
checking whether C++ compiler accepts -Wno-unknown-warning-option... yes
checking whether C compiler accepts -std=gnu99... yes
configure: Defaulting C standard support to GNU C99 on a GCC or CLANG compatible compiler
checking whether C++ compiler accepts -std=gnu++11... yes
configure: Defaulting C++ standard support to GNU C++11 on a GCC or CLANG compatible compiler
checking for pragma GCC diagnostic push and pop (outside functions)... yes
checking for pragma clang diagnostic push and pop (outside functions)... no
checking for pragma GCC diagnostic push and pop (inside functions)... yes
checking for pragma clang diagnostic push and pop (inside functions)... no
checking for pragma GCC diagnostic ignored "-Wunused-function"... yes
checking for pragma GCC diagnostic ignored "-Wdeprecated-declarations"... yes
checking for pragma GCC diagnostic ignored "-Wformat-nonliteral"... yes
checking for pragma GCC diagnostic ignored "-Wformat-nonliteral" (outside functions)... yes
checking for pragma GCC diagnostic ignored "-Wformat-security"... yes
checking for pragma GCC diagnostic ignored "-Wformat-security" (outside functions)... yes
checking for pragma GCC diagnostic ignored "-Wformat-truncation"... yes
checking for pragma GCC diagnostic ignored "-Wformat-truncation" (outside functions)... yes
checking for pragma GCC diagnostic ignored "-Wstringop-truncation"... yes
checking for pragma GCC diagnostic ignored "-Wstringop-truncation" (outside functions)... yes
checking for pragma GCC diagnostic ignored "-Wtype-limits"... yes
checking for pragma GCC diagnostic ignored "-Wtype-limits" (outside functions)... yes
checking for pragma GCC diagnostic ignored "-Warray-bounds"... yes
checking for pragma GCC diagnostic ignored "-Warray-bounds" (outside functions)... yes
checking for pragma GCC diagnostic ignored "-Wtautological-type-limit-compare"... no
checking for pragma GCC diagnostic ignored "-Wtautological-type-limit-compare" (outside functions)... no
checking for pragma GCC diagnostic ignored "-Wtautological-constant-out-of-range-compare"... no
checking for pragma GCC diagnostic ignored "-Wtautological-constant-out-of-range-compare" (outside functions)... no
checking for pragma GCC diagnostic ignored "-Wtautological-unsigned-zero-compare"... no
checking for pragma GCC diagnostic ignored "-Wtautological-unsigned-zero-compare" (outside functions)... no
checking for pragma GCC diagnostic ignored "-Wtautological-compare"... yes
checking for pragma GCC diagnostic ignored "-Wtautological-compare" (outside functions)... yes
checking for pragma GCC diagnostic ignored "-Wsign-compare"... yes
checking for pragma GCC diagnostic ignored "-Wsign-compare" (outside functions)... yes
checking for pragma GCC diagnostic ignored "-Wsign-conversion"... yes
checking for pragma GCC diagnostic ignored "-Wsign-conversion" (outside functions)... yes
checking for pragma GCC diagnostic ignored "-Wunreachable-code-break"... no
checking for pragma GCC diagnostic ignored "-Wunreachable-code-break" (outside functions)... no
checking for pragma GCC diagnostic ignored "-Wunreachable-code-return"... no
checking for pragma GCC diagnostic ignored "-Wunreachable-code-return" (outside functions)... no
checking for pragma GCC diagnostic ignored "-Wunreachable-code"... yes
checking for pragma GCC diagnostic ignored "-Wunreachable-code" (outside functions)... yes
checking for pragma GCC diagnostic ignored "-Wformat-overflow"... yes
checking for pragma GCC diagnostic ignored "-Wformat-overflow" (outside functions)... yes
checking for pragma GCC diagnostic ignored "-Wcovered-switch-default"... no
checking for pragma GCC diagnostic ignored "-Wcovered-switch-default" (outside functions)... no
checking for pragma GCC diagnostic ignored "-Wextra-semi-stmt"... no
checking for pragma GCC diagnostic ignored "-Wextra-semi-stmt" (outside functions)... no
checking for pragma GCC diagnostic ignored "-Wcast-align"... yes
checking for pragma GCC diagnostic ignored "-Wcast-align" (outside functions)... yes
checking for pragma GCC diagnostic ignored "-Wcast-function-type-strict"... no
checking for pragma GCC diagnostic ignored "-Wcast-function-type-strict" (outside functions)... no
checking for pragma GCC diagnostic ignored "-Wstrict-prototypes"... yes
checking for pragma GCC diagnostic ignored "-Wstrict-prototypes" (outside functions)... yes
checking for pragma GCC diagnostic ignored "-Wassign-enum"... no
checking for pragma GCC diagnostic ignored "-Wassign-enum" (outside functions)... no
checking for C++ pragma GCC diagnostic ignored "-Wc++98-compat-pedantic"... no
checking for C++ pragma GCC diagnostic ignored "-Wc++98-compat-pedantic" (outside functions)... no
checking for C++ pragma GCC diagnostic ignored "-Wc++98-compat"... no
checking for C++ pragma GCC diagnostic ignored "-Wc++98-compat" (outside functions)... no
checking for C++ pragma GCC diagnostic ignored "-Wglobal-constructors"... no
checking for C++ pragma GCC diagnostic ignored "-Wglobal-constructors" (outside functions)... no
checking for C++ pragma GCC diagnostic ignored "-Wexit-time-destructors"... no
checking for C++ pragma GCC diagnostic ignored "-Wexit-time-destructors" (outside functions)... no
checking for pragma BOGUSforTest... no
checking for pragma BOGUSforTest (outside functions)... no
checking for pragma GCC diagnostic ignored "-WBOGUSforTest"... no
checking for pragma GCC diagnostic ignored "-WBOGUSforTest" (outside functions)... no
checking for __attribute__((unused)) for function arguments... yes
checking for __attribute__((unused)) for functions... yes
checking for __attribute__((noreturn))... yes
checking for at least some __attribute__ support... yes
checking for practical support to printf("%s", NULL)... (null)yes
checking for sys/time.h... yes
checking for time.h... yes
checking for sys/types.h... (cached) yes
checking for sys/socket.h... yes
checking for netdb.h... yes
checking for flock... yes
checking for lockf... yes
checking for fcvt... no
checking for fcvtl... no
checking for dup... yes
checking for dup2... yes
checking for abs_val... no
checking for abs... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking whether fabs is declared... yes
checking whether fabsf is declared... yes
checking whether fabsl is declared... yes
checking whether pow10 is declared... no
checking whether round is declared... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking whether realpath is declared... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/signal.h usability... yes
checking sys/signal.h presence... yes
checking for sys/signal.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for struct rlimit and getrlimit()... ok
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking semaphore.h usability... yes
checking semaphore.h presence... yes
checking for semaphore.h... yes
checking for sem_t, sem_init() and sem_destroy()... ok
checking for sem_init in -lrt... yes
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 setlogmask... yes
checking whether LOG_UPTO is declared... yes
configure: -----------------------------------------------------------------------
The next few tests look for required C library routines; if something is
not found, you may need to enable a different C standard or extension macro
version. You may also have to configure without extreme warning levels
since autotools tests fail those on their own and assume system lacks
stuff (although note we try to not involve standard -W* flags here).
-----------------------------------------------------------------------
checking for strtok_r... yes
checking for fileno... yes
checking for sigemptyset... yes
checking for sigaction... yes
checking for localtime_r... yes
checking for localtime_s... no
checking for gmtime_r... yes
checking for gmtime_s... no
checking for timegm... yes
checking for _mkgmtime... no
checking for at least one gmtime implementation... yes
checking for at least one localtime implementation... yes
checking for at least one timegm implementation... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for strcasecmp(s1,s2)... yes
checking for strncasecmp(s1,s2,n)... yes
checking for strlwr(s)... no
configure: WARNING: Optional C library routine strlwr not found
checking for strsep(s1,s2)... yes
checking for strstr(s1,s2)... yes
checking for strcasestr(s1,s2)... yes
checking for strptime(s1,s2,tm)... yes
checking for clock_gettime(CLOCK_MONOTONIC,ts)... yes
checking for strnlen(s1,s2,tm)... yes
checking for strdup(s)... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for suseconds_t... yes
checking for useconds_t... yes
checking for usleep(us)... yes
checking whether ln -sr works... ln: unknown option -- r
usage: ln [-L | -P | -s [-F]] [-f | -iw] [-hnv] source_file [target_file]
       ln [-L | -P | -s [-F]] [-f | -iw] [-hnv] source_file ... target_dir
       link source_file target_file
no, using ln
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 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 for sys/modem.h... no
checking for stdarg.h... yes
checking for varargs.h... no
checking for library containing pthread_create... -lpthread
checking for library containing pthread_tryjoin_np... no
checking for windows.h... no
checking for winsock2.h... no
checking for ws2tcpip.h... no
checking for socklen_t... yes
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for netdb.h... (cached) yes
checking types of arguments for getnameinfo... const struct sockaddr *,socklen_t,socklen_t,int
checking for inet_ntop() with IPv4 and IPv6 support... (null)(null)yes
checking for inet_pton() with IPv4 and IPv6 support... 1 1 yes
checking for struct pollfd... yes
checking for python... no
checking for python3... no
checking for python2... no
configure: WARNING: A python program name was not detected during configuration, will default to '/usr/bin/env python' (scripts will fail if that is not in PATH at run time)
configure: WARNING: A python program name without a specific version number was requested (may be a symlink prone to change over time): /usr/bin/env python
configure: WARNING: A python program will be resolved from PATH at run-time (PyNUT module may be not found if installed into site-packages of a specific version): /usr/bin/env python
env: python: No such file or directory
configure: WARNING: Version reported by /usr/bin/env python was not suitable as python
checking python interpeter to call... no
checking for python2... no
checking for python2.7... no
checking for python-2.7... no
checking for python... no
configure: WARNING: A python2 program name was not detected during configuration, will default to '/usr/bin/env python2' (scripts will fail if that is not in PATH at run time)
env: python2: No such file or directory
configure: WARNING: Version reported by /usr/bin/env python2 was not suitable as python2
checking python2 interpeter to call... no
checking for python3... no
checking for python3.14... no
checking for python-3.14... no
checking for python3.13... no
checking for python-3.13... no
checking for python3.12... python3.12
checking python3 interpeter to call... /usr/pkg/bin/python3.12 (sys.version_info(major=3, minor=12, micro=5, releaselevel='final', serial=0))
checking python3 site-packages location... /usr/pkg/lib/python3.12/site-packages
checking which python version to use by default... /usr/pkg/bin/python3.12
configure: WARNING: A python program name was not specified during configuration, will default to '/usr/pkg/bin/python3.12' (derived from --with-python2 or --with-python3 setting)
checking which drivers to build... all available
checking for --with-all... not given
checking for libregex version via pkg-config... none found
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking whether regexec is declared... yes
checking whether regcomp is declared... yes
checking for library containing regcomp, regexec... none required
checking for libusb-1.0 version via pkg-config... none found
checking for libusb(-0.1) version via pkg-config... none found
checking for libusb-config... no
checking for libusb preferred version... none 
configure: WARNING: Defaulting libusb configuration
checking for libusb cflags... 
checking for libusb ldflags... -lusb
checking for usb.h... no
checking for usb_init... no
checking size of void *... 8
checking for net-snmp-config-64... no
checking for net-snmp-config... no
checking for Net-SNMP version via pkg-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 libneon version via pkg-config (0.25.0 minimum required)... none found
checking for libneon cflags... -I/usr/include/neon -I/usr/local/include/neon
checking for libneon ldflags... -lneon
checking for ne_xmlreq.h... no
checking for ne_xml_dispatch_request... no
checking for LLNC libpowerman version via pkg-config... 'none' found
checking for libpowerman cflags... 
checking for libpowerman libs... 
checking for libpowerman.h... no
checking for pm_connect... no
checking for libmodbus version via pkg-config... none found
checking for libmodbus cflags... -I/usr/include/modbus
checking for libmodbus ldflags... -lmodbus
checking for modbus.h... no
checking for modbus_new_rtu... no
checking for modbus_new_tcp... no
checking for modbus_set_byte_timeout... no
checking for modbus_set_response_timeout... no
checking for modbus_new_rtu_usb... no
checking for libgpiod version via pkg-config (1.0.0 minimum required)... none found
checking for libgpiod cflags... -I/usr/include -I/usr/local/include
checking for libgpiod ldflags... -lgpiod
checking for gpiod.h... no
checking for gpiod_chip_open_by_name... no
checking for gpiod_chip_close... 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... -I/usr/local/include -I/usr/include -L/usr/local/lib -L/usr/lib
checking for avahi ldflags... -lavahi-core -lavahi-client
checking for avahi-common/malloc.h... no
checking for avahi_free... no
checking for msgfmt... /usr/bin/msgfmt
checking for sys/termios.h... yes
checking for struct termios and speed_t... ok
checking whether we can build serial drivers... yes
checking whether to build serial drivers... yes 
checking whether to build USB 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 whether to build Modbus 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 GPIO 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_CTX_new... yes
checking whether to enable SSL support... yes (OpenSSL)
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... 
checking for libltdl ldflags... 
checking for ltdl.h... no
checking for ltdl.h... no
checking whether to enable libltdl (Libtool dlopen abstraction) support... no 
checking whether to build nut-scanner... no 
checking for gd version via pkg-config... none found
checking for gdlib-config... no
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
checking for more gd library flags... checking with explicit -lpng in the loop... checking for library containing gdImagePng... no
configure: error: libgd not found, required for CGI build
*** Error code 1

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

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