+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pkcs11-helper-1.27.0nb8/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pkcs11-helper-1.27.0nb8/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for pkcs11-helper-1.27.0nb8
/bin/make  all-recursive
make[1]: Entering directory `/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0'
Making all in man
make[2]: Entering directory `/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/man'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/man'
Making all in include
make[2]: Entering directory `/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/include'
Making all in pkcs11-helper-1.0
make[3]: Entering directory `/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/include/pkcs11-helper-1.0'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/include/pkcs11-helper-1.0'
make[3]: Entering directory `/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/include'
make[2]: Leaving directory `/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/include'
Making all in lib
make[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
/bin/make  all-am
make[3]: Entering directory `/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/lib'
/bin/bash ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/usr/pkg/include  -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/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/usr/pkg/include -MT pkcs11h-mem.lo -MD -MP -MF .deps/pkcs11h-mem.Tpo -c -o pkcs11h-mem.lo pkcs11h-mem.c
/bin/bash ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/usr/pkg/include  -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/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/usr/pkg/include -MT pkcs11h-sys.lo -MD -MP -MF .deps/pkcs11h-sys.Tpo -c -o pkcs11h-sys.lo pkcs11h-sys.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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:2: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
  usleep (usec);
  ^
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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-mem.Tpo .deps/pkcs11h-mem.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/usr/pkg/include  -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/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/usr/pkg/include -MT pkcs11h-crypto.lo -MD -MP -MF .deps/pkcs11h-crypto.Tpo -c -o pkcs11h-crypto.lo pkcs11h-crypto.c
mv -f .deps/pkcs11h-sys.Tpo .deps/pkcs11h-sys.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/usr/pkg/include  -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/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/usr/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:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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
/bin/bash ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/usr/pkg/include  -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/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/usr/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:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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
/bin/bash ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/usr/pkg/include  -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/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/usr/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:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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
/bin/bash ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/usr/pkg/include  -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/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/usr/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:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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
/bin/bash ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/usr/pkg/include  -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/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/usr/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:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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
mv -f .deps/_pkcs11h-crypto-mbedtls.Tpo .deps/_pkcs11h-crypto-mbedtls.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/usr/pkg/include  -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/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/usr/pkg/include -MT pkcs11h-threading.lo -MD -MP -MF .deps/pkcs11h-threading.Tpo -c -o pkcs11h-threading.lo pkcs11h-threading.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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
/bin/bash ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I../include -I../include -I/usr/pkg/include  -pipe -O2 -D_FORTIFY_SOURCE=2 -I/usr/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/usr/pkg/include -MT pkcs11h-util.lo -MD -MP -MF .deps/pkcs11h-util.Tpo -c -o pkcs11h-util.lo pkcs11h-util.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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_threading_condWait':
pkcs11h-threading.c:434:19: error: storage size of 'timeout' isn't known
   struct timespec timeout;
                   ^
pkcs11h-threading.c:434:19: warning: unused variable 'timeout' [-Wunused-variable]
pkcs11h-threading.c: In function '___pkcs11h_thread_start':
pkcs11h-threading.c:495:2: warning: implicit declaration of function 'sigemptyset' [-Wimplicit-function-declaration]
  sigemptyset (&signal_mask);
  ^
pkcs11h-threading.c:497:3: warning: implicit declaration of function 'sigaddset' [-Wimplicit-function-declaration]
   sigaddset (&signal_mask, i);
   ^
pkcs11h-threading.c:499:2: warning: implicit declaration of function 'pthread_sigmask' [-Wimplicit-function-declaration]
  pthread_sigmask (SIG_SETMASK, &signal_mask, NULL);
  ^
pkcs11h-threading.c:499:19: error: 'SIG_SETMASK' undeclared (first use in this function)
  pthread_sigmask (SIG_SETMASK, &signal_mask, NULL);
                   ^
pkcs11h-threading.c:499:19: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [pkcs11h-threading.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/home/pbulk/build/security/pkcs11-helper/work/.buildlink/include -pipe -O2 -D_FORTIFY_SOURCE=2 -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
make[3]: Leaving directory `/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pbulk/build/security/pkcs11-helper/work/pkcs11-helper-1.27.0'
make: *** [all] Error 2
*** Error code 2

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

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