=> Building security/openssl_tpm_engine Started : Monday, 29 JUL 2019 at 21:43:03 UTC Platform: 5.7-DEVELOPMENT DragonFly v5.7.0.83.g49866-DEVELOPMENT #40: Sun Jun 30 03:00:04 PDT 2019 root@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 -------------------------------------------------- -- Environment -------------------------------------------------- UNAME_r=5.6-SYNTH UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=DragonFly 5.6-SYNTH UNAME_s=DragonFly PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SSL_NO_VERIFY_PEER=1 TERM=dumb PKG_CACHEDIR=/var/cache/pkg8 PKG_DBDIR=/var/db/pkg8 PORTSDIR=/xports LANG=C HOME=/root USER=root -------------------------------------------------- -- Options -------------------------------------------------- ===> The following configuration options are available for openssl_tpm_engine-0.5.0_2: EXAMPLES=on: Build and/or install examples ===> Use 'make config' to modify these settings -------------------------------------------------- -- CONFIGURE_ENV -------------------------------------------------- MAKE=gmake PKG_CONFIG=pkgconf XDG_DATA_HOME=/construction/security/openssl_tpm_engine XDG_CONFIG_HOME=/construction/security/openssl_tpm_engine HOME=/construction/security/openssl_tpm_engine TMPDIR="/tmp" PATH=/construction/security/openssl_tpm_engine/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc80 CMAKE_PREFIX_PATH="/usr/local" CONFIG_SITE=/xports/Templates/config.site lt_cv_sys_max_cmd_len=262144 -------------------------------------------------- -- CONFIGURE_ARGS -------------------------------------------------- --with-openssl="/usr/local" --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} -------------------------------------------------- -- MAKE_ENV -------------------------------------------------- OPENSSLBASE=/usr/local OPENSSLDIR=/usr/local/openssl OPENSSLINC=/usr/local/include OPENSSLLIB=/usr/local/lib OPENSSLRPATH=/usr/local/lib XDG_DATA_HOME=/construction/security/openssl_tpm_engine XDG_CONFIG_HOME=/construction/security/openssl_tpm_engine HOME=/construction/security/openssl_tpm_engine TMPDIR="/tmp" PATH=/construction/security/openssl_tpm_engine/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -isystem /usr/local/include -fno-strict-aliasing " CPP="cpp" CPPFLAGS="-isystem /usr/local/include" LDFLAGS=" -Wl,-rpath,/usr/local/lib " LIBS="-L/usr/local/lib" CXX="c++" CXXFLAGS=" -pipe -O2 -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" -------------------------------------------------- -- MAKE_ARGS -------------------------------------------------- DESTDIR=/construction/security/openssl_tpm_engine/stage -------------------------------------------------- -- PLIST_SUB -------------------------------------------------- PORTEXAMPLES="" OSREL=5.6 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/openssl_tpm_engine" EXAMPLESDIR="share/examples/openssl_tpm_engine" DATADIR="share/openssl_tpm_engine" WWWDIR="www/openssl_tpm_engine" ETCDIR="etc/openssl_tpm_engine" -------------------------------------------------- -- SUB_LIST -------------------------------------------------- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/openssl_tpm_engine DOCSDIR=/usr/local/share/doc/openssl_tpm_engine EXAMPLESDIR=/usr/local/share/examples/openssl_tpm_engine WWWDIR=/usr/local/www/openssl_tpm_engine ETCDIR=/usr/local/etc/openssl_tpm_engine -------------------------------------------------- -- /etc/make.conf -------------------------------------------------- SYNTHPROFILE=Release-5.6 USE_PACKAGE_DEPENDS_ONLY=yes PACKAGE_BUILDING=yes BATCH=yes PKG_CREATE_VERBOSE=yes PORTSDIR=/xports DISTDIR=/distfiles WRKDIRPREFIX=/construction PORT_DBDIR=/options PACKAGES=/packages MAKE_JOBS_NUMBER_LIMIT=5 LICENSES_ACCEPTED= NONE HAVE_COMPAT_IA32_KERN= CONFIGURE_MAX_CMD_LEN=262144 _PERL5_FROM_BIN=5.28.1 _ALTCCVERSION_921dbbb2=none _OBJC_ALTCCVERSION_921dbbb2=none _SMP_CPUS=8 UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=500601 OSVERSION=9999999 OSREL=5.6 _OSRELEASE=5.6-SYNTH PYTHONBASE=/usr/local _PKG_CHECKED=1 -------------------------------------------------------------------------------- -- Phase: check-sanity -------------------------------------------------------------------------------- ===> License OpenSSL accepted by the user -------------------------------------------------------------------------------- -- Phase: pkg-depends -------------------------------------------------------------------------------- ===> openssl_tpm_engine-0.5.0_2 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.11.1.txz Installing pkg-1.11.1... Extracting pkg-1.11.1: .......... done ===> openssl_tpm_engine-0.5.0_2 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of openssl_tpm_engine-0.5.0_2 -------------------------------------------------------------------------------- -- Phase: fetch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: fetch -------------------------------------------------------------------------------- ===> License OpenSSL accepted by the user ===> Fetching all distfiles required by openssl_tpm_engine-0.5.0_2 for building -------------------------------------------------------------------------------- -- Phase: checksum -------------------------------------------------------------------------------- ===> License OpenSSL accepted by the user ===> Fetching all distfiles required by openssl_tpm_engine-0.5.0_2 for building => SHA256 Checksum OK for mgerstner-openssl_tpm_engine-v0.5.0_GH0.tar.gz. -------------------------------------------------------------------------------- -- Phase: extract-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: extract -------------------------------------------------------------------------------- ===> License OpenSSL accepted by the user ===> Fetching all distfiles required by openssl_tpm_engine-0.5.0_2 for building ===> Extracting for openssl_tpm_engine-0.5.0_2 => SHA256 Checksum OK for mgerstner-openssl_tpm_engine-v0.5.0_GH0.tar.gz. -------------------------------------------------------------------------------- -- Phase: patch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: patch -------------------------------------------------------------------------------- ===> Patching for openssl_tpm_engine-0.5.0_2 ===> Applying ports patches for openssl_tpm_engine-0.5.0_2 /usr/bin/sed -i.bak "s|%%TPMSO%%|/usr/local/lib/openssl/engines/tpm.so|g" /construction/security/openssl_tpm_engine/openssl_tpm_engine-0.5.0/dist/openssl.cnf.sample -------------------------------------------------------------------------------- -- Phase: build-depends -------------------------------------------------------------------------------- ===> openssl_tpm_engine-0.5.0_2 depends on package: autoconf>=2.69 - not found ===> Installing existing package /packages/All/autoconf-2.69_2.txz Installing autoconf-2.69_2... `-- Installing autoconf-wrapper-20131203... `-- Extracting autoconf-wrapper-20131203: .......... done `-- Installing indexinfo-0.3.1... `-- Extracting indexinfo-0.3.1: .... done `-- Installing m4-1.4.18_1,1... `-- Extracting m4-1.4.18_1,1: .......... done `-- Installing perl5-5.28.2... `-- Extracting perl5-5.28.2: .......... done Extracting autoconf-2.69_2: .......... done Message from perl5-5.28.2: The /usr/bin/perl symlink has been removed starting with Perl 5.20. For shebangs, you should either use: #!/usr/local/bin/perl or #!/usr/bin/env perl The first one will only work if you have a /usr/local/bin/perl, the second will work as long as perl is in PATH. ===> openssl_tpm_engine-0.5.0_2 depends on package: autoconf>=2.69 - found ===> Returning to build of openssl_tpm_engine-0.5.0_2 ===> openssl_tpm_engine-0.5.0_2 depends on package: automake>=1.16.1 - not found ===> Installing existing package /packages/All/automake-1.16.1_1.txz Installing automake-1.16.1_1... Extracting automake-1.16.1_1: .......... done ===> openssl_tpm_engine-0.5.0_2 depends on package: automake>=1.16.1 - found ===> Returning to build of openssl_tpm_engine-0.5.0_2 ===> openssl_tpm_engine-0.5.0_2 depends on executable: libtoolize - not found ===> Installing existing package /packages/All/libtool-2.4.6_1.txz Installing libtool-2.4.6_1... Extracting libtool-2.4.6_1: .......... done ===> openssl_tpm_engine-0.5.0_2 depends on executable: libtoolize - found ===> Returning to build of openssl_tpm_engine-0.5.0_2 ===> openssl_tpm_engine-0.5.0_2 depends on executable: gmake - not found ===> Installing existing package /packages/All/gmake-4.2.1_3.txz Installing gmake-4.2.1_3... `-- Installing gettext-runtime-0.20.1... `-- Extracting gettext-runtime-0.20.1: .......... done Extracting gmake-4.2.1_3: .......... done ===> openssl_tpm_engine-0.5.0_2 depends on executable: gmake - found ===> Returning to build of openssl_tpm_engine-0.5.0_2 ===> openssl_tpm_engine-0.5.0_2 depends on file: /usr/local/lib/libcrypto.so.45 - not found ===> Installing existing package /packages/All/libressl-2.9.2.txz Installing libressl-2.9.2... Extracting libressl-2.9.2: .......... done ===> openssl_tpm_engine-0.5.0_2 depends on file: /usr/local/lib/libcrypto.so.45 - found ===> Returning to build of openssl_tpm_engine-0.5.0_2 ===> openssl_tpm_engine-0.5.0_2 depends on package: pkgconf>=1.3.0_1 - not found ===> Installing existing package /packages/All/pkgconf-1.6.1,1.txz Installing pkgconf-1.6.1,1... Extracting pkgconf-1.6.1,1: .......... done ===> openssl_tpm_engine-0.5.0_2 depends on package: pkgconf>=1.3.0_1 - found ===> Returning to build of openssl_tpm_engine-0.5.0_2 -------------------------------------------------------------------------------- -- Phase: lib-depends -------------------------------------------------------------------------------- ===> openssl_tpm_engine-0.5.0_2 depends on shared library: libtspi.so - not found ===> Installing existing package /packages/All/trousers-0.3.14_2.txz Installing trousers-0.3.14_2... `-- Installing tpm-emulator-0.7.4_2... | `-- Installing gmp-6.1.2_1... | `-- Extracting gmp-6.1.2_1: .......... done ===> Creating groups. Using existing group '_tss'. ===> Creating users Using existing user '_tss'. `-- Extracting tpm-emulator-0.7.4_2: ......... done ===> Creating groups. Using existing group '_tss'. ===> Creating users Using existing user '_tss'. Extracting trousers-0.3.14_2: .......... done Message from trousers-0.3.14_2: To run tcsd automatically, add the following line to /etc/rc.conf: tcsd_enable="YES" You might want to edit /usr/local/etc/tcsd.conf to reflect your setup. If you want to use tcsd with software TPM emulator, use the following configuration in /etc/rc.conf: tcsd_enable="YES" tcsd_mode="emulator" tpmd_enable="YES" To use TPM, add your_account to '_tss' group like following: # pw groupmod _tss -m your_account ===> openssl_tpm_engine-0.5.0_2 depends on shared library: libtspi.so - found (/usr/local/lib/libtspi.so) ===> Returning to build of openssl_tpm_engine-0.5.0_2 -------------------------------------------------------------------------------- -- Phase: configure -------------------------------------------------------------------------------- ===> Configuring for openssl_tpm_engine-0.5.0_2 libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. configure.ac:48: installing './compile' configure.ac:49: installing './config.guess' configure.ac:49: installing './config.sub' configure.ac:6: installing './install-sh' configure.ac:6: installing './missing' Makefile.am: installing './COPYING' using GNU General Public License v3 file Makefile.am: Consider adding the COPYING file to the version control system Makefile.am: for your code, to avoid questions about which license your project uses src/Makefile.am: installing './depcomp' configure: loading site script /xports/Templates/config.site checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p checking for gawk... (cached) /usr/bin/awk checking whether gmake sets $(MAKE)... yes checking whether gmake supports nested variables... yes checking Non-standard OpenSSL... yes checking for gcc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking whether cc understands -c and -o together... yes checking whether gmake supports the include directive... yes (GNU style) checking dependency style of cc... gcc3 checking build system type... x86_64-portbld-dragonfly5.6 checking host system type... x86_64-portbld-dragonfly5.6 checking how to print strings... printf checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for grep that handles long lines and -e... (cached) /usr/bin/grep checking for egrep... (cached) /usr/bin/egrep checking for fgrep... (cached) /usr/bin/fgrep checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... (cached) 262144 checking how to convert x86_64-portbld-dragonfly5.6 file names to x86_64-portbld-dragonfly5.6 format... func_convert_file_noop checking how to convert x86_64-portbld-dragonfly5.6 file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from cc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking how to run the C preprocessor... cpp checking for ANSI C header files... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking for dlfcn.h... (cached) yes checking for objdir... .libs checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC -DPIC checking if cc PIC flag -fPIC -DPIC works... yes checking if cc static flag -static works... yes checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... dragonfly5.6 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for OpenSSL 1.1... yes checking pkg-config is at least version 0.9.0... yes checking for libcrypto... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating test/Makefile config.status: executing depfiles commands config.status: executing libtool commands CFLAGS=-pipe -O2 -isystem /usr/local/include -fno-strict-aliasing -L/usr/local/lib -I/usr/local/include -Wall -------------------------------------------------------------------------------- -- Phase: build -------------------------------------------------------------------------------- ===> Building for openssl_tpm_engine-0.5.0_2 gmake[1]: Entering directory '/construction/security/openssl_tpm_engine/openssl_tpm_engine-0.5.0' Making all in src gmake[2]: Entering directory '/construction/security/openssl_tpm_engine/openssl_tpm_engine-0.5.0/src' cc -DPACKAGE_NAME=\"openssl-tpm-engine\" -DPACKAGE_TARNAME=\"openssl-tpm-engine\" -DPACKAGE_VERSION=\"0.5.0\" -DPACKAGE_STRING=\"openssl-tpm-engine\ 0.5.0\" -DPACKAGE_BUGREPORT=\"trousers-users@lists.sf.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"openssl-tpm-engine\" -DVERSION=\"0.5.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -isystem /usr/local/include -pipe -O2 -isystem /usr/local/include -fno-strict-aliasing -L/usr/local/lib -I/usr/local/include -Wall -MT create_tpm_key.o -MD -MP -MF .deps/create_tpm_key.Tpo -c -o create_tpm_key.o create_tpm_key.c /bin/sh ../libtool --tag=CC --mode=compile cc -DPACKAGE_NAME=\"openssl-tpm-engine\" -DPACKAGE_TARNAME=\"openssl-tpm-engine\" -DPACKAGE_VERSION=\"0.5.0\" -DPACKAGE_STRING=\"openssl-tpm-engine\ 0.5.0\" -DPACKAGE_BUGREPORT=\"trousers-users@lists.sf.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"openssl-tpm-engine\" -DVERSION=\"0.5.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -isystem /usr/local/include -pipe -O2 -isystem /usr/local/include -fno-strict-aliasing -L/usr/local/lib -I/usr/local/include -Wall -MT e_tpm.lo -MD -MP -MF .deps/e_tpm.Tpo -c -o e_tpm.lo e_tpm.c /bin/sh ../libtool --tag=CC --mode=compile cc -DPACKAGE_NAME=\"openssl-tpm-engine\" -DPACKAGE_TARNAME=\"openssl-tpm-engine\" -DPACKAGE_VERSION=\"0.5.0\" -DPACKAGE_STRING=\"openssl-tpm-engine\ 0.5.0\" -DPACKAGE_BUGREPORT=\"trousers-users@lists.sf.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"openssl-tpm-engine\" -DVERSION=\"0.5.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -isystem /usr/local/include -pipe -O2 -isystem /usr/local/include -fno-strict-aliasing -L/usr/local/lib -I/usr/local/include -Wall -MT e_tpm_err.lo -MD -MP -MF .deps/e_tpm_err.Tpo -c -o e_tpm_err.lo e_tpm_err.c In file included from create_tpm_key.c:49: ssl_compat.h:29: warning: "RSA_FLAG_SIGN_VER" redefined # define RSA_FLAG_SIGN_VER 0 In file included from create_tpm_key.c:41: /usr/local/include/openssl/rsa.h:189: note: this is the location of the previous definition #define RSA_FLAG_SIGN_VER 0x0040 mv -f .deps/create_tpm_key.Tpo .deps/create_tpm_key.Po /bin/sh ../libtool --tag=CC --mode=link cc -pipe -O2 -isystem /usr/local/include -fno-strict-aliasing -L/usr/local/lib -I/usr/local/include -Wall -Wl,-rpath,/usr/local/lib -o create_tpm_key create_tpm_key.o -ltspi -lcrypto -L/usr/local/lib libtool: link: cc -pipe -O2 -isystem /usr/local/include -fno-strict-aliasing -I/usr/local/include -Wall -Wl,-rpath -Wl,/usr/local/lib -o create_tpm_key create_tpm_key.o -L/usr/local/lib -ltspi -lcrypto libtool: compile: cc -DPACKAGE_NAME=\"openssl-tpm-engine\" -DPACKAGE_TARNAME=\"openssl-tpm-engine\" -DPACKAGE_VERSION=\"0.5.0\" "-DPACKAGE_STRING=\"openssl-tpm-engine 0.5.0\"" -DPACKAGE_BUGREPORT=\"trousers-users@lists.sf.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"openssl-tpm-engine\" -DVERSION=\"0.5.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -isystem /usr/local/include -pipe -O2 -isystem /usr/local/include -fno-strict-aliasing -L/usr/local/lib -I/usr/local/include -Wall -MT e_tpm_err.lo -MD -MP -MF .deps/e_tpm_err.Tpo -c e_tpm_err.c -fPIC -DPIC -o .libs/e_tpm_err.o libtool: compile: cc -DPACKAGE_NAME=\"openssl-tpm-engine\" -DPACKAGE_TARNAME=\"openssl-tpm-engine\" -DPACKAGE_VERSION=\"0.5.0\" "-DPACKAGE_STRING=\"openssl-tpm-engine 0.5.0\"" -DPACKAGE_BUGREPORT=\"trousers-users@lists.sf.net\" -DPACKAGE_URL=\"\" -DPACKAGE=\"openssl-tpm-engine\" -DVERSION=\"0.5.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -isystem /usr/local/include -pipe -O2 -isystem /usr/local/include -fno-strict-aliasing -L/usr/local/lib -I/usr/local/include -Wall -MT e_tpm.lo -MD -MP -MF .deps/e_tpm.Tpo -c e_tpm.c -fPIC -DPIC -o .libs/e_tpm.o mv -f .deps/e_tpm_err.Tpo .deps/e_tpm_err.Plo In file included from e_tpm.c:40: ssl_compat.h:29: warning: "RSA_FLAG_SIGN_VER" redefined # define RSA_FLAG_SIGN_VER 0 In file included from /usr/local/include/openssl/engine.h:76, from e_tpm.c:22: /usr/local/include/openssl/rsa.h:189: note: this is the location of the previous definition #define RSA_FLAG_SIGN_VER 0x0040 e_tpm.c:100:1: error: variable 'tpm_rand' has initializer but incomplete type static RAND_METHOD tpm_rand = { ^~~~~~ e_tpm.c:102:2: warning: excess elements in struct initializer tpm_rand_seed, ^~~~~~~~~~~~~ e_tpm.c:102:2: note: (near initialization for 'tpm_rand') e_tpm.c:103:2: warning: excess elements in struct initializer tpm_rand_bytes, ^~~~~~~~~~~~~~ e_tpm.c:103:2: note: (near initialization for 'tpm_rand') e_tpm.c:104:2: warning: excess elements in struct initializer NULL, ^~~~ e_tpm.c:104:2: note: (near initialization for 'tpm_rand') e_tpm.c:105:2: warning: excess elements in struct initializer NULL, ^~~~ e_tpm.c:105:2: note: (near initialization for 'tpm_rand') e_tpm.c:106:2: warning: excess elements in struct initializer tpm_rand_bytes, ^~~~~~~~~~~~~~ e_tpm.c:106:2: note: (near initialization for 'tpm_rand') e_tpm.c:107:2: warning: excess elements in struct initializer tpm_rand_status, ^~~~~~~~~~~~~~~ e_tpm.c:107:2: note: (near initialization for 'tpm_rand') e_tpm.c: In function 'setup_rsa_method': e_tpm.c:200:7: warning: implicit declaration of function 'RSA_meth_set_flags'; did you mean 'RSA_meth_set_finish'? [-Wimplicit-function-declaration] if (!RSA_meth_set_flags(tpm_rsa, ^~~~~~~~~~~~~~~~~~ RSA_meth_set_finish e_tpm.c:202:7: warning: implicit declaration of function 'RSA_meth_set_pub_enc'; did you mean 'RSA_meth_set_priv_enc'? [-Wimplicit-function-declaration] !RSA_meth_set_pub_enc(tpm_rsa, tpm_rsa_pub_enc) || ^~~~~~~~~~~~~~~~~~~~ RSA_meth_set_priv_enc e_tpm.c:203:7: warning: implicit declaration of function 'RSA_meth_set_pub_dec'; did you mean 'RSA_meth_set_priv_dec'? [-Wimplicit-function-declaration] !RSA_meth_set_pub_dec(tpm_rsa, tpm_rsa_pub_dec) || ^~~~~~~~~~~~~~~~~~~~ RSA_meth_set_priv_dec e_tpm.c:204:38: warning: passing argument 2 of 'RSA_meth_set_priv_enc' from incompatible pointer type [-Wincompatible-pointer-types] !RSA_meth_set_priv_enc(tpm_rsa, tpm_rsa_priv_enc) || ^~~~~~~~~~~~~~~~ In file included from /usr/local/include/openssl/engine.h:76, from e_tpm.c:22: /usr/local/include/openssl/rsa.h:437:51: note: expected 'int (*)(int, const unsigned char *, unsigned char *, RSA *, int)' {aka 'int (*)(int, const unsigned char *, unsigned char *, struct rsa_st *, int)'} but argument is of type 'int (*)(int, unsigned char *, unsigned char *, RSA *, int)' {aka 'int (*)(int, unsigned char *, unsigned char *, struct rsa_st *, int)'} int RSA_meth_set_priv_enc(RSA_METHOD *meth, int (*priv_enc)(int flen, ~~~~~~^~~~~~~~~~~~~~~~~~~ const unsigned char *from, unsigned char *to, RSA *rsa, int padding)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ e_tpm.c:205:38: warning: passing argument 2 of 'RSA_meth_set_priv_dec' from incompatible pointer type [-Wincompatible-pointer-types] !RSA_meth_set_priv_dec(tpm_rsa, tpm_rsa_priv_dec) || ^~~~~~~~~~~~~~~~ In file included from /usr/local/include/openssl/engine.h:76, from e_tpm.c:22: /usr/local/include/openssl/rsa.h:439:51: note: expected 'int (*)(int, const unsigned char *, unsigned char *, RSA *, int)' {aka 'int (*)(int, const unsigned char *, unsigned char *, struct rsa_st *, int)'} but argument is of type 'int (*)(int, unsigned char *, unsigned char *, RSA *, int)' {aka 'int (*)(int, unsigned char *, unsigned char *, struct rsa_st *, int)'} int RSA_meth_set_priv_dec(RSA_METHOD *meth, int (*priv_dec)(int flen, ~~~~~~^~~~~~~~~~~~~~~~~~~ const unsigned char *from, unsigned char *to, RSA *rsa, int padding)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ e_tpm.c:206:7: warning: implicit declaration of function 'RSA_meth_set_bn_mod_exp'; did you mean 'RSA_meth_set_priv_dec'? [-Wimplicit-function-declaration] !RSA_meth_set_bn_mod_exp(tpm_rsa, BN_mod_exp_mont) || ^~~~~~~~~~~~~~~~~~~~~~~ RSA_meth_set_priv_dec e_tpm.c:207:7: warning: implicit declaration of function 'RSA_meth_set_init'; did you mean 'RSA_meth_set_finish'? [-Wimplicit-function-declaration] !RSA_meth_set_init(tpm_rsa, tpm_rsa_init) || ^~~~~~~~~~~~~~~~~ RSA_meth_set_finish e_tpm.c:209:7: warning: implicit declaration of function 'RSA_meth_set_keygen'; did you mean 'DSA_meth_set_sign'? [-Wimplicit-function-declaration] !RSA_meth_set_keygen(tpm_rsa, tpm_rsa_keygen)) ^~~~~~~~~~~~~~~~~~~ DSA_meth_set_sign e_tpm.c: In function 'bind_helper': e_tpm.c:226:12: warning: implicit declaration of function 'RSA_PKCS1_OpenSSL'; did you mean 'EC_KEY_OpenSSL'? [-Wimplicit-function-declaration] ssl_rsa = RSA_PKCS1_OpenSSL(); ^~~~~~~~~~~~~~~~~ EC_KEY_OpenSSL e_tpm.c:226:10: warning: assignment to 'const RSA_METHOD *' {aka 'const struct rsa_meth_st *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] ssl_rsa = RSA_PKCS1_OpenSSL(); ^ e_tpm.c: In function 'tpm_engine_init': e_tpm.c:442:2: warning: implicit declaration of function 'RSA_meth_set_mod_exp'; did you mean 'RSA_meth_set_priv_enc'? [-Wimplicit-function-declaration] RSA_meth_set_mod_exp(tpm_rsa, RSA_meth_get_mod_exp(ssl_rsa)); ^~~~~~~~~~~~~~~~~~~~ RSA_meth_set_priv_enc e_tpm.c:442:32: warning: implicit declaration of function 'RSA_meth_get_mod_exp'; did you mean 'RSA_meth_get_finish'? [-Wimplicit-function-declaration] RSA_meth_set_mod_exp(tpm_rsa, RSA_meth_get_mod_exp(ssl_rsa)); ^~~~~~~~~~~~~~~~~~~~ RSA_meth_get_finish e_tpm.c: In function 'BIO_from_nvram': e_tpm.c:637:11: warning: implicit declaration of function 'p_tspi_Context_CreateObject'; did you mean 'Tspi_Context_CreateObject'? [-Wimplicit-function-declaration] result = p_tspi_Context_CreateObject(hContext, TSS_OBJECT_TYPE_NV, 0, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Tspi_Context_CreateObject e_tpm.c:647:11: warning: implicit declaration of function 'p_tspi_SetAttribUint32'; did you mean 'Tspi_SetAttribUint32'? [-Wimplicit-function-declaration] result = p_tspi_SetAttribUint32(hNVStore, TSS_TSPATTRIB_NV_INDEX, 0, ^~~~~~~~~~~~~~~~~~~~~~ Tspi_SetAttribUint32 e_tpm.c:656:11: warning: implicit declaration of function 'p_tspi_NV_ReadValue'; did you mean 'Tspi_NV_ReadValue'? [-Wimplicit-function-declaration] result = p_tspi_NV_ReadValue(hNVStore, 0, &length, &dataRead); ^~~~~~~~~~~~~~~~~~~ Tspi_NV_ReadValue e_tpm.c:658:2: warning: implicit declaration of function 'p_tspi_Context_FreeMemory'; did you mean 'Tspi_Context_FreeMemory'? [-Wimplicit-function-declaration] p_tspi_Context_FreeMemory(hContext, dataRead); ^~~~~~~~~~~~~~~~~~~~~~~~~ Tspi_Context_FreeMemory e_tpm.c: In function 'tpm_quote': e_tpm.c:887:15: warning: implicit declaration of function 'p_tspi_PcrComposite_SelectPcrIndex'; did you mean 'Tspi_PcrComposite_SelectPcrIndex'? [-Wimplicit-function-declaration] result = p_tspi_PcrComposite_SelectPcrIndex(hPcrComposite, i); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tspi_PcrComposite_SelectPcrIndex e_tpm.c:897:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tssVal.rgbExternalData = request->nonce; ^ e_tpm.c:900:11: warning: implicit declaration of function 'p_tspi_TPM_Quote'; did you mean 'Tspi_TPM_Quote'? [-Wimplicit-function-declaration] result = p_tspi_TPM_Quote(hTPM, app_data->hKey, hPcrComposite, &tssVal); ^~~~~~~~~~~~~~~~ Tspi_TPM_Quote e_tpm.c:911:2: warning: implicit declaration of function 'p_tspi_Context_CloseObject'; did you mean 'Tspi_Context_CloseObject'? [-Wimplicit-function-declaration] p_tspi_Context_CloseObject(hContext, hPcrComposite); ^~~~~~~~~~~~~~~~~~~~~~~~~~ Tspi_Context_CloseObject e_tpm.c: In function 'tpm_rsa_pub_dec': e_tpm.c:1019:12: warning: implicit declaration of function 'RSA_meth_get_pub_dec'; did you mean 'RSA_meth_set_priv_dec'? [-Wimplicit-function-declaration] if ((rv = RSA_meth_get_pub_dec(ssl_rsa)( ^~~~~~~~~~~~~~~~~~~~ RSA_meth_set_priv_dec e_tpm.c:1019:12: error: called object is not a function or function pointer e_tpm.c: In function 'tpm_rsa_priv_dec': e_tpm.c:1045:13: warning: implicit declaration of function 'RSA_meth_get_priv_dec'; did you mean 'RSA_meth_set_priv_dec'? [-Wimplicit-function-declaration] if ((rv = RSA_meth_get_priv_dec(ssl_rsa)(flen, from, to, rsa, ^~~~~~~~~~~~~~~~~~~~~ RSA_meth_set_priv_dec e_tpm.c:1045:13: error: called object is not a function or function pointer e_tpm.c: In function 'tpm_rsa_pub_enc': e_tpm.c:1122:13: warning: implicit declaration of function 'RSA_meth_get_pub_enc'; did you mean 'RSA_meth_set_priv_enc'? [-Wimplicit-function-declaration] if ((rv = RSA_meth_get_pub_enc(ssl_rsa)(flen, from, to, rsa, ^~~~~~~~~~~~~~~~~~~~ RSA_meth_set_priv_enc e_tpm.c:1122:13: error: called object is not a function or function pointer e_tpm.c: In function 'tpm_rsa_priv_enc': e_tpm.c:1229:13: warning: implicit declaration of function 'RSA_meth_get_priv_enc'; did you mean 'RSA_meth_set_priv_enc'? [-Wimplicit-function-declaration] if ((rv = RSA_meth_get_priv_enc(ssl_rsa)(flen, from, to, rsa, ^~~~~~~~~~~~~~~~~~~~~ RSA_meth_set_priv_enc e_tpm.c:1229:13: error: called object is not a function or function pointer e_tpm.c: At top level: e_tpm.c:100:20: error: storage size of 'tpm_rand' isn't known static RAND_METHOD tpm_rand = { ^~~~~~~~ gmake[2]: *** [Makefile:528: e_tpm.lo] Error 1 gmake[2]: Leaving directory '/construction/security/openssl_tpm_engine/openssl_tpm_engine-0.5.0/src' gmake[1]: *** [Makefile:381: all-recursive] Error 1 gmake[1]: Leaving directory '/construction/security/openssl_tpm_engine/openssl_tpm_engine-0.5.0' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /xports/security/openssl_tpm_engine -------------------------------------------------- -- Termination -------------------------------------------------- Finished: Monday, 29 JUL 2019 at 21:43:43 UTC Duration: 00:00:40