=> 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'.
===> Building for pkcs11-helper-1.10nb8
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /data/scratch/security/pkcs11-helper/work/pkcs11-helper-1.10/missing --run autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
/usr/pkg/bin/gmake  all-recursive
gmake[1]: Entering directory '/data/scratch/security/pkcs11-helper/work/pkcs11-helper-1.10'
Making all in man
gmake[2]: Entering directory '/data/scratch/security/pkcs11-helper/work/pkcs11-helper-1.10/man'
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory '/data/scratch/security/pkcs11-helper/work/pkcs11-helper-1.10/man'
Making all in include
gmake[2]: Entering directory '/data/scratch/security/pkcs11-helper/work/pkcs11-helper-1.10/include'
Making all in pkcs11-helper-1.0
gmake[3]: Entering directory '/data/scratch/security/pkcs11-helper/work/pkcs11-helper-1.10/include/pkcs11-helper-1.0'
gmake[3]: Nothing to be done for 'all'.
gmake[3]: Leaving directory '/data/scratch/security/pkcs11-helper/work/pkcs11-helper-1.10/include/pkcs11-helper-1.0'
gmake[3]: Entering directory '/data/scratch/security/pkcs11-helper/work/pkcs11-helper-1.10/include'
gmake[3]: Nothing to be done for 'all-am'.
gmake[3]: Leaving directory '/data/scratch/security/pkcs11-helper/work/pkcs11-helper-1.10/include'
gmake[2]: Leaving directory '/data/scratch/security/pkcs11-helper/work/pkcs11-helper-1.10/include'
Making all in lib
gmake[2]: Entering directory '/data/scratch/security/pkcs11-helper/work/pkcs11-helper-1.10/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
/usr/pkg/bin/gmake  all-am
gmake[3]: Entering directory '/data/scratch/security/pkcs11-helper/work/pkcs11-helper-1.10/lib'
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-mem.lo -MD -MP -MF .deps/pkcs11h-mem.Tpo -c -o pkcs11h-mem.lo pkcs11h-mem.c
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-sys.lo -MD -MP -MF .deps/pkcs11h-sys.Tpo -c -o pkcs11h-sys.lo pkcs11h-sys.c
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-crypto.lo -MD -MP -MF .deps/pkcs11h-crypto.Tpo -c -o pkcs11h-crypto.lo pkcs11h-crypto.c
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT _pkcs11h-crypto-openssl.lo -MD -MP -MF .deps/_pkcs11h-crypto-openssl.Tpo -c -o _pkcs11h-crypto-openssl.lo _pkcs11h-crypto-openssl.c
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT _pkcs11h-crypto-nss.lo -MD -MP -MF .deps/_pkcs11h-crypto-nss.Tpo -c -o _pkcs11h-crypto-nss.lo _pkcs11h-crypto-nss.c
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT _pkcs11h-crypto-gnutls.lo -MD -MP -MF .deps/_pkcs11h-crypto-gnutls.Tpo -c -o _pkcs11h-crypto-gnutls.lo _pkcs11h-crypto-gnutls.c
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT _pkcs11h-crypto-polarssl.lo -MD -MP -MF .deps/_pkcs11h-crypto-polarssl.Tpo -c -o _pkcs11h-crypto-polarssl.lo _pkcs11h-crypto-polarssl.c
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT _pkcs11h-crypto-cryptoapi.lo -MD -MP -MF .deps/_pkcs11h-crypto-cryptoapi.Tpo -c -o _pkcs11h-crypto-cryptoapi.lo _pkcs11h-crypto-cryptoapi.c
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-threading.lo -MD -MP -MF .deps/pkcs11h-threading.Tpo -c -o pkcs11h-threading.lo pkcs11h-threading.c
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-util.lo -MD -MP -MF .deps/pkcs11h-util.Tpo -c -o pkcs11h-util.lo pkcs11h-util.c
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-session.lo -MD -MP -MF .deps/pkcs11h-session.Tpo -c -o pkcs11h-session.lo pkcs11h-session.c
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-token.lo -MD -MP -MF .deps/pkcs11h-token.Tpo -c -o pkcs11h-token.lo pkcs11h-token.c
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-certificate.lo -MD -MP -MF .deps/pkcs11h-certificate.Tpo -c -o pkcs11h-certificate.lo pkcs11h-certificate.c
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-slotevent.lo -MD -MP -MF .deps/pkcs11h-slotevent.Tpo -c -o pkcs11h-slotevent.lo pkcs11h-slotevent.c
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-core.lo -MD -MP -MF .deps/pkcs11h-core.Tpo -c -o pkcs11h-core.lo pkcs11h-core.c
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-data.lo -MD -MP -MF .deps/pkcs11h-data.Tpo -c -o pkcs11h-data.lo pkcs11h-data.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-crypto.lo -MD -MP -MF .deps/pkcs11h-crypto.Tpo -c pkcs11h-crypto.c  -fPIC -DPIC -o .libs/pkcs11h-crypto.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-sys.lo -MD -MP -MF .deps/pkcs11h-sys.Tpo -c pkcs11h-sys.c  -fPIC -DPIC -o .libs/pkcs11h-sys.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -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:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-slotevent.lo -MD -MP -MF .deps/pkcs11h-slotevent.Tpo -c pkcs11h-slotevent.c  -fPIC -DPIC -o .libs/pkcs11h-slotevent.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-core.lo -MD -MP -MF .deps/pkcs11h-core.Tpo -c pkcs11h-core.c  -fPIC -DPIC -o .libs/pkcs11h-core.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -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:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-data.lo -MD -MP -MF .deps/pkcs11h-data.Tpo -c pkcs11h-data.c  -fPIC -DPIC -o .libs/pkcs11h-data.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-mem.lo -MD -MP -MF .deps/pkcs11h-mem.Tpo -c pkcs11h-mem.c  -fPIC -DPIC -o .libs/pkcs11h-mem.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT _pkcs11h-crypto-polarssl.lo -MD -MP -MF .deps/_pkcs11h-crypto-polarssl.Tpo -c _pkcs11h-crypto-polarssl.c  -fPIC -DPIC -o .libs/_pkcs11h-crypto-polarssl.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-session.lo -MD -MP -MF .deps/pkcs11h-session.Tpo -c pkcs11h-session.c  -fPIC -DPIC -o .libs/pkcs11h-session.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-certificate.lo -MD -MP -MF .deps/pkcs11h-certificate.Tpo -c pkcs11h-certificate.c  -fPIC -DPIC -o .libs/pkcs11h-certificate.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-token.lo -MD -MP -MF .deps/pkcs11h-token.Tpo -c pkcs11h-token.c  -fPIC -DPIC -o .libs/pkcs11h-token.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -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:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-util.lo -MD -MP -MF .deps/pkcs11h-util.Tpo -c pkcs11h-util.c  -fPIC -DPIC -o .libs/pkcs11h-util.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-threading.lo -MD -MP -MF .deps/pkcs11h-threading.Tpo -c pkcs11h-threading.c  -fPIC -DPIC -o .libs/pkcs11h-threading.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -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
pkcs11h-sys.c:74:2: warning: implicit declaration of function 'usleep' [-Wimplicit-function-declaration]
        usleep (usec);
        ^
pkcs11h-sys.c:82:9: warning: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration]
        return gettimeofday (tv, NULL);
               ^
In file included from pkcs11h-session.c:58:
In file included from ./_pkcs11h-token.h:56:
./_pkcs11h-core.h:80:30: warning: variadic macros are a C99 feature [-Wvariadic-macros]
# define _PKCS11H_LOG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                             ^
./_pkcs11h-core.h:82:33: warning: variadic macros are a C99 feature [-Wvariadic-macros]
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                ^
pkcs11h-session.c:791:15: warning: initializer for aggregate is not a compile-time constant [-Wc99-extensions]
                {CKA_CLASS, (void *)&class, sizeof (class)},
                            ^~~~~~~~~~~~~~
pkcs11h-session.c:807:3: warning: format specifies type 'void *' but the argument has type 'CK_BYTE_PTR' (aka 'unsigned char *') [-Wformat-pedantic]
                id,
                ^~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -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
2 warnings generated.
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-sys.lo -MD -MP -MF .deps/pkcs11h-sys.Tpo -c pkcs11h-sys.c -o pkcs11h-sys.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-util.lo -MD -MP -MF .deps/pkcs11h-util.Tpo -c pkcs11h-util.c -o pkcs11h-util.o >/dev/null 2>&1
In file included from pkcs11h-data.c:56:
In file included from ./_pkcs11h-session.h:56:
./_pkcs11h-core.h:80:30: warning: variadic macros are a C99 feature [-Wvariadic-macros]
# define _PKCS11H_LOG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                             ^
./_pkcs11h-core.h:82:33: warning: variadic macros are a C99 feature [-Wvariadic-macros]
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                ^
pkcs11h-data.c:70:15: warning: initializer for aggregate is not a compile-time constant [-Wc99-extensions]
                {CKA_CLASS, (void *)&class, sizeof (class)},
                            ^~~~~~~~~~~~~~
pkcs11h-data.c:176:3: warning: format specifies type 'void *' but the argument has type 'unsigned char *' [-Wformat-pedantic]
                blob,
                ^~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
In file included from pkcs11h-slotevent.c:57:
In file included from ./_pkcs11h-session.h:56:
./_pkcs11h-core.h:80:30: warning: variadic macros are a C99 feature [-Wvariadic-macros]
# define _PKCS11H_LOG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                             ^
./_pkcs11h-core.h:82:33: warning: variadic macros are a C99 feature [-Wvariadic-macros]
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                ^
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -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
pkcs11h-data.c:308:15: warning: initializer for aggregate is not a compile-time constant [-Wc99-extensions]
                {CKA_CLASS, &class, sizeof (class)},
                            ^~~~~~
pkcs11h-data.c:342:3: warning: format specifies type 'void *' but the argument has type 'unsigned char *' [-Wformat-pedantic]
                blob,
                ^~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-data.c:644:16: warning: initializer for aggregate is not a compile-time constant [-Wc99-extensions]
                        {CKA_CLASS, (void *)&class, sizeof (class)}
                                    ^~~~~~~~~~~~~~
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -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
4 warnings generated.
In file included from pkcs11h-certificate.c:61:
In file included from ./_pkcs11h-session.h:56:
./_pkcs11h-core.h:80:30: warning: variadic macros are a C99 feature [-Wvariadic-macros]
# define _PKCS11H_LOG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                             ^
./_pkcs11h-core.h:82:33: warning: variadic macros are a C99 feature [-Wvariadic-macros]
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                ^
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-session.lo -MD -MP -MF .deps/pkcs11h-session.Tpo -c pkcs11h-session.c -o pkcs11h-session.o >/dev/null 2>&1
pkcs11h-certificate.c:125:3: warning: format specifies type 'void *' but the argument has type 'const unsigned char *' [-Wformat-pedantic]
                current,
                ^~~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:127:3: warning: format specifies type 'void *' but the argument has type 'const unsigned char *' [-Wformat-pedantic]
                newone,
                ^~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:236:15: warning: initializer for aggregate is not a compile-time constant [-Wc99-extensions]
                {CKA_CLASS, &cert_filter_class, sizeof (cert_filter_class)},
                            ^~~~~~~~~~~~~~~~~~
pkcs11h-certificate.c:791:3: warning: initializer for aggregate is not a compile-time constant [-Wc99-extensions]
                mech_type, NULL, 0
                ^~~~~~~~~
pkcs11h-certificate.c:799:15: warning: initializer for aggregate is not a compile-time constant [-Wc99-extensions]
                {CKA_CLASS, &class, sizeof (class)}, 
                            ^~~~~~
pkcs11h-certificate.c:805:15: warning: initializer for aggregate is not a compile-time constant [-Wc99-extensions]
                {CKA_VALUE, target, 0}
                            ^~~~~~
pkcs11h-certificate.c:826:3: warning: format specifies type 'void *' but the argument has type 'const unsigned char *' [-Wformat-pedantic]
                source,
                ^~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:828:3: warning: format specifies type 'void *' but the argument has type 'unsigned char *' [-Wformat-pedantic]
                target,
                ^~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:1323:3: warning: format specifies type 'void *' but the argument has type 'const unsigned char *' [-Wformat-pedantic]
                source,
                ^~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:1325:3: warning: format specifies type 'void *' but the argument has type 'unsigned char *' [-Wformat-pedantic]
                target,
                ^~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:1385:3: warning: format specifies type 'void *' but the argument has type 'const unsigned char *' [-Wformat-pedantic]
                source,
                ^~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:1387:3: warning: format specifies type 'void *' but the argument has type 'unsigned char *' [-Wformat-pedantic]
                target,
                ^~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:1447:3: warning: format specifies type 'void *' but the argument has type 'const unsigned char *' [-Wformat-pedantic]
                source,
                ^~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:1449:3: warning: format specifies type 'void *' but the argument has type 'unsigned char *' [-Wformat-pedantic]
                target,
                ^~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:1509:3: warning: format specifies type 'void *' but the argument has type 'const unsigned char *' [-Wformat-pedantic]
                source,
                ^~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:1511:3: warning: format specifies type 'void *' but the argument has type 'unsigned char *' [-Wformat-pedantic]
                target,
                ^~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:1572:3: warning: format specifies type 'void *' but the argument has type 'const unsigned char *' [-Wformat-pedantic]
                source,
                ^~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:1574:3: warning: format specifies type 'void *' but the argument has type 'unsigned char *' [-Wformat-pedantic]
                target,
                ^~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:1687:3: warning: format specifies type 'void *' but the argument has type 'const unsigned char *' [-Wformat-pedantic]
                source,
                ^~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:1689:3: warning: format specifies type 'void *' but the argument has type 'unsigned char *' [-Wformat-pedantic]
                target,
                ^~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:2009:3: warning: format specifies type 'void *' but the argument has type 'unsigned char *' [-Wformat-pedantic]
                certificate_blob,
                ^~~~~~~~~~~~~~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-certificate.c:2347:16: warning: initializer for aggregate is not a compile-time constant [-Wc99-extensions]
                        {CKA_CLASS, &cert_filter_class, sizeof (cert_filter_class)}
                                    ^~~~~~~~~~~~~~~~~~
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT _pkcs11h-crypto-polarssl.lo -MD -MP -MF .deps/_pkcs11h-crypto-polarssl.Tpo -c _pkcs11h-crypto-polarssl.c -o _pkcs11h-crypto-polarssl.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -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
7 warnings generated.
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-data.lo -MD -MP -MF .deps/pkcs11h-data.Tpo -c pkcs11h-data.c -o pkcs11h-data.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-crypto.lo -MD -MP -MF .deps/pkcs11h-crypto.Tpo -c pkcs11h-crypto.c -o pkcs11h-crypto.o >/dev/null 2>&1
In file included from pkcs11h-token.c:56:
In file included from ./_pkcs11h-session.h:56:
./_pkcs11h-core.h:80:30: warning: variadic macros are a C99 feature [-Wvariadic-macros]
# define _PKCS11H_LOG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                             ^
./_pkcs11h-core.h:82:33: warning: variadic macros are a C99 feature [-Wvariadic-macros]
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                ^
pkcs11h-threading.c:500:2: warning: implicit declaration of function 'pthread_sigmask' [-Wimplicit-function-declaration]
        pthread_sigmask (SIG_SETMASK, &signal_mask, NULL);
        ^
In file included from pkcs11h-core.c:66:
./_pkcs11h-core.h:80:30: warning: variadic macros are a C99 feature [-Wvariadic-macros]
# define _PKCS11H_LOG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                             ^
./_pkcs11h-core.h:82:33: warning: variadic macros are a C99 feature [-Wvariadic-macros]
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                ^
2 warnings generated.
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-slotevent.lo -MD -MP -MF .deps/pkcs11h-slotevent.Tpo -c pkcs11h-slotevent.c -o pkcs11h-slotevent.o >/dev/null 2>&1
1 warning generated.
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-threading.lo -MD -MP -MF .deps/pkcs11h-threading.Tpo -c pkcs11h-threading.c -o pkcs11h-threading.o >/dev/null 2>&1
24 warnings generated.
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -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:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-certificate.lo -MD -MP -MF .deps/pkcs11h-certificate.Tpo -c pkcs11h-certificate.c -o pkcs11h-certificate.o >/dev/null 2>&1
2 warnings generated.
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -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-crypto-gnutls.Tpo .deps/_pkcs11h-crypto-gnutls.Plo
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-serialization.lo -MD -MP -MF .deps/pkcs11h-serialization.Tpo -c -o pkcs11h-serialization.lo pkcs11h-serialization.c
2 warnings generated.
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-core.lo -MD -MP -MF .deps/pkcs11h-core.Tpo -c pkcs11h-core.c -o pkcs11h-core.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-serialization.lo -MD -MP -MF .deps/pkcs11h-serialization.Tpo -c pkcs11h-serialization.c  -fPIC -DPIC -o .libs/pkcs11h-serialization.o
mv -f .deps/_pkcs11h-crypto-cryptoapi.Tpo .deps/_pkcs11h-crypto-cryptoapi.Plo
/bin/sh ../libtool --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I.. -I../include -I../include  -I/usr/include  -O2 -I/usr/include  -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-openssl.lo -MD -MP -MF .deps/pkcs11h-openssl.Tpo -c -o pkcs11h-openssl.lo pkcs11h-openssl.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -MT pkcs11h-openssl.lo -MD -MP -MF .deps/pkcs11h-openssl.Tpo -c pkcs11h-openssl.c  -fPIC -DPIC -o .libs/pkcs11h-openssl.o
mv -f .deps/pkcs11h-sys.Tpo .deps/pkcs11h-sys.Plo
mv -f .deps/_pkcs11h-crypto-nss.Tpo .deps/_pkcs11h-crypto-nss.Plo
mv -f .deps/pkcs11h-util.Tpo .deps/pkcs11h-util.Plo
mv -f .deps/_pkcs11h-crypto-polarssl.Tpo .deps/_pkcs11h-crypto-polarssl.Plo
mv -f .deps/pkcs11h-crypto.Tpo .deps/pkcs11h-crypto.Plo
mv -f .deps/_pkcs11h-crypto-openssl.Tpo .deps/_pkcs11h-crypto-openssl.Plo
mv -f .deps/pkcs11h-data.Tpo .deps/pkcs11h-data.Plo
mv -f .deps/pkcs11h-session.Tpo .deps/pkcs11h-session.Plo
In file included from pkcs11h-serialization.c:54:
./_pkcs11h-core.h:80:30: warning: variadic macros are a C99 feature [-Wvariadic-macros]
# define _PKCS11H_LOG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                             ^
./_pkcs11h-core.h:82:33: warning: variadic macros are a C99 feature [-Wvariadic-macros]
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                ^
pkcs11h-serialization.c:90:3: warning: format specifies type 'void *' but the argument has type 'char *' [-Wformat-pedantic]
                sz,
                ^~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-serialization.c:309:3: warning: format specifies type 'void *' but the argument has type 'char *' [-Wformat-pedantic]
                sz,
                ^~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
mv -f .deps/pkcs11h-slotevent.Tpo .deps/pkcs11h-slotevent.Plo
mv -f .deps/pkcs11h-mem.Tpo .deps/pkcs11h-mem.Plo
mv -f .deps/pkcs11h-threading.Tpo .deps/pkcs11h-threading.Plo
4 warnings generated.
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../include -O2 -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function -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-token.Tpo .deps/pkcs11h-token.Plo
In file included from pkcs11h-openssl.c:57:
./_pkcs11h-core.h:80:30: warning: variadic macros are a C99 feature [-Wvariadic-macros]
# define _PKCS11H_LOG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                             ^
./_pkcs11h-core.h:82:33: warning: variadic macros are a C99 feature [-Wvariadic-macros]
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                ^
pkcs11h-openssl.c:76:13: error: field has incomplete type 'RSA_METHOD' (aka 'struct rsa_meth_st')
        RSA_METHOD smart_rsa;
                   ^
/usr/include/openssl/ossl_typ.h:111:16: note: forward declaration of 'struct rsa_meth_st'
typedef struct rsa_meth_st RSA_METHOD;
               ^
pkcs11h-openssl.c:204:3: warning: format specifies type 'void *' but the argument has type 'const unsigned char *' [-Wformat-pedantic]
                from,
                ^~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-openssl.c:205:3: warning: format specifies type 'void *' but the argument has type 'unsigned char *' [-Wformat-pedantic]
                to,
                ^~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-openssl.c:304:3: warning: format specifies type 'void *' but the argument has type 'const unsigned char *' [-Wformat-pedantic]
                from,
                ^~~~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-openssl.c:305:3: warning: format specifies type 'void *' but the argument has type 'unsigned char *' [-Wformat-pedantic]
                to,
                ^~
./_pkcs11h-core.h:82:102: note: expanded from macro '_PKCS11H_DEBUG'
#  define _PKCS11H_DEBUG(flags, ...) do { if (__PKCS11H_MSG_LEVEL_TEST(flags)) _pkcs11h_log((flags), __VA_ARGS__); } while (FALSE)
                                                                                                     ^~~~~~~~~~~
pkcs11h-openssl.c:509:45: error: invalid application of 'sizeof' to an incomplete type 'RSA_METHOD' (aka 'struct rsa_meth_st')
        memmove (&openssl_session->smart_rsa, def, sizeof(RSA_METHOD));
                                                   ^     ~~~~~~~~~~~~
/usr/include/openssl/ossl_typ.h:111:16: note: forward declaration of 'struct rsa_meth_st'
typedef struct rsa_meth_st RSA_METHOD;
               ^
pkcs11h-openssl.c:511:36: error: incomplete definition of type 'struct rsa_meth_st'
        openssl_session->orig_finish = def->finish;
                                       ~~~^
/usr/include/openssl/ossl_typ.h:111:16: note: forward declaration of 'struct rsa_meth_st'
typedef struct rsa_meth_st RSA_METHOD;
               ^
pkcs11h-openssl.c:628:12: error: incomplete definition of type 'struct evp_pkey_st'
        if (pubkey->type != EVP_PKEY_RSA) {
            ~~~~~~^
/usr/include/openssl/ossl_typ.h:93:16: note: forward declaration of 'struct evp_pkey_st'
typedef struct evp_pkey_st EVP_PKEY;
               ^
pkcs11h-openssl.c:653:5: error: incomplete definition of type 'struct rsa_st'
        rsa->flags |= RSA_FLAG_SIGN_VER;
        ~~~^
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
typedef struct rsa_st RSA;
               ^
pkcs11h-openssl.c:653:16: error: use of undeclared identifier 'RSA_FLAG_SIGN_VER'
        rsa->flags |= RSA_FLAG_SIGN_VER;
                      ^
6 warnings and 6 errors generated.
Makefile:476: recipe for target 'pkcs11h-openssl.lo' failed
gmake[3]: *** [pkcs11h-openssl.lo] Error 1
gmake[3]: *** Waiting for unfinished jobs....
mv -f .deps/pkcs11h-core.Tpo .deps/pkcs11h-core.Plo
mv -f .deps/pkcs11h-serialization.Tpo .deps/pkcs11h-serialization.Plo
mv -f .deps/pkcs11h-certificate.Tpo .deps/pkcs11h-certificate.Plo
gmake[3]: Leaving directory '/data/scratch/security/pkcs11-helper/work/pkcs11-helper-1.10/lib'
Makefile:364: recipe for target 'all' failed
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory '/data/scratch/security/pkcs11-helper/work/pkcs11-helper-1.10/lib'
Makefile:440: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/data/scratch/security/pkcs11-helper/work/pkcs11-helper-1.10'
Makefile:347: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

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

Stop.
make: stopped in /data/pkgsrc/security/pkcs11-helper