Project

General

Profile

Bug #2567

Updated by Tobias Brunner about 4 years ago

Hi,

I have some issues compiling libtpmtss together with the recent version of the TSS 2.0. I already adjusted the #include <tpm20.h> to #include <sapi/tpm20.h>, reflecting the changes in the TSS includes location.

Best regards,
Nicolai

<pre>
make[5]: Entering directory '/home/pi/StrongSwan/strongswan/src/libtpmtss'
depbase=`echo tpm_tss_tss2.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/libstrongswan -I/usr/local/include -g -O2 -Wall -Wno-format -Wno-format-security -Wno-pointer-sign -include /home/pi/StrongSwan/strongswan/config.h -MT tpm_tss_tss2.lo -MD -MP -MF $depbase.Tpo -c -o tpm_tss_tss2.lo tpm_tss_tss2.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/libstrongswan -I/usr/local/include -g -O2 -Wall -Wno-format -Wno-format-security -Wno-pointer-sign -include /home/pi/StrongSwan/strongswan/config.h -MT tpm_tss_tss2.lo -MD -MP -MF .deps/tpm_tss_tss2.Tpo -c tpm_tss_tss2.c -fPIC -DPIC -o .libs/tpm_tss_tss2.o
tpm_tss_tss2.c:70:2: error: unknown type name ‘TPM_ALG_ID’
TPM_ALG_ID supported_algs[TPM_PT_ALGORITHM_SET];
^~~~~~~~~~
tpm_tss_tss2.c:70:28: error: ‘TPM_PT_ALGORITHM_SET’ undeclared here (not in a function)
TPM_ALG_ID supported_algs[TPM_PT_ALGORITHM_SET];
^~~~~~~~~~~~~~~~~~~~
tpm_tss_tss2.c:87:8: error: unknown type name ‘TPM_ALG_ID’
static TPM_ALG_ID hash_alg_to_tpm_alg_id(hash_algorithm_t alg)
^~~~~~~~~~
tpm_tss_tss2.c: In function ‘hash_alg_to_tpm_alg_id’:
tpm_tss_tss2.c:92:11: error: ‘TPM_ALG_SHA1’ undeclared (first use in this function)
return TPM_ALG_SHA1;

[omitted rest of output]
</pre>


Back