=> Bootstrap dependency digest>=20010302: found digest-20190127
===> 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'.
===> Building for opensc-0.20.0
/usr/pkg/bin/gmake  all-recursive
gmake[1]: Entering directory '/data/scratch/security/opensc/work/OpenSC-0.20.0'
Making all in etc
gmake[2]: Entering directory '/data/scratch/security/opensc/work/OpenSC-0.20.0/etc'
gmake[2]: Leaving directory '/data/scratch/security/opensc/work/OpenSC-0.20.0/etc'
Making all in src
gmake[2]: Entering directory '/data/scratch/security/opensc/work/OpenSC-0.20.0/src'
Making all in common
gmake[3]: Entering directory '/data/scratch/security/opensc/work/OpenSC-0.20.0/src/common'
  CC       compat_getopt_main.o
  CC       compat_dummy.lo
  CC       compat_strlcat.lo
  CC       compat_strlcpy.lo
  CC       compat_strnlen.lo
  CC       compat_getpass.lo
  CC       compat_getopt.lo
  CC       compat_report_rangecheckfailure.lo
compat_getopt_main.c:102:22: error: array subscript is of type 'char' [-Werror,-Wchar-subscripts]
                rc = toupper(rc);
                     ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper'
#define toupper(c)      ((int)((_toupper_tab_ + 1)[(c)]))
                                                  ^~~~
1 error generated.
gmake[3]: *** [Makefile:537: compat_getopt_main.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: Leaving directory '/data/scratch/security/opensc/work/OpenSC-0.20.0/src/common'
gmake[2]: *** [Makefile:440: all-recursive] Error 1
gmake[2]: Leaving directory '/data/scratch/security/opensc/work/OpenSC-0.20.0/src'
gmake[1]: *** [Makefile:562: all-recursive] Error 1
gmake[1]: Leaving directory '/data/scratch/security/opensc/work/OpenSC-0.20.0'
gmake: *** [Makefile:471: all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /data/pkgsrc/security/opensc
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/security/opensc