=> 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 erlang/otp_src_21.0.tar.gz
=> Checksum RMD160 OK for erlang/otp_src_21.0.tar.gz
=> Checksum SHA512 OK for erlang/otp_src_21.0.tar.gz
===> Installing dependencies for erlang-21.0
==========================================================================
The supported build options for erlang are:

	erlang-hipe iodbc java unixodbc

The currently selected options are:

	erlang-hipe

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

	PKG_OPTIONS.erlang (not defined)

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

        * SSLBASE = /usr
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private

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

        * TERMCAP_TYPE = termcap

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.2.1nb1
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency perl>=5.0: found perl-5.26.2
===> Overriding tools for erlang-21.0
===> Extracting for erlang-21.0
===> Patching for erlang-21.0
=> Applying pkgsrc patches for erlang-21.0
=> Verifying /data/pkgsrc/lang/erlang/patches/patch-ab
=> Applying pkgsrc patch /data/pkgsrc/lang/erlang/patches/patch-ab
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ab,v 1.6 2013/06/08 06:48:24 asau Exp $
|
|Build all .java files.
|
|--- make/otp.mk.in.orig	2013-02-25 19:21:31.000000000 +0000
|+++ make/otp.mk.in
--------------------------
Patching file make/otp.mk.in using Plan A...
Hunk #1 succeeded at 188 (offset 9 lines).
done
=> Verifying /data/pkgsrc/lang/erlang/patches/patch-ay
=> Applying pkgsrc patch /data/pkgsrc/lang/erlang/patches/patch-ay
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ay,v 1.2 2015/04/28 14:34:20 fhajny Exp $
|
|Pass in proper LDFLAGS. Fixes build with iodbc.
|
|--- lib/odbc/c_src/Makefile.in.orig	2010-02-19 20:07:30.000000000 +0200
|+++ lib/odbc/c_src/Makefile.in	2010-06-21 23:28:49.000000000 +0300
--------------------------
Patching file lib/odbc/c_src/Makefile.in using Plan A...
Hunk #1 succeeded at 82 (offset 1 line).
done
=> Verifying /data/pkgsrc/lang/erlang/patches/patch-erts_configure
=> Applying pkgsrc patch /data/pkgsrc/lang/erlang/patches/patch-erts_configure
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-erts_configure,v 1.3 2016/09/05 16:03:38 jperkin Exp $
|
|Use GCC -shared.
|
|--- erts/configure.orig	2016-06-21 18:55:58.000000000 +0000
|+++ erts/configure
--------------------------
Patching file erts/configure using Plan A...
No such line 44745 in input file, ignoring
Hunk #1 succeeded at 21662 (offset -23084 lines).
done
=> Verifying /data/pkgsrc/lang/erlang/patches/patch-erts_emulator_drivers_common_inet__drv.c
=> Applying pkgsrc patch /data/pkgsrc/lang/erlang/patches/patch-erts_emulator_drivers_common_inet__drv.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-erts_emulator_drivers_common_inet__drv.c,v 1.2 2015/12/29 23:34:46 dholland Exp $
|
|Unbreak build due to differences in the NetBSD SCTP implementation.
|
|--- erts/emulator/drivers/common/inet_drv.c.orig	2015-11-17 11:35:14.000000000 +0000
|+++ erts/emulator/drivers/common/inet_drv.c
--------------------------
Patching file erts/emulator/drivers/common/inet_drv.c using Plan A...
Hunk #1 succeeded at 449 (offset -118 lines).
done
=> Verifying /data/pkgsrc/lang/erlang/patches/patch-erts_emulator_sys_common_erl__mmap.h
=> Applying pkgsrc patch /data/pkgsrc/lang/erlang/patches/patch-erts_emulator_sys_common_erl__mmap.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD$
|
|--- erts/emulator/sys/common/erl_mmap.h.orig	2016-12-17 13:51:48.689272593 +0000
|+++ erts/emulator/sys/common/erl_mmap.h
--------------------------
Patching file erts/emulator/sys/common/erl_mmap.h using Plan A...
Hunk #1 failed at 87.
1 out of 1 hunks failed--saving rejects to erts/emulator/sys/common/erl_mmap.h.rej
done
Patch /data/pkgsrc/lang/erlang/patches/patch-erts_emulator_sys_common_erl__mmap.h failed
=> Verifying /data/pkgsrc/lang/erlang/patches/patch-erts_emulator_sys_unix_sys__uds.c
=> Applying pkgsrc patch /data/pkgsrc/lang/erlang/patches/patch-erts_emulator_sys_unix_sys__uds.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-erts_emulator_sys_unix_sys__uds.c,v 1.1 2018/07/03 11:01:21 fhajny Exp $
|
|Fix SunOS/C99.
|
|--- erts/emulator/sys/unix/sys_uds.c.orig	2018-06-19 07:07:55.000000000 +0000
|+++ erts/emulator/sys/unix/sys_uds.c
--------------------------
Patching file erts/emulator/sys/unix/sys_uds.c using Plan A...
Hunk #1 succeeded at 23.
done
=> Verifying /data/pkgsrc/lang/erlang/patches/patch-erts_etc_unix_run__erl.c
=> Applying pkgsrc patch /data/pkgsrc/lang/erlang/patches/patch-erts_etc_unix_run__erl.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-erts_etc_unix_run__erl.c,v 1.1 2018/01/29 16:54:38 jperkin Exp $
|
|Fix SunOS/C99.
|
|--- erts/etc/unix/run_erl.c.orig	2017-12-11 20:10:59.000000000 +0000
|+++ erts/etc/unix/run_erl.c
--------------------------
Patching file erts/etc/unix/run_erl.c using Plan A...
Hunk #1 succeeded at 41.
done
=> Verifying /data/pkgsrc/lang/erlang/patches/patch-erts_lib__src_common_erl__printf.c
=> Applying pkgsrc patch /data/pkgsrc/lang/erlang/patches/patch-erts_lib__src_common_erl__printf.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-erts_lib__src_common_erl__printf.c,v 1.1 2018/07/03 11:01:21 fhajny Exp $
|
|Unlock putc_unlocked in stdio.h.
|
|--- erts/lib_src/common/erl_printf.c.orig	2018-06-19 07:07:55.000000000 +0000
|+++ erts/lib_src/common/erl_printf.c
--------------------------
Patching file erts/lib_src/common/erl_printf.c using Plan A...
Hunk #1 succeeded at 27.
done
=> Verifying /data/pkgsrc/lang/erlang/patches/patch-lib_crypto_c__src_Makefile.in
=> Applying pkgsrc patch /data/pkgsrc/lang/erlang/patches/patch-lib_crypto_c__src_Makefile.in
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-lib_crypto_c__src_Makefile.in,v 1.1 2017/10/04 16:20:51 jperkin Exp $
|
|Compile via CC wrapper to ensure correct flags.
|
|--- lib/crypto/c_src/Makefile.in.orig	2017-06-20 18:56:09.000000000 +0000
|+++ lib/crypto/c_src/Makefile.in
--------------------------
Patching file lib/crypto/c_src/Makefile.in using Plan A...
Hunk #1 succeeded at 172 (offset 16 lines).
done
=> Verifying /data/pkgsrc/lang/erlang/patches/patch-make_output.mk.in
=> Applying pkgsrc patch /data/pkgsrc/lang/erlang/patches/patch-make_output.mk.in
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-make_output.mk.in,v 1.1 2016/07/07 15:07:36 jperkin Exp $
|
|Use CC for linking.
|
|--- make/output.mk.in.orig	2015-12-17 20:11:20.000000000 +0000
|+++ make/output.mk.in
--------------------------
Patching file make/output.mk.in using Plan A...
Hunk #1 succeeded at 97.
done
ERROR: Patching failed due to modified or broken patch file(s):
ERROR: 	/data/pkgsrc/lang/erlang/patches/patch-erts_emulator_sys_common_erl__mmap.h
ERROR: ==========================================================================
ERROR:
ERROR: Some of the selected build options and/or local patches may be incompatible.
ERROR: Please try building with fewer options or patches.
ERROR:
ERROR: ==========================================================================
*** Error code 1

Stop.
make[1]: stopped in /data/pkgsrc/lang/erlang
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/lang/erlang