Closed phaus closed 1 year ago
+1
# make -j$(nproc)
make: Warning: File 'test/.deps/tpm2_tss_engine_common-tpm2-tss-engine-common.Po' has modification time 3010 s in the future
CCLD tpm2tss-genkey
/usr/bin/ld: /usr/local/lib/libtss2-esys.so: undefined reference to `Tss2_Sys_MAC_Start_Complete'
/usr/bin/ld: /usr/local/lib/libtss2-esys.so: undefined reference to `Tss2_Sys_ACT_SetTimeout_Complete'
/usr/bin/ld: /usr/local/lib/libtss2-esys.so: undefined reference to `Tss2_Sys_CertifyX509_Prepare'
/usr/bin/ld: /usr/local/lib/libtss2-esys.so: undefined reference to `Tss2_Sys_MAC_Start_Prepare'
/usr/bin/ld: /usr/local/lib/libtss2-esys.so: undefined reference to `Tss2_Sys_MAC_Prepare'
/usr/bin/ld: /usr/local/lib/libtss2-esys.so: undefined reference to `Tss2_Sys_CertifyX509_Complete'
/usr/bin/ld: /usr/local/lib/libtss2-esys.so: undefined reference to `Tss2_Sys_ACT_SetTimeout_Prepare'
/usr/bin/ld: /usr/local/lib/libtss2-esys.so: undefined reference to `Tss2_Sys_MAC_Complete'
collect2: error: ld returned 1 exit status
make: *** [Makefile:1087: tpm2tss-genkey] Error 1
Running Raspbian GNU/Linux 11 (bullseye) with OpenSSL 1.1.1n 15 Mar 2022. Installed apt dependencies and compiled tpm2-tss
I solved the problem by removing the libtss2-esys-3.0.2-0 package. Now is working:
openssl rand -engine tpm2tss -hex 10
engine "tpm2tss" set.
337384b378a68995e379
Thank you
I followed the instructions from here to install the openssl-engine.
I tried both, the most recent
master
, but also Tag1.2.0
.I am able to complete all steps until the compilation of
tpm2-tss-engine
. I got a linking error that looks like the compilation tries to bind against wrong openssl dev libs:My OpenSSL Version is: