+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pkcs11-helper-1.27.0nb10/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pkcs11-helper-1.27.0nb10/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for pkcs11-helper-1.27.0nb10
/opt/pkg/bin/gmake  all-recursive
gmake[1]: Entering directory '/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0'
Making all in man
gmake[2]: Entering directory '/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/man'
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory '/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/man'
Making all in include
gmake[2]: Entering directory '/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/include'
Making all in pkcs11-helper-1.0
gmake[3]: Entering directory '/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/include/pkcs11-helper-1.0'
gmake[3]: Nothing to be done for 'all'.
gmake[3]: Leaving directory '/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/include/pkcs11-helper-1.0'
gmake[3]: Entering directory '/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/include'
gmake[3]: Nothing to be done for 'all-am'.
gmake[3]: Leaving directory '/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/include'
gmake[2]: Leaving directory '/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/include'
Making all in lib
gmake[2]: Entering directory '/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/lib'
cat "./core.exports" > pkcs11-helper.exports
cat "./certificate.exports" >> pkcs11-helper.exports
cat "./data.exports" >> pkcs11-helper.exports
cat "./openssl.exports" >> pkcs11-helper.exports
cat "./slotevent.exports" >> pkcs11-helper.exports
cat "./token.exports" >> pkcs11-helper.exports
/opt/pkg/bin/gmake  all-am
gmake[3]: Entering directory '/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/lib'
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT pkcs11h-mem.lo -MD -MP -MF .deps/pkcs11h-mem.Tpo -c -o pkcs11h-mem.lo pkcs11h-mem.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-mem.lo -MD -MP -MF .deps/pkcs11h-mem.Tpo -c pkcs11h-mem.c  -fPIC -DPIC -o .libs/pkcs11h-mem.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-mem.lo -MD -MP -MF .deps/pkcs11h-mem.Tpo -c pkcs11h-mem.c -o pkcs11h-mem.o >/dev/null 2>&1
mv -f .deps/pkcs11h-mem.Tpo .deps/pkcs11h-mem.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT pkcs11h-sys.lo -MD -MP -MF .deps/pkcs11h-sys.Tpo -c -o pkcs11h-sys.lo pkcs11h-sys.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-sys.lo -MD -MP -MF .deps/pkcs11h-sys.Tpo -c pkcs11h-sys.c  -fPIC -DPIC -o .libs/pkcs11h-sys.o
pkcs11h-sys.c: In function '__mysleep':
pkcs11h-sys.c:73:9: warning: implicit declaration of function 'usleep'; did you mean 'sleep'? [-Wimplicit-function-declaration]
   73 |         usleep (usec);
      |         ^~~~~~
      |         sleep
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-sys.lo -MD -MP -MF .deps/pkcs11h-sys.Tpo -c pkcs11h-sys.c -o pkcs11h-sys.o >/dev/null 2>&1
mv -f .deps/pkcs11h-sys.Tpo .deps/pkcs11h-sys.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT pkcs11h-crypto.lo -MD -MP -MF .deps/pkcs11h-crypto.Tpo -c -o pkcs11h-crypto.lo pkcs11h-crypto.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-crypto.lo -MD -MP -MF .deps/pkcs11h-crypto.Tpo -c pkcs11h-crypto.c  -fPIC -DPIC -o .libs/pkcs11h-crypto.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-crypto.lo -MD -MP -MF .deps/pkcs11h-crypto.Tpo -c pkcs11h-crypto.c -o pkcs11h-crypto.o >/dev/null 2>&1
mv -f .deps/pkcs11h-crypto.Tpo .deps/pkcs11h-crypto.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT _pkcs11h-crypto-openssl.lo -MD -MP -MF .deps/_pkcs11h-crypto-openssl.Tpo -c -o _pkcs11h-crypto-openssl.lo _pkcs11h-crypto-openssl.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT _pkcs11h-crypto-openssl.lo -MD -MP -MF .deps/_pkcs11h-crypto-openssl.Tpo -c _pkcs11h-crypto-openssl.c  -fPIC -DPIC -o .libs/_pkcs11h-crypto-openssl.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT _pkcs11h-crypto-openssl.lo -MD -MP -MF .deps/_pkcs11h-crypto-openssl.Tpo -c _pkcs11h-crypto-openssl.c -o _pkcs11h-crypto-openssl.o >/dev/null 2>&1
mv -f .deps/_pkcs11h-crypto-openssl.Tpo .deps/_pkcs11h-crypto-openssl.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT _pkcs11h-crypto-nss.lo -MD -MP -MF .deps/_pkcs11h-crypto-nss.Tpo -c -o _pkcs11h-crypto-nss.lo _pkcs11h-crypto-nss.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT _pkcs11h-crypto-nss.lo -MD -MP -MF .deps/_pkcs11h-crypto-nss.Tpo -c _pkcs11h-crypto-nss.c  -fPIC -DPIC -o .libs/_pkcs11h-crypto-nss.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT _pkcs11h-crypto-nss.lo -MD -MP -MF .deps/_pkcs11h-crypto-nss.Tpo -c _pkcs11h-crypto-nss.c -o _pkcs11h-crypto-nss.o >/dev/null 2>&1
mv -f .deps/_pkcs11h-crypto-nss.Tpo .deps/_pkcs11h-crypto-nss.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT _pkcs11h-crypto-gnutls.lo -MD -MP -MF .deps/_pkcs11h-crypto-gnutls.Tpo -c -o _pkcs11h-crypto-gnutls.lo _pkcs11h-crypto-gnutls.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT _pkcs11h-crypto-gnutls.lo -MD -MP -MF .deps/_pkcs11h-crypto-gnutls.Tpo -c _pkcs11h-crypto-gnutls.c  -fPIC -DPIC -o .libs/_pkcs11h-crypto-gnutls.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT _pkcs11h-crypto-gnutls.lo -MD -MP -MF .deps/_pkcs11h-crypto-gnutls.Tpo -c _pkcs11h-crypto-gnutls.c -o _pkcs11h-crypto-gnutls.o >/dev/null 2>&1
mv -f .deps/_pkcs11h-crypto-gnutls.Tpo .deps/_pkcs11h-crypto-gnutls.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT _pkcs11h-crypto-mbedtls.lo -MD -MP -MF .deps/_pkcs11h-crypto-mbedtls.Tpo -c -o _pkcs11h-crypto-mbedtls.lo _pkcs11h-crypto-mbedtls.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT _pkcs11h-crypto-mbedtls.lo -MD -MP -MF .deps/_pkcs11h-crypto-mbedtls.Tpo -c _pkcs11h-crypto-mbedtls.c  -fPIC -DPIC -o .libs/_pkcs11h-crypto-mbedtls.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT _pkcs11h-crypto-mbedtls.lo -MD -MP -MF .deps/_pkcs11h-crypto-mbedtls.Tpo -c _pkcs11h-crypto-mbedtls.c -o _pkcs11h-crypto-mbedtls.o >/dev/null 2>&1
mv -f .deps/_pkcs11h-crypto-mbedtls.Tpo .deps/_pkcs11h-crypto-mbedtls.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT _pkcs11h-crypto-cryptoapi.lo -MD -MP -MF .deps/_pkcs11h-crypto-cryptoapi.Tpo -c -o _pkcs11h-crypto-cryptoapi.lo _pkcs11h-crypto-cryptoapi.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT _pkcs11h-crypto-cryptoapi.lo -MD -MP -MF .deps/_pkcs11h-crypto-cryptoapi.Tpo -c _pkcs11h-crypto-cryptoapi.c  -fPIC -DPIC -o .libs/_pkcs11h-crypto-cryptoapi.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT _pkcs11h-crypto-cryptoapi.lo -MD -MP -MF .deps/_pkcs11h-crypto-cryptoapi.Tpo -c _pkcs11h-crypto-cryptoapi.c -o _pkcs11h-crypto-cryptoapi.o >/dev/null 2>&1
mv -f .deps/_pkcs11h-crypto-cryptoapi.Tpo .deps/_pkcs11h-crypto-cryptoapi.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT pkcs11h-threading.lo -MD -MP -MF .deps/pkcs11h-threading.Tpo -c -o pkcs11h-threading.lo pkcs11h-threading.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-threading.lo -MD -MP -MF .deps/pkcs11h-threading.Tpo -c pkcs11h-threading.c  -fPIC -DPIC -o .libs/pkcs11h-threading.o
pkcs11h-threading.c: In function '___pkcs11h_thread_start':
pkcs11h-threading.c:495:9: warning: implicit declaration of function 'sigemptyset' [-Wimplicit-function-declaration]
  495 |         sigemptyset (&signal_mask);
      |         ^~~~~~~~~~~
pkcs11h-threading.c:497:17: warning: implicit declaration of function 'sigaddset' [-Wimplicit-function-declaration]
  497 |                 sigaddset (&signal_mask, i);
      |                 ^~~~~~~~~
pkcs11h-threading.c:499:9: warning: implicit declaration of function 'pthread_sigmask'; did you mean 'pthread_spin_lock'? [-Wimplicit-function-declaration]
  499 |         pthread_sigmask (SIG_SETMASK, &signal_mask, NULL);
      |         ^~~~~~~~~~~~~~~
      |         pthread_spin_lock
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-threading.lo -MD -MP -MF .deps/pkcs11h-threading.Tpo -c pkcs11h-threading.c -o pkcs11h-threading.o >/dev/null 2>&1
mv -f .deps/pkcs11h-threading.Tpo .deps/pkcs11h-threading.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT pkcs11h-util.lo -MD -MP -MF .deps/pkcs11h-util.Tpo -c -o pkcs11h-util.lo pkcs11h-util.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-util.lo -MD -MP -MF .deps/pkcs11h-util.Tpo -c pkcs11h-util.c  -fPIC -DPIC -o .libs/pkcs11h-util.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-util.lo -MD -MP -MF .deps/pkcs11h-util.Tpo -c pkcs11h-util.c -o pkcs11h-util.o >/dev/null 2>&1
mv -f .deps/pkcs11h-util.Tpo .deps/pkcs11h-util.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT pkcs11h-session.lo -MD -MP -MF .deps/pkcs11h-session.Tpo -c -o pkcs11h-session.lo pkcs11h-session.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-session.lo -MD -MP -MF .deps/pkcs11h-session.Tpo -c pkcs11h-session.c  -fPIC -DPIC -o .libs/pkcs11h-session.o
pkcs11h-session.c: In function '_pkcs11h_session_getObjectById':
pkcs11h-session.c:790:29: warning: initializer element is not computable at load time [-Wpedantic]
  790 |                 {CKA_CLASS, (void *)&class, sizeof (class)},
      |                             ^
pkcs11h-session.c:790:17: warning: initializer element is not computable at load time [-Wpedantic]
  790 |                 {CKA_CLASS, (void *)&class, sizeof (class)},
      |                 ^
pkcs11h-session.c:791:26: warning: initializer element is not computable at load time [-Wpedantic]
  791 |                 {CKA_ID, (void *)id, id_size}
      |                          ^
pkcs11h-session.c:791:38: warning: initializer element is not computable at load time [-Wpedantic]
  791 |                 {CKA_ID, (void *)id, id_size}
      |                                      ^~~~~~~
pkcs11h-session.c:791:17: warning: initializer element is not computable at load time [-Wpedantic]
  791 |                 {CKA_ID, (void *)id, id_size}
      |                 ^
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-session.lo -MD -MP -MF .deps/pkcs11h-session.Tpo -c pkcs11h-session.c -o pkcs11h-session.o >/dev/null 2>&1
mv -f .deps/pkcs11h-session.Tpo .deps/pkcs11h-session.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT pkcs11h-token.lo -MD -MP -MF .deps/pkcs11h-token.Tpo -c -o pkcs11h-token.lo pkcs11h-token.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-token.lo -MD -MP -MF .deps/pkcs11h-token.Tpo -c pkcs11h-token.c  -fPIC -DPIC -o .libs/pkcs11h-token.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-token.lo -MD -MP -MF .deps/pkcs11h-token.Tpo -c pkcs11h-token.c -o pkcs11h-token.o >/dev/null 2>&1
mv -f .deps/pkcs11h-token.Tpo .deps/pkcs11h-token.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT pkcs11h-certificate.lo -MD -MP -MF .deps/pkcs11h-certificate.Tpo -c -o pkcs11h-certificate.lo pkcs11h-certificate.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-certificate.lo -MD -MP -MF .deps/pkcs11h-certificate.Tpo -c pkcs11h-certificate.c  -fPIC -DPIC -o .libs/pkcs11h-certificate.o
pkcs11h-certificate.c: In function '__pkcs11h_certificate_loadCertificate':
pkcs11h-certificate.c:235:29: warning: initializer element is not computable at load time [-Wpedantic]
  235 |                 {CKA_CLASS, &cert_filter_class, sizeof (cert_filter_class)},
      |                             ^
pkcs11h-certificate.c:235:17: warning: initializer element is not computable at load time [-Wpedantic]
  235 |                 {CKA_CLASS, &cert_filter_class, sizeof (cert_filter_class)},
      |                 ^
pkcs11h-certificate.c: In function '__pkcs11h_certificate_doPrivateOperation':
pkcs11h-certificate.c:790:17: warning: initializer element is not computable at load time [-Wpedantic]
  790 |                 mech_type, NULL, 0
      |                 ^~~~~~~~~
pkcs11h-certificate.c:798:29: warning: initializer element is not computable at load time [-Wpedantic]
  798 |                 {CKA_CLASS, &class, sizeof (class)},
      |                             ^
pkcs11h-certificate.c:798:17: warning: initializer element is not computable at load time [-Wpedantic]
  798 |                 {CKA_CLASS, &class, sizeof (class)},
      |                 ^
pkcs11h-certificate.c:799:32: warning: initializer element is not computable at load time [-Wpedantic]
  799 |                 {CKA_KEY_TYPE, &keytype, sizeof (keytype)},
      |                                ^
pkcs11h-certificate.c:799:17: warning: initializer element is not computable at load time [-Wpedantic]
  799 |                 {CKA_KEY_TYPE, &keytype, sizeof (keytype)},
      |                 ^
pkcs11h-certificate.c:800:35: warning: initializer element is not computable at load time [-Wpedantic]
  800 |                 {CKA_EXTRACTABLE, &wrap_attrs_true, sizeof (wrap_attrs_true)}
      |                                   ^
pkcs11h-certificate.c:800:17: warning: initializer element is not computable at load time [-Wpedantic]
  800 |                 {CKA_EXTRACTABLE, &wrap_attrs_true, sizeof (wrap_attrs_true)}
      |                 ^
pkcs11h-certificate.c:804:29: warning: initializer element is not computable at load time [-Wpedantic]
  804 |                 {CKA_VALUE, target, 0}
      |                             ^~~~~~
pkcs11h-certificate.c:804:17: warning: initializer element is not computable at load time [-Wpedantic]
  804 |                 {CKA_VALUE, target, 0}
      |                 ^
pkcs11h-certificate.c: In function '_pkcs11h_certificate_enumSessionCertificates':
pkcs11h-certificate.c:2346:37: warning: initializer element is not computable at load time [-Wpedantic]
 2346 |                         {CKA_CLASS, &cert_filter_class, sizeof (cert_filter_class)}
      |                                     ^
pkcs11h-certificate.c:2346:25: warning: initializer element is not computable at load time [-Wpedantic]
 2346 |                         {CKA_CLASS, &cert_filter_class, sizeof (cert_filter_class)}
      |                         ^
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-certificate.lo -MD -MP -MF .deps/pkcs11h-certificate.Tpo -c pkcs11h-certificate.c -o pkcs11h-certificate.o >/dev/null 2>&1
mv -f .deps/pkcs11h-certificate.Tpo .deps/pkcs11h-certificate.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT pkcs11h-slotevent.lo -MD -MP -MF .deps/pkcs11h-slotevent.Tpo -c -o pkcs11h-slotevent.lo pkcs11h-slotevent.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-slotevent.lo -MD -MP -MF .deps/pkcs11h-slotevent.Tpo -c pkcs11h-slotevent.c  -fPIC -DPIC -o .libs/pkcs11h-slotevent.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-slotevent.lo -MD -MP -MF .deps/pkcs11h-slotevent.Tpo -c pkcs11h-slotevent.c -o pkcs11h-slotevent.o >/dev/null 2>&1
mv -f .deps/pkcs11h-slotevent.Tpo .deps/pkcs11h-slotevent.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT pkcs11h-core.lo -MD -MP -MF .deps/pkcs11h-core.Tpo -c -o pkcs11h-core.lo pkcs11h-core.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-core.lo -MD -MP -MF .deps/pkcs11h-core.Tpo -c pkcs11h-core.c  -fPIC -DPIC -o .libs/pkcs11h-core.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-core.lo -MD -MP -MF .deps/pkcs11h-core.Tpo -c pkcs11h-core.c -o pkcs11h-core.o >/dev/null 2>&1
mv -f .deps/pkcs11h-core.Tpo .deps/pkcs11h-core.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT pkcs11h-data.lo -MD -MP -MF .deps/pkcs11h-data.Tpo -c -o pkcs11h-data.lo pkcs11h-data.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-data.lo -MD -MP -MF .deps/pkcs11h-data.Tpo -c pkcs11h-data.c  -fPIC -DPIC -o .libs/pkcs11h-data.o
pkcs11h-data.c: In function '_pkcs11h_data_getObject':
pkcs11h-data.c:69:29: warning: initializer element is not computable at load time [-Wpedantic]
   69 |                 {CKA_CLASS, (void *)&class, sizeof (class)},
      |                             ^
pkcs11h-data.c:69:17: warning: initializer element is not computable at load time [-Wpedantic]
   69 |                 {CKA_CLASS, (void *)&class, sizeof (class)},
      |                 ^
pkcs11h-data.c:70:35: warning: initializer element is not computable at load time [-Wpedantic]
   70 |                 {CKA_APPLICATION, (void *)application, application == NULL ? 0 : strlen (application)},
      |                                   ^
pkcs11h-data.c:70:56: warning: initializer element is not computable at load time [-Wpedantic]
   70 |                 {CKA_APPLICATION, (void *)application, application == NULL ? 0 : strlen (application)},
      |                                                        ^~~~~~~~~~~
pkcs11h-data.c:70:17: warning: initializer element is not computable at load time [-Wpedantic]
   70 |                 {CKA_APPLICATION, (void *)application, application == NULL ? 0 : strlen (application)},
      |                 ^
pkcs11h-data.c:71:29: warning: initializer element is not computable at load time [-Wpedantic]
   71 |                 {CKA_LABEL, (void *)label, label == NULL ? 0 : strlen (label)}
      |                             ^
pkcs11h-data.c:71:44: warning: initializer element is not computable at load time [-Wpedantic]
   71 |                 {CKA_LABEL, (void *)label, label == NULL ? 0 : strlen (label)}
      |                                            ^~~~~
pkcs11h-data.c:71:17: warning: initializer element is not computable at load time [-Wpedantic]
   71 |                 {CKA_LABEL, (void *)label, label == NULL ? 0 : strlen (label)}
      |                 ^
pkcs11h-data.c: In function 'pkcs11h_data_put':
pkcs11h-data.c:307:29: warning: initializer element is not computable at load time [-Wpedantic]
  307 |                 {CKA_CLASS, &class, sizeof (class)},
      |                             ^
pkcs11h-data.c:307:17: warning: initializer element is not computable at load time [-Wpedantic]
  307 |                 {CKA_CLASS, &class, sizeof (class)},
      |                 ^
pkcs11h-data.c:308:29: warning: initializer element is not computable at load time [-Wpedantic]
  308 |                 {CKA_TOKEN, &ck_true, sizeof (ck_true)},
      |                             ^
pkcs11h-data.c:308:17: warning: initializer element is not computable at load time [-Wpedantic]
  308 |                 {CKA_TOKEN, &ck_true, sizeof (ck_true)},
      |                 ^
pkcs11h-data.c:309:31: warning: initializer element is not computable at load time [-Wpedantic]
  309 |                 {CKA_PRIVATE, is_public ? &ck_false : &ck_true, sizeof (CK_BBOOL)},
      |                               ^~~~~~~~~
pkcs11h-data.c:309:17: warning: initializer element is not computable at load time [-Wpedantic]
  309 |                 {CKA_PRIVATE, is_public ? &ck_false : &ck_true, sizeof (CK_BBOOL)},
      |                 ^
pkcs11h-data.c:310:35: warning: initializer element is not computable at load time [-Wpedantic]
  310 |                 {CKA_APPLICATION, (void *)application, strlen (application)},
      |                                   ^
pkcs11h-data.c:310:56: warning: initializer element is not computable at load time [-Wpedantic]
  310 |                 {CKA_APPLICATION, (void *)application, strlen (application)},
      |                                                        ^~~~~~
pkcs11h-data.c:310:17: warning: initializer element is not computable at load time [-Wpedantic]
  310 |                 {CKA_APPLICATION, (void *)application, strlen (application)},
      |                 ^
pkcs11h-data.c:311:29: warning: initializer element is not computable at load time [-Wpedantic]
  311 |                 {CKA_LABEL, (void *)label, strlen (label)},
      |                             ^
pkcs11h-data.c:311:44: warning: initializer element is not computable at load time [-Wpedantic]
  311 |                 {CKA_LABEL, (void *)label, strlen (label)},
      |                                            ^~~~~~
pkcs11h-data.c:311:17: warning: initializer element is not computable at load time [-Wpedantic]
  311 |                 {CKA_LABEL, (void *)label, strlen (label)},
      |                 ^
pkcs11h-data.c:312:29: warning: initializer element is not computable at load time [-Wpedantic]
  312 |                 {CKA_VALUE, blob, blob_size}
      |                             ^~~~
pkcs11h-data.c:312:35: warning: initializer element is not computable at load time [-Wpedantic]
  312 |                 {CKA_VALUE, blob, blob_size}
      |                                   ^~~~~~~~~
pkcs11h-data.c:312:17: warning: initializer element is not computable at load time [-Wpedantic]
  312 |                 {CKA_VALUE, blob, blob_size}
      |                 ^
pkcs11h-data.c: In function 'pkcs11h_data_enumDataObjects':
pkcs11h-data.c:643:37: warning: initializer element is not computable at load time [-Wpedantic]
  643 |                         {CKA_CLASS, (void *)&class, sizeof (class)}
      |                                     ^
pkcs11h-data.c:643:25: warning: initializer element is not computable at load time [-Wpedantic]
  643 |                         {CKA_CLASS, (void *)&class, sizeof (class)}
      |                         ^
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-data.lo -MD -MP -MF .deps/pkcs11h-data.Tpo -c pkcs11h-data.c -o pkcs11h-data.o >/dev/null 2>&1
mv -f .deps/pkcs11h-data.Tpo .deps/pkcs11h-data.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT pkcs11h-serialization.lo -MD -MP -MF .deps/pkcs11h-serialization.Tpo -c -o pkcs11h-serialization.lo pkcs11h-serialization.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-serialization.lo -MD -MP -MF .deps/pkcs11h-serialization.Tpo -c pkcs11h-serialization.c  -fPIC -DPIC -o .libs/pkcs11h-serialization.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-serialization.lo -MD -MP -MF .deps/pkcs11h-serialization.Tpo -c pkcs11h-serialization.c -o pkcs11h-serialization.o >/dev/null 2>&1
mv -f .deps/pkcs11h-serialization.Tpo .deps/pkcs11h-serialization.Plo
/usr/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/opt/pkg/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -I/opt/pkg/include -MT pkcs11h-openssl.lo -MD -MP -MF .deps/pkcs11h-openssl.Tpo -c -o pkcs11h-openssl.lo pkcs11h-openssl.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -Wno-variadic-macros -Wno-long-long -MT pkcs11h-openssl.lo -MD -MP -MF .deps/pkcs11h-openssl.Tpo -c pkcs11h-openssl.c  -fPIC -DPIC -o .libs/pkcs11h-openssl.o
pkcs11h-openssl.c: In function '__pkcs11h_openssl_rsa_get_pkcs11h_certificate':
pkcs11h-openssl.c:421:9: warning: 'RSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  421 |         session = (pkcs11h_openssl_session_t)RSA_get_ex_data (rsa, __openssl_methods.rsa_index);
      |         ^~~~~~~
In file included from /home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/x509.h:36,
                 from ../include/pkcs11-helper-1.0/pkcs11h-openssl.h:69,
                 from pkcs11h-openssl.c:55:
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/rsa.h:452:29: note: declared here
  452 | OSSL_DEPRECATEDIN_3_0 void *RSA_get_ex_data(const RSA *r, int idx);
      |                             ^~~~~~~~~~~~~~~
pkcs11h-openssl.c: In function '__pkcs11h_openssl_rsa_dec':
pkcs11h-openssl.c:477:22: error: 'RSA_SSLV23_PADDING' undeclared (first use in this function); did you mean 'RSA_PKCS1_PADDING'?
  477 |                 case RSA_SSLV23_PADDING:
      |                      ^~~~~~~~~~~~~~~~~~
      |                      RSA_PKCS1_PADDING
pkcs11h-openssl.c:477:22: note: each undeclared identifier is reported only once for each function it appears in
pkcs11h-openssl.c: In function '__pkcs11h_openssl_rsa_enc':
pkcs11h-openssl.c:586:9: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  586 |         tlen = (size_t)RSA_size(rsa);
      |         ^~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/rsa.h:210:27: note: declared here
  210 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
      |                           ^~~~~~~~
pkcs11h-openssl.c: In function '__pkcs11h_openssl_session_setRSA':
pkcs11h-openssl.c:648:17: warning: 'EVP_PKEY_get1_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  648 |                 (rsa = EVP_PKEY_get1_RSA (evp)) == NULL
      |                 ^
In file included from /home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/x509.h:29:
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/evp.h:1353:16: note: declared here
 1353 | struct rsa_st *EVP_PKEY_get1_RSA(EVP_PKEY *pkey);
      |                ^~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:654:9: warning: 'RSA_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  654 |         RSA_set_method (rsa, __openssl_methods.rsa);
      |         ^~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/rsa.h:308:27: note: declared here
  308 | OSSL_DEPRECATEDIN_3_0 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
      |                           ^~~~~~~~~~~~~~
pkcs11h-openssl.c:655:9: warning: 'RSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  655 |         RSA_set_ex_data (rsa, __openssl_methods.rsa_index, openssl_session);
      |         ^~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/rsa.h:451:27: note: declared here
  451 | OSSL_DEPRECATEDIN_3_0 int RSA_set_ex_data(RSA *r, int idx, void *arg);
      |                           ^~~~~~~~~~~~~~~
pkcs11h-openssl.c:674:17: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  674 |                 RSA_free (rsa);
      |                 ^~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/rsa.h:299:28: note: declared here
  299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
      |                            ^~~~~~~~
pkcs11h-openssl.c: In function '__pkcs11h_openssl_dsa_get_pkcs11h_certificate':
pkcs11h-openssl.c:700:9: warning: 'DSA_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  700 |         session = (pkcs11h_openssl_session_t)DSA_get_ex_data (dsa, __openssl_methods.dsa_index);
      |         ^~~~~~~
In file included from /home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/x509.h:37:
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/dsa.h:151:29: note: declared here
  151 | OSSL_DEPRECATEDIN_3_0 void *DSA_get_ex_data(const DSA *d, int idx);
      |                             ^~~~~~~~~~~~~~~
pkcs11h-openssl.c: In function '__pkcs11h_openssl_session_setDSA':
pkcs11h-openssl.c:835:17: warning: 'EVP_PKEY_get1_DSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  835 |                 (dsa = EVP_PKEY_get1_DSA (evp)) == NULL
      |                 ^
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/evp.h:1362:16: note: declared here
 1362 | struct dsa_st *EVP_PKEY_get1_DSA(EVP_PKEY *pkey);
      |                ^~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:841:9: warning: 'DSA_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  841 |         DSA_set_method (dsa, __openssl_methods.dsa);
      |         ^~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/dsa.h:127:27: note: declared here
  127 | OSSL_DEPRECATEDIN_3_0 int DSA_set_method(DSA *dsa, const DSA_METHOD *);
      |                           ^~~~~~~~~~~~~~
pkcs11h-openssl.c:842:9: warning: 'DSA_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  842 |         DSA_set_ex_data (dsa, __openssl_methods.dsa_index, openssl_session);
      |         ^~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/dsa.h:150:27: note: declared here
  150 | OSSL_DEPRECATEDIN_3_0 int DSA_set_ex_data(DSA *d, int idx, void *arg);
      |                           ^~~~~~~~~~~~~~~
pkcs11h-openssl.c:849:17: warning: 'DSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  849 |                 DSA_free (dsa);
      |                 ^~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/dsa.h:132:28: note: declared here
  132 | OSSL_DEPRECATEDIN_3_0 void DSA_free(DSA *r);
      |                            ^~~~~~~~
pkcs11h-openssl.c: In function '__pkcs11h_openssl_eckey_get_pkcs11h_certificate':
pkcs11h-openssl.c:875:9: warning: 'EC_KEY_get_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  875 |         session = (pkcs11h_openssl_session_t)EC_KEY_get_ex_data (ec, __openssl_methods.eckey_index);
      |         ^~~~~~~
In file included from /home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/x509.h:33:
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/ec.h:1087:29: note: declared here
 1087 | OSSL_DEPRECATEDIN_3_0 void *EC_KEY_get_ex_data(const EC_KEY *key, int idx);
      |                             ^~~~~~~~~~~~~~~~~~
pkcs11h-openssl.c: In function '__pkcs11h_openssl_session_setECDSA':
pkcs11h-openssl.c:1022:17: warning: 'EVP_PKEY_get1_EC_KEY' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1022 |                 (ec = EVP_PKEY_get1_EC_KEY (evp)) == NULL
      |                 ^
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/evp.h:1379:19: note: declared here
 1379 | struct ec_key_st *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey);
      |                   ^~~~~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1028:9: warning: 'EC_KEY_set_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1028 |         EC_KEY_set_method (ec, __openssl_methods.eckey);
      |         ^~~~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/ec.h:1286:27: note: declared here
 1286 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth);
      |                           ^~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1029:9: warning: 'EC_KEY_set_ex_data' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1029 |         EC_KEY_set_ex_data (ec, __openssl_methods.eckey_index, openssl_session);
      |         ^~~~~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/ec.h:1086:27: note: declared here
 1086 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_ex_data(EC_KEY *key, int idx, void *arg);
      |                           ^~~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1036:17: warning: 'EC_KEY_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1036 |                 EC_KEY_free (ec);
      |                 ^~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/ec.h:1006:28: note: declared here
 1006 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
      |                            ^~~~~~~~~~~
pkcs11h-openssl.c: In function '_pkcs11h_openssl_initialize':
pkcs11h-openssl.c:1062:17: warning: 'RSA_meth_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1062 |                 RSA_meth_free (__openssl_methods.rsa);
      |                 ^~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/rsa.h:480:28: note: declared here
  480 | OSSL_DEPRECATEDIN_3_0 void RSA_meth_free(RSA_METHOD *meth);
      |                            ^~~~~~~~~~~~~
pkcs11h-openssl.c:1064:9: warning: 'RSA_meth_dup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1064 |         if ((__openssl_methods.rsa = RSA_meth_dup (RSA_get_default_method ())) == NULL) {
      |         ^~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/rsa.h:481:35: note: declared here
  481 | OSSL_DEPRECATEDIN_3_0 RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth);
      |                                   ^~~~~~~~~~~~
pkcs11h-openssl.c:1064:9: warning: 'RSA_get_default_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1064 |         if ((__openssl_methods.rsa = RSA_meth_dup (RSA_get_default_method ())) == NULL) {
      |         ^~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/rsa.h:305:41: note: declared here
  305 | OSSL_DEPRECATEDIN_3_0 const RSA_METHOD *RSA_get_default_method(void);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1067:9: warning: 'RSA_meth_set1_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1067 |         RSA_meth_set1_name (__openssl_methods.rsa, "pkcs11h");
      |         ^~~~~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/rsa.h:483:27: note: declared here
  483 | OSSL_DEPRECATEDIN_3_0 int RSA_meth_set1_name(RSA_METHOD *meth,
      |                           ^~~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1068:9: warning: 'RSA_meth_set_priv_dec' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1068 |         RSA_meth_set_priv_dec (__openssl_methods.rsa, __pkcs11h_openssl_rsa_dec);
      |         ^~~~~~~~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/rsa.h:526:5: note: declared here
  526 | int RSA_meth_set_priv_dec(RSA_METHOD *rsa,
      |     ^~~~~~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1069:9: warning: 'RSA_meth_set_priv_enc' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1069 |         RSA_meth_set_priv_enc (__openssl_methods.rsa, __pkcs11h_openssl_rsa_enc);
      |         ^~~~~~~~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/rsa.h:516:5: note: declared here
  516 | int RSA_meth_set_priv_enc(RSA_METHOD *rsa,
      |     ^~~~~~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1070:9: warning: 'RSA_meth_set_flags' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1070 |         RSA_meth_set_flags (__openssl_methods.rsa, RSA_METHOD_FLAG_NO_CHECK | RSA_FLAG_EXT_PKEY);
      |         ^~~~~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/rsa.h:486:27: note: declared here
  486 | OSSL_DEPRECATEDIN_3_0 int RSA_meth_set_flags(RSA_METHOD *meth, int flags);
      |                           ^~~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1075:17: warning: passing argument 5 of 'CRYPTO_get_ex_new_index' from incompatible pointer type [-Wincompatible-pointer-types]
 1075 |                 __pkcs11h_openssl_ex_data_dup,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 |
      |                 int (*)(CRYPTO_EX_DATA *, const CRYPTO_EX_DATA *, void *, int,  long int,  void *) {aka int (*)(struct crypto_ex_data_st *, const struct crypto_ex_data_st *, void *, int,  long int,  void *)}
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/rsa.h:450:62: note: in definition of macro 'RSA_get_ex_new_index'
  450 |     CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_RSA, l, p, newf, dupf, freef)
      |                                                              ^~~~
In file included from /home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/buffer.h:21,
                 from /home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/x509.h:28:
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/crypto.h:246:51: note: expected 'int (*)(CRYPTO_EX_DATA *, const CRYPTO_EX_DATA *, void **, int,  long int,  void *)' {aka 'int (*)(struct crypto_ex_data_st *, const struct crypto_ex_data_st *, void **, int,  long int,  void *)'} but argument is of type 'int (*)(CRYPTO_EX_DATA *, const CRYPTO_EX_DATA *, void *, int,  long int,  void *)' {aka 'int (*)(struct crypto_ex_data_st *, const struct crypto_ex_data_st *, void *, int,  long int,  void *)'}
  246 |                                    CRYPTO_EX_dup *dup_func,
      |                                    ~~~~~~~~~~~~~~~^~~~~~~~
pkcs11h-openssl.c:1081:17: warning: 'DSA_meth_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1081 |                 DSA_meth_free (__openssl_methods.dsa);
      |                 ^~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/dsa.h:224:28: note: declared here
  224 | OSSL_DEPRECATEDIN_3_0 void DSA_meth_free(DSA_METHOD *dsam);
      |                            ^~~~~~~~~~~~~
pkcs11h-openssl.c:1083:9: warning: 'DSA_meth_dup' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1083 |         __openssl_methods.dsa = DSA_meth_dup (DSA_get_default_method ());
      |         ^~~~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/dsa.h:225:35: note: declared here
  225 | OSSL_DEPRECATEDIN_3_0 DSA_METHOD *DSA_meth_dup(const DSA_METHOD *dsam);
      |                                   ^~~~~~~~~~~~
pkcs11h-openssl.c:1083:9: warning: 'DSA_get_default_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1083 |         __openssl_methods.dsa = DSA_meth_dup (DSA_get_default_method ());
      |         ^~~~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/dsa.h:126:41: note: declared here
  126 | OSSL_DEPRECATEDIN_3_0 const DSA_METHOD *DSA_get_default_method(void);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1084:9: warning: 'DSA_meth_set1_name' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1084 |         DSA_meth_set1_name (__openssl_methods.dsa, "pkcs11h");
      |         ^~~~~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/dsa.h:227:27: note: declared here
  227 | OSSL_DEPRECATEDIN_3_0 int DSA_meth_set1_name(DSA_METHOD *dsam,
      |                           ^~~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1085:9: warning: 'DSA_meth_set_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1085 |         DSA_meth_set_sign (__openssl_methods.dsa, __pkcs11h_openssl_dsa_do_sign);
      |         ^~~~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/dsa.h:236:27: note: declared here
  236 | OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_sign(DSA_METHOD *dsam,
      |                           ^~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1090:17: warning: passing argument 5 of 'CRYPTO_get_ex_new_index' from incompatible pointer type [-Wincompatible-pointer-types]
 1090 |                 __pkcs11h_openssl_ex_data_dup,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 |
      |                 int (*)(CRYPTO_EX_DATA *, const CRYPTO_EX_DATA *, void *, int,  long int,  void *) {aka int (*)(struct crypto_ex_data_st *, const struct crypto_ex_data_st *, void *, int,  long int,  void *)}
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/dsa.h:149:66: note: in definition of macro 'DSA_get_ex_new_index'
  149 |         CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DSA, l, p, newf, dupf, freef)
      |                                                                  ^~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/crypto.h:246:51: note: expected 'int (*)(CRYPTO_EX_DATA *, const CRYPTO_EX_DATA *, void **, int,  long int,  void *)' {aka 'int (*)(struct crypto_ex_data_st *, const struct crypto_ex_data_st *, void **, int,  long int,  void *)'} but argument is of type 'int (*)(CRYPTO_EX_DATA *, const CRYPTO_EX_DATA *, void *, int,  long int,  void *)' {aka 'int (*)(struct crypto_ex_data_st *, const struct crypto_ex_data_st *, void *, int,  long int,  void *)'}
  246 |                                    CRYPTO_EX_dup *dup_func,
      |                                    ~~~~~~~~~~~~~~~^~~~~~~~
pkcs11h-openssl.c:1096:17: warning: 'EC_KEY_METHOD_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1096 |                 EC_KEY_METHOD_free(__openssl_methods.eckey);
      |                 ^~~~~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/ec.h:1465:28: note: declared here
 1465 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_free(EC_KEY_METHOD *meth);
      |                            ^~~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1098:9: warning: 'EC_KEY_METHOD_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1098 |         __openssl_methods.eckey = EC_KEY_METHOD_new (EC_KEY_get_default_method ());
      |         ^~~~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/ec.h:1464:38: note: declared here
 1464 | OSSL_DEPRECATEDIN_3_0 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth);
      |                                      ^~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1098:9: warning: 'EC_KEY_get_default_method' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1098 |         __openssl_methods.eckey = EC_KEY_METHOD_new (EC_KEY_get_default_method ());
      |         ^~~~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/ec.h:1283:44: note: declared here
 1283 | OSSL_DEPRECATEDIN_3_0 const EC_KEY_METHOD *EC_KEY_get_default_method(void);
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1111:17: warning: 'EC_KEY_METHOD_get_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1111 |                 EC_KEY_METHOD_get_sign(__openssl_methods.eckey, &sig, NULL, NULL);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/ec.h:1527:28: note: declared here
 1527 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_get_sign
      |                            ^~~~~~~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1112:17: warning: 'EC_KEY_METHOD_set_sign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1112 |                 EC_KEY_METHOD_set_sign(__openssl_methods.eckey, sig, NULL, __pkcs11h_openssl_eckey_do_sign);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/ec.h:1483:28: note: declared here
 1483 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_set_sign
      |                            ^~~~~~~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1118:17: warning: passing argument 5 of 'CRYPTO_get_ex_new_index' from incompatible pointer type [-Wincompatible-pointer-types]
 1118 |                 __pkcs11h_openssl_ex_data_dup,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 |
      |                 int (*)(CRYPTO_EX_DATA *, const CRYPTO_EX_DATA *, void *, int,  long int,  void *) {aka int (*)(struct crypto_ex_data_st *, const struct crypto_ex_data_st *, void *, int,  long int,  void *)}
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/ec.h:1083:65: note: in definition of macro 'EC_KEY_get_ex_new_index'
 1083 |     CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_EC_KEY, l, p, newf, dupf, freef)
      |                                                                 ^~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/crypto.h:246:51: note: expected 'int (*)(CRYPTO_EX_DATA *, const CRYPTO_EX_DATA *, void **, int,  long int,  void *)' {aka 'int (*)(struct crypto_ex_data_st *, const struct crypto_ex_data_st *, void **, int,  long int,  void *)'} but argument is of type 'int (*)(CRYPTO_EX_DATA *, const CRYPTO_EX_DATA *, void *, int,  long int,  void *)' {aka 'int (*)(struct crypto_ex_data_st *, const struct crypto_ex_data_st *, void *, int,  long int,  void *)'}
  246 |                                    CRYPTO_EX_dup *dup_func,
      |                                    ~~~~~~~~~~~~~~~^~~~~~~~
pkcs11h-openssl.c: In function '_pkcs11h_openssl_terminate':
pkcs11h-openssl.c:1141:17: warning: 'RSA_meth_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1141 |                 RSA_meth_free (__openssl_methods.rsa);
      |                 ^~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/rsa.h:480:28: note: declared here
  480 | OSSL_DEPRECATEDIN_3_0 void RSA_meth_free(RSA_METHOD *meth);
      |                            ^~~~~~~~~~~~~
pkcs11h-openssl.c:1147:17: warning: 'DSA_meth_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1147 |                 DSA_meth_free (__openssl_methods.dsa);
      |                 ^~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/dsa.h:224:28: note: declared here
  224 | OSSL_DEPRECATEDIN_3_0 void DSA_meth_free(DSA_METHOD *dsam);
      |                            ^~~~~~~~~~~~~
pkcs11h-openssl.c:1153:17: warning: 'EC_KEY_METHOD_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1153 |                 EC_KEY_METHOD_free(__openssl_methods.eckey);
      |                 ^~~~~~~~~~~~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/ec.h:1465:28: note: declared here
 1465 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_METHOD_free(EC_KEY_METHOD *meth);
      |                            ^~~~~~~~~~~~~~~~~~
pkcs11h-openssl.c: In function 'pkcs11h_openssl_session_getRSA':
pkcs11h-openssl.c:1395:17: warning: 'EVP_PKEY_get1_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1395 |                 (rsa = EVP_PKEY_get1_RSA (evp)) == NULL
      |                 ^
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/evp.h:1353:16: note: declared here
 1353 | struct rsa_st *EVP_PKEY_get1_RSA(EVP_PKEY *pkey);
      |                ^~~~~~~~~~~~~~~~~
pkcs11h-openssl.c:1411:17: warning: 'RSA_free' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1411 |                 RSA_free (rsa);
      |                 ^~~~~~~~
/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include/openssl/rsa.h:299:28: note: declared here
  299 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
      |                            ^~~~~~~~
gmake[3]: *** [Makefile:613: pkcs11h-openssl.lo] Error 1
gmake[3]: Leaving directory '/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/lib'
gmake[2]: *** [Makefile:491: all] Error 2
gmake[2]: Leaving directory '/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/lib'
gmake[1]: *** [Makefile:546: all-recursive] Error 1
gmake[1]: Leaving directory '/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0'
gmake: *** [Makefile:455: all] Error 2
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/security/pkcs11-helper
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/security/pkcs11-helper