clang -DHAVE_CONFIG_H -DDEF_LOG_DIR=\"/home/charlotte/pkg/pkgdb\" -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DDEF_UMASK=0022 -I/home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/bzip2 -I/home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/libarchive -I/home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch -I/home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work -DHAVE_NBCOMPAT_H=1 -I/home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat -I/usr/include -I. -I. -DSYSCONFDIR=\"/home/charlotte/pkg/etc\" -DPREFIX=\"\" -DHAVE_SSL -O2 -I/usr/include -c gpgsig.c clang -DHAVE_CONFIG_H -DDEF_LOG_DIR=\"/home/charlotte/pkg/pkgdb\" -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DDEF_UMASK=0022 -I/home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/bzip2 -I/home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/libarchive -I/home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch -I/home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work -DHAVE_NBCOMPAT_H=1 -I/home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat -I/usr/include -I. -I. -DSYSCONFDIR=\"/home/charlotte/pkg/etc\" -DPREFIX=\"\" -DHAVE_SSL -O2 -I/usr/include -c pkg_signature.c clang -DHAVE_CONFIG_H -DDEF_LOG_DIR=\"/home/charlotte/pkg/pkgdb\" -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DDEF_UMASK=0022 -I/home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/bzip2 -I/home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libarchive/libarchive -I/home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libfetch -I/home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work -DHAVE_NBCOMPAT_H=1 -I/home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/libnbcompat -I/usr/include -I. -I. -DSYSCONFDIR=\"/home/charlotte/pkg/etc\" -DPREFIX=\"\" -DHAVE_SSL -O2 -I/usr/include -c pkcs7.c pkcs7.c:176:8: error: incomplete definition of type 'struct x509_st' if (X509_get_extended_key_usage(sk_X509_value(signers, i)) != pkg_key_usage) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pkcs7.c:60:41: note: expanded from macro 'X509_get_extended_key_usage' #define X509_get_extended_key_usage(x) x->ex_xkusage ~^ /usr/include/openssl/ossl_typ.h:131:16: note: forward declaration of 'struct x509_st' typedef struct x509_st X509; ^ pkcs7.c:182:8: error: incomplete definition of type 'struct x509_st' if (X509_get_extension_flags(sk_X509_value(signers, i)) & EXFLAG_XKUSAGE) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pkcs7.c:61:38: note: expanded from macro 'X509_get_extension_flags' #define X509_get_extension_flags(x) x->ex_flags ~^ /usr/include/openssl/ossl_typ.h:131:16: note: forward declaration of 'struct x509_st' typedef struct x509_st X509; ^ pkcs7.c:267:6: error: incomplete definition of type 'struct x509_st' if (X509_get_extended_key_usage(certificate) != pkg_key_usage) { ^ ~~~~~~~~~~~ pkcs7.c:60:41: note: expanded from macro 'X509_get_extended_key_usage' #define X509_get_extended_key_usage(x) x->ex_xkusage ~^ /usr/include/openssl/ossl_typ.h:131:16: note: forward declaration of 'struct x509_st' typedef struct x509_st X509; ^ 3 errors generated. *** [pkcs7.o] Error code 1 bmake[1]: stopped in /home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/pkg_install-20211115/lib 1 error bmake[1]: stopped in /home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/pkg_install-20211115/lib *** [all] Error code 1 bmake: stopped in /home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/pkg_install-20211115 1 error bmake: stopped in /home/charlotte/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/pkg_install-20211115 *** Error code 2 Stop. bmake[1]: stopped in /home/charlotte/pkgsrc/pkgtools/pkg_install *** Error code 1 Stop. bmake: stopped in /home/charlotte/pkgsrc/pkgtools/pkg_install ===> exited with status 1 aborted.