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

	openct pcsc-lite

The currently selected options are:

	pcsc-lite

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

	PKG_OPTIONS.opensc (not defined)

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

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

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

        * READLINE_TYPE = editline
        * 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 libtool-base>=2.4.2nb9: found libtool-base-2.4.6nb1
=> Tool dependency automake>=1.10: found automake-1.15.1nb1
=> Tool dependency autoconf>=2.60: found autoconf-2.69nb8
=> Tool dependency gmake>=3.81: found gmake-4.2.1nb1
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.4.1nb1
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency docbook-xsl-[0-9]*: found docbook-xsl-1.79.1nb3
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency pcsc-lite>=1.6.5: found pcsc-lite-1.8.20
=> Full dependency libxslt>=1.1.28nb2: found libxslt-1.1.32nb1
===> Overriding tools for opensc-0.16.0
===> Extracting for opensc-0.16.0
===> Patching for opensc-0.16.0
=> Applying pkgsrc patches for opensc-0.16.0
=> Verifying /data/pkgsrc/security/opensc/patches/patch-aa
=> Applying pkgsrc patch /data/pkgsrc/security/opensc/patches/patch-aa
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-aa,v 1.6 2016/08/04 13:08:25 mef Exp $
|
|Disable installation of config file, because pkgsrc installs config
|files as examples.
|
|--- etc/Makefile.am.orig	2016-05-31 16:36:09.000000000 +0900
|+++ etc/Makefile.am	2016-08-04 21:48:05.000000000 +0900
--------------------------
Patching file etc/Makefile.am using Plan A...
Hunk #1 succeeded at 28.
done
=> Verifying /data/pkgsrc/security/opensc/patches/patch-ab
=> Applying pkgsrc patch /data/pkgsrc/security/opensc/patches/patch-ab
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ab,v 1.5 2015/09/07 19:59:42 gdt Exp $
|
|This patch was added 2009-09-10 by hasso@, with comment:
|  More userfriendly default configuration.
|
|--- etc/opensc.conf.in.orig	2015-05-16 20:30:24.000000000 +0000
|+++ etc/opensc.conf.in
--------------------------
Patching file etc/opensc.conf.in using Plan A...
Hunk #1 succeeded at 514 (offset 63 lines).
done
=> Verifying /data/pkgsrc/security/opensc/patches/patch-configure.ac
=> Applying pkgsrc patch /data/pkgsrc/security/opensc/patches/patch-configure.ac
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-configure.ac,v 1.3 2016/08/04 13:08:25 mef Exp $
|
|This hunk has been in pkgsrc for a long time; it needs a comment!
|
|--- configure.ac.orig	2016-06-04 08:22:08.000000000 +0900
|+++ configure.ac	2016-08-04 21:50:22.000000000 +0900
--------------------------
Patching file configure.ac using Plan A...
Hunk #1 succeeded at 384.
done
=> Verifying /data/pkgsrc/security/opensc/patches/patch-doc_tools_Makefile.am
=> Applying pkgsrc patch /data/pkgsrc/security/opensc/patches/patch-doc_tools_Makefile.am
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-doc_tools_Makefile.am,v 1.1 2015/09/07 20:00:09 gdt Exp $
|
|These files are interpreted as config files by the pkgsrc framework,
|and there's no agreed-upon place to put them.  For now, just skip
|installing them.  Not reported upstream.
|
|--- doc/tools/Makefile.am.orig	2015-05-16 20:30:24.000000000 +0000
|+++ doc/tools/Makefile.am
--------------------------
Patching file doc/tools/Makefile.am using Plan A...
Hunk #1 succeeded at 12 (offset 2 lines).
done
=> Verifying /data/pkgsrc/security/opensc/patches/patch-src_common_compat__getopt.h
=> Applying pkgsrc patch /data/pkgsrc/security/opensc/patches/patch-src_common_compat__getopt.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_common_compat__getopt.h,v 1.3 2015/09/07 19:59:42 gdt Exp $
|
|NetBSD has getopt_long but not getopt_long_only.  Replacing
|getopt_long causes a type conflict with the built-in implementation.
|The replacement is unnecesssary because getopt_long_only is not
|actually used.
|
|Reported upstream:
|http://article.gmane.org/gmane.comp.encryption.opensc.user/5931
|
|The following is the original mail archive URL, but it currently
|yields a '404 not found' error:
|https://www.opensc-project.org/pipermail/opensc-devel/2012-November/018668.html
|
|--- src/common/compat_getopt.h.orig	2015-05-16 20:30:24.000000000 +0000
|+++ src/common/compat_getopt.h
--------------------------
Patching file src/common/compat_getopt.h using Plan A...
Hunk #1 succeeded at 30.
Hunk #2 succeeded at 43.
Hunk #3 succeeded at 85.
done
=> Verifying /data/pkgsrc/security/opensc/patches/patch-src_common_compat__getopt__main.c
=> Applying pkgsrc patch /data/pkgsrc/security/opensc/patches/patch-src_common_compat__getopt__main.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_common_compat__getopt__main.c,v 1.3 2015/09/07 19:59:42 gdt Exp $
|
|See comment in patch-src_common_compat__getopt.h.  In addition, a
|kludge is added here to get the test file to build, pending a new
|release from upstream with the issue properly addressed.
|
|--- src/common/compat_getopt_main.c.orig	2015-05-16 20:30:24.000000000 +0000
|+++ src/common/compat_getopt_main.c
--------------------------
Patching file src/common/compat_getopt_main.c using Plan A...
Hunk #1 succeeded at 173.
done
=> Verifying /data/pkgsrc/security/opensc/patches/patch-src_libopensc_log.c
=> Applying pkgsrc patch /data/pkgsrc/security/opensc/patches/patch-src_libopensc_log.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_libopensc_log.c,v 1.3 2016/08/04 13:08:25 mef Exp $
|
|--- src/libopensc/log.c.orig	2016-05-31 16:36:09.000000000 +0900
|+++ src/libopensc/log.c	2016-08-04 21:52:53.000000000 +0900
--------------------------
Patching file src/libopensc/log.c using Plan A...
Hunk #1 succeeded at 91.
done
===> Creating toolchain wrappers for opensc-0.16.0
===> Configuring for opensc-0.16.0
cd /data/scratch/security/opensc/work/opensc-0.16.0 &&  ./bootstrap  -s   -r 
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
libtoolize: Remember to add 'LT_INIT' to configure.ac.
autoreconf: running: /usr/pkg/bin/autoconf --force
autoreconf: running: /usr/pkg/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:58: installing './compile'
configure.ac:28: installing './missing'
src/common/Makefile.am: installing './depcomp'
autoreconf: Leaving directory `.'
=> Generating pkg-config files for builtin xz 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 portability problems in extracted files
checking for a BSD-compatible install... /usr/bin/install -c -o pbulkXXX -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 build system type... x86_64--netbsd
checking host system type... x86_64--netbsd
checking for x86_64--netbsd-gcc... clang
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 clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking whether clang understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of clang... gcc3
checking whether we are using the GNU C++ compiler... no
checking whether clang++ accepts -g... no
checking dependency style of clang++... none
checking pkg-config is at least version 0.9.0... yes
checking how to run the C preprocessor... clang -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 whether byte ordering is bigendian... no
checking how to run the C preprocessor... clang -E
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking whether make sets $(MAKE)... (cached) yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by clang... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... (cached) 262144
checking how to convert x86_64--netbsd file names to x86_64--netbsd format... func_convert_file_noop
checking how to convert x86_64--netbsd file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for x86_64--netbsd-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so|_pic\.a)$
checking for x86_64--netbsd-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64--netbsd-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for x86_64--netbsd-strip... no
checking for strip... strip
checking for x86_64--netbsd-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from clang object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for x86_64--netbsd-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fPIC -DPIC
checking if clang PIC flag -fPIC -DPIC works... yes
checking if clang static flag -static works... yes
checking if clang supports -c -o file.o... rm: conftest*: No such file or directory
yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... rm: conftest*: No such file or directory
no
checking dynamic linker characteristics... NetBSD ld.elf_so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... clang-cpp
checking whether the clang++ linker (/usr/bin/ld) supports shared libraries... PKGSRC-WARNING: Something is trying to run the c++ compiler,
PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the package Makefile.
yes
libtool.m4: error: problem compiling CXX test program
checking for clang++ option to produce PIC...  -DPIC
checking if clang++ PIC flag  -DPIC works... no
checking if clang++ static flag  works... no
checking if clang++ supports -c -o file.o... rm: conftest*: No such file or directory
no
checking if clang++ supports -c -o file.o... (cached) no
checking whether the clang++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... PKGSRC-WARNING: Something is trying to run the c++ compiler,
PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the package Makefile.
NetBSD ld.elf_so
checking how to hardcode library paths into programs... unsupported
checking for x86_64--netbsd-windres... no
checking for windres... no
checking for xsltproc... xsltproc
checking for git... no
checking xsl-stylesheets... /usr/pkg/share/xsl/docbook
checking git checkout... no
checking for inline... inline
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether to enable assertions... 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 for stdlib.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for error_at_line... no
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 getpass... yes
checking for gettimeofday... yes
checking for memset... yes
checking for mkdir... yes
checking for strdup... yes
checking for strerror... yes
checking for getopt_long... yes
checking for getopt_long_only... no
checking for strlcpy... yes
checking for strlcat... yes
checking for strnlen... yes
checking size of void *... 8
checking for socket in -lsocket... no
checking for library containing dlopen... none required
checking for inflate in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for readline in -lreadline... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking for OPENSSL... yes
checking openssl/crypto.h usability... yes
checking openssl/crypto.h presence... yes
checking for openssl/crypto.h... yes
checking for PCSC... yes
checking winscard.h usability... yes
checking winscard.h presence... no
configure: WARNING: winscard.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: winscard.h: proceeding with the compiler's result
checking for winscard.h... yes
checking pcsclite.h usability... yes
checking pcsclite.h presence... no
configure: WARNING: pcsclite.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: pcsclite.h: proceeding with the compiler's result
checking for pcsclite.h... yes
checking XSLTPROC requirement... ok
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating doc/tools/Makefile
config.status: creating etc/Makefile
config.status: creating src/Makefile
config.status: creating src/common/Makefile
config.status: creating src/libopensc/Makefile
config.status: creating src/libopensc/libopensc.pc
config.status: creating src/libsm/Makefile
config.status: creating src/pkcs11/Makefile
config.status: creating src/pkcs11/versioninfo-pkcs11.rc
config.status: creating src/pkcs11/versioninfo-pkcs11-spy.rc
config.status: creating src/pkcs15init/Makefile
config.status: creating src/scconf/Makefile
config.status: creating src/tests/Makefile
config.status: creating src/tests/regression/Makefile
config.status: creating src/tools/Makefile
config.status: creating src/tools/versioninfo-tools.rc
config.status: creating src/smm/Makefile
config.status: creating src/minidriver/Makefile
config.status: creating src/minidriver/versioninfo-minidriver.rc
config.status: creating src/minidriver/opensc-minidriver.inf
config.status: creating win32/Makefile
config.status: creating win32/versioninfo.rc
config.status: creating win32/versioninfo-customactions.rc
config.status: creating win32/winconfig.h
config.status: creating win32/OpenSC.iss
config.status: creating win32/OpenSC.wxs
config.status: creating MacOSX/Makefile
config.status: creating MacOSX/build-package
config.status: creating MacOSX/Distribution.xml
config.status: creating MacOSX/resources/ReadMe.html
config.status: creating MacOSX/resources/Welcome.html
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
rm: libtoolT: No such file or directory

OpenSC has been configured with the following options:


Version:                 0.16.0
Version fix:             0
Version revision:        0
Git revision:            No Git revision info available

Copyright:               OpenSC Project
Company:                 OpenSC Project
Company URL:             https://github.com/OpenSC
Comments:                Provided under the terms of the GNU Lesser General Public License (LGPLv2.1+).
Product name:            OpenSC smartcard framework
Product updates:         https://github.com/OpenSC/OpenSC/releases
Product URL:             https://github.com/OpenSC/OpenSC

User binaries:           /usr/pkg/bin
Configuration files:     /usr/pkg/etc
XSL stylesheets:         /usr/pkg/share/xsl/docbook

man support:             yes
doc support:             no
thread locking support:  yes
zlib support:            yes
readline support:        yes
OpenSSL support:         yes
PC/SC support:           yes
OpenCT support:          no
CT-API support:          no
minidriver support:      no
SM support:              yes
SM default module:       libsmm-local.so
DNIe UI support:         no
Debug file:              /tmp/opensc-debug.log

PC/SC default provider:  /usr/pkg/lib/libpcsclite.so
PKCS11 default provider: opensc-pkcs11.so

Host:                    x86_64--netbsd
Compiler:                clang
Preprocessor flags:      -I/usr/pkg/include -I/usr/include -DPKCS11_THREAD_LOCKING
Compiler flags:          -fno-strict-aliasing -O2 -I/usr/pkg/include -I/usr/include -Wall -Wextra -Wno-unused-parameter -Werror=declaration-after-statement
Linker flags:            -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib
Libraries:               

READLINE_CFLAGS:         
READLINE_LIBS:           -lreadline 
ZLIB_CFLAGS:             
ZLIB_LIBS:               -lz
OPENSSL_CFLAGS:          
OPENSSL_LIBS:            -lcrypto 
OPENCT_CFLAGS:           
OPENCT_LIBS:             
PCSC_CFLAGS:             -I/usr/pkg/include/PCSC

=> Modifying libtool scripts to use pkgsrc libtool
=> Modifying libtool scripts to use pkgsrc depcomp
WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.