=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for weechat-4.5.1.tar.xz
=> Checksum SHA512 OK for weechat-4.5.1.tar.xz
===> Installing dependencies for weechat-4.5.1
==========================================================================
The supported build options for weechat are:

	lua perl python ruby wide-curses

The currently selected options are:

	lua perl python ruby wide-curses

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

	PKG_OPTIONS.weechat (not defined)

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

        * CURSES_DEFAULT = curses
        * LUA_VERSION_DEFAULT = 54
        * PYTHON_VERSION_DEFAULT = 312
        * READLINE_DEFAULT = editline
        * SSLBASE = /usr
        * SSLCERTBUNDLE (not defined)
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private

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

        * CURSES_TYPE = curses
        * LUA_PACKAGE = lua54
        * PYPACKAGE = python312
        * READLINE_TYPE = editline
        * TERMCAP_TYPE = termcap

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 ruby32-asciidoctor-[0-9]*: found ruby32-asciidoctor-2.0.23
=> Tool dependency cmake>=0: found cmake-3.31.5
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency perl>=5.40.0: found perl-5.40.0nb1
=> Tool dependency pkgconf-[0-9]*: found pkgconf-2.3.0
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Full dependency cJSON>=1.7.15: found cJSON-1.7.18
=> Full dependency curl>=8.11.0nb2: found curl-8.12.0nb1
=> Full dependency gnutls>=3.8.8nb2: found gnutls-3.8.8nb4
=> Full dependency hicolor-icon-theme>=0.9nb1: found hicolor-icon-theme-0.17nb1
=> Full dependency libgcrypt>=1.6.0: found libgcrypt-1.11.0nb2
=> Full dependency lua54>=5.4.0<5.5: found lua54-5.4.7
=> Full dependency perl>=5.40.0<5.41.0: found perl-5.40.0nb1
=> Full dependency python312>=3.12.0: found python312-3.12.9
=> Full dependency ruby32-base>=3.2.7: found ruby32-base-3.2.7
=> Full dependency zstd>=1.3.6: found zstd-1.5.6
===> 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 weechat-4.5.1
===> Extracting for weechat-4.5.1
===> Patching for weechat-4.5.1
=> Applying pkgsrc patches for weechat-4.5.1
===> Creating toolchain wrappers for weechat-4.5.1
/bin/ln -s /pbulk/work/chat/weechat/work/.buildlink/lib/pkgconfig/lua-5.4.pc /pbulk/work/chat/weechat/work/.buildlink/lib/pkgconfig/lua.pc
===> Configuring for weechat-4.5.1
=> Adjusting pkg-config python checks
/bin/rm -f /pbulk/work/chat/weechat/work/weechat-4.5.1/cmake/FindLua.cmake
=> Generating pkg-config files for builtin xz package.
=> Fixing locale directory references.
-- The C compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /pbulk/work/chat/weechat/work/.cwrapper/bin/gcc - skipped
-- Found PkgConfig: /pbulk/work/chat/weechat/work/.tools/bin/pkg-config (found version "2.3.0")
-- Looking for include file langinfo.h
-- Looking for include file langinfo.h - found
-- Looking for include file sys/resource.h
-- Looking for include file sys/resource.h - found
-- Looking for include file malloc.h
-- Looking for include file malloc.h - found
-- Looking for malloc_trim
-- Looking for malloc_trim - not found
-- Looking for mallinfo
-- Looking for mallinfo - not found
-- Looking for mallinfo2
-- Looking for mallinfo2 - not found
-- Looking for eat_newline_glitch
-- Looking for eat_newline_glitch - found
-- Checking for module 'libgcrypt'
--   Found libgcrypt, version 1.11.0
-- Checking for module 'gnutls>=3.3.0'
--   Found gnutls, version 3.8.8
CMake Error at /usr/pkg/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.10")
Call Stack (most recent call first):
  /usr/pkg/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindZLIB.cmake:70 (find_package_handle_standard_args)
  CMakeLists.txt:219 (find_package)


-- Configuring incomplete, errors occurred!
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/chat/weechat
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/chat/weechat