=> 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 ghostscript-9.21.tar.gz
=> Checksum RMD160 OK for ghostscript-9.21.tar.gz
=> Checksum SHA512 OK for ghostscript-9.21.tar.gz
===> Installing dependencies for ghostscript-agpl-9.21nb1
==========================================================================
The supported build options for ghostscript-agpl are:

	debug disable-compile-inits fontconfig x11

The currently selected options are:

	fontconfig 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.ghostscript (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
ghostscript-agpl-9.21nb1.  Their current value is shown below:

        * JPEG_DEFAULT = jpeg

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 gmake>=3.81: found gmake-4.1nb3
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.3.5
=> Tool dependency checkperms>=1.1: found checkperms-1.11nb1
=> Build dependency x11-links>=1.04: found x11-links-1.05
=> Build dependency cwrappers>=20150314: found cwrappers-20170112
=> Full dependency ghostscript-fonts>=6.0: found ghostscript-fonts-8.11nb3
=> Full dependency perl>=5.0: found perl-5.24.1nb1
=> Full dependency libidn>=1.20nb1: found libidn-1.33
=> Full dependency jbig2dec>=0.11: found jbig2dec-0.13
=> Full dependency lcms2>=2.2: found lcms2-2.8
=> Full dependency png>=1.6.0nb1: found png-1.6.29
=> Full dependency tiff>=4.0.3nb5: found tiff-4.0.7nb11
=> Full dependency libpaper>=1.1.22: found libpaper-1.1.24
===> Overriding tools for ghostscript-agpl-9.21nb1
===> Extracting for ghostscript-agpl-9.21nb1
=> Fixing resource directory path
/bin/mkdir -p /data/scratch/print/ghostscript-agpl/work/ghostscript-9.21/bin
/bin/mkdir -p /data/scratch/print/ghostscript-agpl/work/ghostscript-9.21/obj
/bin/rm -rf /data/scratch/print/ghostscript-agpl/work/ghostscript-9.21/freetype
/bin/rm -rf /data/scratch/print/ghostscript-agpl/work/ghostscript-9.21/jbig2dec
/bin/rm -rf /data/scratch/print/ghostscript-agpl/work/ghostscript-9.21/jpeg
/bin/rm -rf /data/scratch/print/ghostscript-agpl/work/ghostscript-9.21/lcms2
/bin/rm -rf /data/scratch/print/ghostscript-agpl/work/ghostscript-9.21/libpng
/bin/rm -rf /data/scratch/print/ghostscript-agpl/work/ghostscript-9.21/tiff
/bin/rm -rf /data/scratch/print/ghostscript-agpl/work/ghostscript-9.21/zlib
===> Patching for ghostscript-agpl-9.21nb1
=> Applying pkgsrc patches for ghostscript-agpl-9.21nb1
=> Verifying /data/pkgsrc-current/print/ghostscript-agpl/patches/patch-base_gserrors_h
=> Applying pkgsrc patch /data/pkgsrc-current/print/ghostscript-agpl/patches/patch-base_gserrors_h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-base_gserrors_h,v 1.1 2013/03/16 22:25:21 dholland Exp $
|
|This suppresses the noisy warning that __func__ redefined.
|
|--- base/gserrors.h.orig	2013-02-14 07:58:13.000000000 +0000
|+++ base/gserrors.h
--------------------------
Patching file base/gserrors.h using Plan A...
Hunk #1 succeeded at 132 (offset 72 lines).
done
=> Verifying /data/pkgsrc-current/print/ghostscript-agpl/patches/patch-base_lib.mak
=> Applying pkgsrc patch /data/pkgsrc-current/print/ghostscript-agpl/patches/patch-base_lib.mak
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-base_lib.mak,v 1.1 2017/03/31 07:26:23 adam Exp $
|
|Don't depend on zlib objects; instead, link against system zlib.
|
|--- base/lib.mak.orig	2017-03-31 06:55:50.000000000 +0000
|+++ base/lib.mak
--------------------------
Patching file base/lib.mak using Plan A...
Hunk #1 succeeded at 3352.
done
=> Verifying /data/pkgsrc-current/print/ghostscript-agpl/patches/patch-base_mkromfs.c
=> Applying pkgsrc patch /data/pkgsrc-current/print/ghostscript-agpl/patches/patch-base_mkromfs.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-base_mkromfs.c,v 1.1 2017/03/31 07:26:23 adam Exp $
|
|chunk 1:
|fix build with _FORTIFY_SOURCE=2; it seems the arguments sometimes
|overlap.
|
|chunk 2:
|Replace BSD/Linux specific "qd" printf format specifier by "lld",
|should fix build problem on Solaris reported by Joern Clausen per PR pkg/40664
|
|--- base/mkromfs.c.orig	2017-03-16 10:12:02.000000000 +0000
|+++ base/mkromfs.c
--------------------------
Patching file base/mkromfs.c using Plan A...
Hunk #1 succeeded at 2014.
Hunk #2 succeeded at 2368.
done
=> Verifying /data/pkgsrc-current/print/ghostscript-agpl/patches/patch-base_unix-dll.mak
=> Applying pkgsrc patch /data/pkgsrc-current/print/ghostscript-agpl/patches/patch-base_unix-dll.mak
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-base_unix-dll.mak,v 1.2 2017/04/20 09:20:55 jperkin Exp $
|
|Use correct shared library naming on Darwin.
|Add some rpaths.
|
|--- base/unix-dll.mak.orig	2017-03-16 10:12:02.000000000 +0000
|+++ base/unix-dll.mak
--------------------------
Patching file base/unix-dll.mak using Plan A...
Hunk #1 succeeded at 91.
Hunk #2 succeeded at 171.
done
=> Verifying /data/pkgsrc-current/print/ghostscript-agpl/patches/patch-configure
=> Applying pkgsrc patch /data/pkgsrc-current/print/ghostscript-agpl/patches/patch-configure
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-configure,v 1.1 2017/03/31 07:26:23 adam Exp $
|
|Use system zlib for linking.
|Add rpath.
|Use correct install_name with path on Darwin.
|
|--- configure.orig	2017-03-16 10:12:44.000000000 +0000
|+++ configure
--------------------------
Patching file configure using Plan A...
Hunk #1 succeeded at 3742.
Hunk #2 succeeded at 6705.
Hunk #3 succeeded at 10047.
done
=> Verifying /data/pkgsrc-current/print/ghostscript-agpl/patches/patch-devices_devs.mak
=> Applying pkgsrc patch /data/pkgsrc-current/print/ghostscript-agpl/patches/patch-devices_devs.mak
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-devices_devs.mak,v 1.5 2016/04/07 08:52:06 adam Exp $
|
|Don't depend on src/zlib.h.
|
|--- devices/devs.mak.orig	2016-03-23 08:22:48.000000000 +0000
|+++ devices/devs.mak
--------------------------
Patching file devices/devs.mak using Plan A...
Hunk #1 succeeded at 1080 (offset -153 lines).
Hunk #2 succeeded at 1373 (offset -44 lines).
done
===> Creating toolchain wrappers for ghostscript-agpl-9.21nb1
===> Configuring for ghostscript-agpl-9.21nb1
=> 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 toolbin/localcluster/clusterpush.pl toolbin/checkdeps.pl toolbin/pscet_status.pl toolbin/performance.pl toolbin/squeeze2html.pl toolbin/bugsByEngineer.pl toolbin/htmldiff.pl.
=> Checking for portability problems in extracted files
WARNING: [check-portability.awk] => Found $RANDOM:
WARNING: [check-portability.awk] configure:     CONFAUXDIR=auxtmp$RANDOM$RANDOM

Explanation:
===========================================================================
The variable $RANDOM is not required for a POSIX-conforming shell, and
many implementations of /bin/sh do not support it. It should therefore
not be used in shell programs that are meant to be portable across a
large number of POSIX-like systems.
===========================================================================

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 how to run the C preprocessor... gcc -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for x86_64--netbsd-ranlib... no
checking for ranlib... ranlib
checking for x86_64--netbsd-pkg-config... no
checking for pkg-config... /data/scratch/print/ghostscript-agpl/work/.tools/bin/pkg-config
checking for x86_64--netbsd-strip... no
checking for strip... /data/scratch/print/ghostscript-agpl/work/.tools/bin/strip
checking supported compiler flags...    -O2
   -Wall
   -Wstrict-prototypes
   -Wundef
   -Wmissing-declarations
   -Wmissing-prototypes
   -Wwrite-strings
   -Wno-strict-aliasing
   -Werror=declaration-after-statement
   -fno-builtin
   -fno-common
   -Werror=return-type
   -gdwarf-2
   -g3
   -O0
 ...done.
checking compiler/linker address santizer support...  ...done.
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 whether byte ordering is bigendian... no
checking sse2 support... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... 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 malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking for inttypes.h... (cached) yes
checking sys/window.h usability... no
checking sys/window.h presence... no
checking for sys/window.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for mode_t... yes
checking for off_t... yes
checking for size_t... yes
checking for struct stat.st_blocks... 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 for dlopen in -ldl... no
checking size of unsigned long long... 8
checking for cos in -lm... yes
checking for pread... yes
checking for pwrite... yes
checking whether pwrite is declared... yes
checking whether pread is declared... yes
checking for pthread_create in -lpthread... yes
checking recursive mutexes.......... checking for iconv_open... yes
checking for stringprep in -lidn... yes
checking stringprep.h usability... yes
checking stringprep.h presence... yes
checking for stringprep.h... yes
checking for systempapername in -lpaper... yes
checking paper.h usability... yes
checking paper.h presence... yes
checking for paper.h... yes
checking for fontconfig with pkg-config... yes
checking for dbus with pkg-config... no
checking for dbus_message_iter_get_basic in -ldbus... no
checking for local freetype library source... no
checking for system freetype2 >= 2.4.2 with pkg-config... yes
checking for local jpeg library source... no
checking for jpeg_set_defaults in -ljpeg... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jmemsys.h... no
checking for local zlib source... no
checking for deflate in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for local png library source... no
checking for png_create_write_struct in -lpng... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for local lcms2 library source... no
checking for system lcms2 library... checking for _cmsCreateMutex in -llcms2... yes
checking lcms2.h usability... yes
checking lcms2.h presence... yes
checking for lcms2.h... yes
checking for libtiff with pkg-config... yes
checking for local ijs library source... yes
checking for local Luratech JBIG2 library source... no
checking for local jbig2dec library source... no
checking for jbig2_page_out in -ljbig2dec... yes
checking for local Luratech JPEG2K library source... no
checking for fseeko... yes
checking whether lrintf is declared... yes
checking for local OpenJPEG library source... yes
checking for memalign... no
checking for GTK+ 3.x... no
checking for GTK+ 2.x... no
checking for X... libraries /usr/X11R7/lib, headers /usr/X11R7/include
checking whether -R must be followed by a space... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for XOpenDisplay in -lX11... yes
checking for XdbeQueryExtension in -lXext... yes
checking for XtAppCreateShell in -lXt... yes
configure: WARNING: Unable to include opvp/oprp driver due to missing or disabled prerequisites...
checking for mkstemp... yes
checking for fopen64... no
checking for fseeko... (cached) yes
checking for mkstemp64... no
checking for setlocale... yes
checking for strerror... yes
checking for isnan... yes
checking for isinf... yes
checking whether gcc needs -traditional... no
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking return type of signal handlers... void
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for bzero... yes
checking for dup2... yes
checking for floor... yes
checking for gettimeofday... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for mkfifo... yes
checking for modf... yes
checking for pow... yes
checking for putenv... yes
checking for rint... yes
checking for setenv... yes
checking for sqrt... yes
checking for strchr... yes
checking for strrchr... yes
checking for strspn... yes
checking for strstr... yes
checking minimum memory pointer alignment... done
checking for sqrtf... yes
checking for strnlen... yes
checking byteswap support... yes
checking for byteswap.h... no
configure: creating ./config.status
config.status: creating Makefile