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

	fastcgi mysql pgsql x11

The currently selected options are:

	x11

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

	PKG_OPTIONS.mapserver (not defined)

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

        * BDB185_DEFAULT = db1
        * BDB_DEFAULT = db4
        * JPEG_DEFAULT = jpeg
        * KRB5_DEFAULT = heimdal
        * 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:

        * BDBBASE = /usr
        * BDB_LIBS (defined, but empty)
        * BDB_TYPE = db1
        * JPEGBASE (defined, but empty)
        * JPEG_TYPE = jpeg
        * KRB5BASE (defined, but empty)
        * KRB5_TYPE = heimdal
        * 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 cmake>=0: found cmake-3.30.2
=> Tool dependency glib2-tools-[0-9]*: found glib2-tools-2.80.4
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Build dependency x11-links>=1.36: found x11-links-1.36
=> Build dependency gcc10>=10.3.0nb2: found gcc10-10.5.0nb2
=> Full dependency fribidi>=0.19.1: found fribidi-1.0.15
=> Full dependency protobuf-c>=1.5.0nb5: found protobuf-c-1.5.0nb6
=> Full dependency gdal-lib>=3.9.0nb1: found gdal-lib-3.9.2
=> Full dependency libxml2>=2.10.4nb3: found libxml2-2.12.9
=> Full dependency geos>=3.3.4: found geos-3.12.2
=> Full dependency proj>=8.2.1: found proj-8.2.1nb1
=> Full dependency png>=1.6.0nb1: found png-1.6.43
=> Full dependency cairo>=1.18.0nb2: found cairo-1.18.0nb2
=> Full dependency freetype2>=2.13.2nb1: found freetype2-2.13.3
=> Full dependency gd>=2.3.3nb14: found gd-2.3.3nb14
=> Full dependency gcc10-libs>=10.2.0: found gcc10-libs-10.5.0nb3
===> 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 mapserver-8.2.1
===> Extracting for mapserver-8.2.1
===> Patching for mapserver-8.2.1
===> Creating toolchain wrappers for mapserver-8.2.1
===> Configuring for mapserver-8.2.1
=> Fixing locale directory references.
INFO: [subst.mk:pkglocaledir] Nothing changed in "Makefile".
INFO: [subst.mk:pkglocaledir] Nothing changed in "src/mapscript/csharp/Makefile.in".
INFO: [subst.mk:pkglocaledir] Nothing changed in "src/mapscript/csharp/Makefile.vc".
INFO: [subst.mk:pkglocaledir] Nothing changed in "src/mapscript/java/makefile.vc".
INFO: [subst.mk:pkglocaledir] Nothing changed in "src/mapscript/tcl/Makefile.in".
INFO: [subst.mk:pkglocaledir] Nothing changed in "src/renderers/agg/include/Makefile.am".
INFO: [subst.mk:pkglocaledir] Nothing changed in "src/renderers/agg/include/util/Makefile.am".
INFO: [subst.mk:pkglocaledir] Nothing changed in "src/renderers/agg/src/Makefile.am".
INFO: [subst.mk:pkglocaledir] Nothing changed in "tests/makefile_postgis".
-- The C compiler identification is GNU 10.5.0
-- The CXX compiler identification is GNU 10.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /pbulk/work/geography/mapserver/work/.cwrapper/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /pbulk/work/geography/mapserver/work/.cwrapper/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Requiring C++11
-- Requiring C++11 - done
-- Requiring C99
-- Requiring C99 - done
-- Looking for strrstr
-- Looking for strrstr - not found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strcasestr
-- Looking for strcasestr - found
-- Looking for strlcat
-- Looking for strlcat - found
-- Looking for strlcpy
-- Looking for strlcpy - found
-- Looking for strlen
-- Looking for strlen - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for lrintf
-- Looking for lrintf - found
-- Looking for lrint
-- Looking for lrint - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Performing Test HAVE_SYNC_FETCH_AND_ADD
-- Performing Test HAVE_SYNC_FETCH_AND_ADD - Success
-- Found ProtobufC: /usr/pkg/lib/libprotobuf-c.so
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.10")
-- Found PNG: /usr/pkg/lib/libpng16.so (found version "1.6.43")
-- Found JPEG: /usr/pkg/lib/libjpeg.so (found version "90")
-- Found Freetype: /usr/pkg/lib/libfreetype.so
-- Found Proj: /usr/pkg/lib/libproj.so
-- Found Proj 8.2
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
    Reason given by package: The command
      "/pbulk/work/geography/mapserver/work/.tools/bin/pkg-config" --version
    failed with output:

    stderr: 
      
    result: 
1

-- Found FriBiDi: /usr/pkg/lib/libfribidi.so
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Found HarfBuzz: /usr/pkg/include/harfbuzz
-- Looking for iconv
-- Looking for iconv - found
-- Found iconv library: 
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Found Cairo: /usr/pkg/lib/libcairo.so
-- Found GEOS: /usr/pkg/lib/libgeos_c.so
-- Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR) 
CMake Error at CMakeLists.txt:93 (message):
  POSTGIS library/component/dependency could not be found.

    HINTS:
    - disable POSTGIS support by adding -DWITH_POSTGIS=0
    - add the POSTGIS install directory to the CMAKE_PREFIX_PATH variable (-DCMAKE_PREFIX_PATH="/path/to/POSTGIS-install-dir;/path/to/other/dirs"
Call Stack (most recent call first):
  CMakeLists.txt:656 (report_optional_not_found)


-- Found GDAL: /usr/pkg/lib/libgdal.so
-- Found GDAL 3.9
-- Found LibXml2: /usr/pkg/lib/libxml2.so (found version "2.12.9")
-- Found GIF: /usr/pkg/lib/libgif.so (found version "5.2.1")
-- * Summary of configured options for this build
--  * Mandatory components
--   * GDAL: /usr/pkg/lib/libgdal.so
--   * PROJ: /usr/pkg/lib/libproj.so
--   * png: /usr/pkg/lib/libpng16.so
--   * jpeg: /usr/pkg/lib/libjpeg.so
--   * freetype: /usr/pkg/lib/libfreetype.so
--  * Optional components
--   * GIF: /usr/pkg/lib/libgif.so
--   * MYSQL: disabled
--   * FRIBIDI: /usr/pkg/lib/libfribidi.so
--   * HARFBUZZ: /usr/pkg/lib/libharfbuzz.so
--   * CAIRO: /usr/pkg/lib/libcairo.so
--   * SVGCAIRO: disabled
--   * RSVG: disabled
--   * CURL: disabled
--   * PIXMAN: disabled
--   * LIBXML2: /usr/pkg/lib/libxml2.so
--   * POSTGIS: disabled
--   * GEOS: /usr/pkg/lib/libgeos_c.so
--   * FastCGI: disabled
--   * PROTOBUFC: /usr/pkg/lib/libprotobuf-c.so
--   * Oracle Spatial: disabled
--   * Exempi XMP: disabled
--  * Optional features
--   * WMS SERVER: ENABLED
--   * WFS SERVER: ENABLED
--   * WCS SERVER: ENABLED
--   * SOS SERVER: disabled
--   * OGCAPI SERVER: ENABLED
--   * WMS CLIENT: disabled
--   * WFS CLIENT: disabled
--   * ICONV: ENABLED
--   * Thread-safety support: disabled
--   * KML output: disabled
--   * XML Mapfile support: disabled
--  * Mapscripts
--   * Python: disabled
--   * PHPNG: disabled
--   * PERL: disabled
--   * RUBY: disabled
--   * JAVA: disabled
--   * C#: disabled
--   * V8 Javascript: disabled
--   * Apache Module (Experimental): disabled
--   * Python MapScript Annotations: disabled
-- 
-- PROJECT_BINARY_DIR is set to /pbulk/work/geography/mapserver/work/mapserver-8.2.1/cmake-pkgsrc-build
-- Will install files to /usr/pkg
-- Will install libraries to /usr/pkg/lib
-- Configuring incomplete, errors occurred!
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/geography/mapserver
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/geography/mapserver