You must not be on TSS 2.3 or greater.
That commit came in 45c9c79 which is on tag 2.3.0:
$ git tag --contains 45c9c790273f1ea6d5e51bac86fbcf2983f035f2
2.3.0
On the tools is ca me in as 0d88935be88e9:
$ git tag --contains 0d88935be88e9
4.0-rc0
4.0-rc1
As well as being on master...
The configure script should be verifying that
ESYS is version 2.3.0 or higher:
PKG_CHECK_MODULES([TSS2_ESYS], [tss2-esys >= 2.3.0])
Is the version your building against the one you built. Did you install
The newer TSS before configuring?
Seems like it's getting passed configure but building against old headers.
-----Original Message-----
From: tpm2 [mailto:tpm2-bounces@lists.01.org] On Behalf Of Iratxe González
Garrido
Sent: Monday, August 26, 2019 12:39 PM
To: tpm2(a)lists.01.org
Subject: [tpm2] [tpm2-tools] tools error while compiling
Hello:
I am trying to update my tpm2-tools to version 4 but I get this error message:
pi@iotacar:~/tpm2-tools $ make -j5
CC lib/lib_libcommon_a-files.o
CC lib/lib_libcommon_a-log.o
CC lib/lib_libcommon_a-object.o
CC lib/lib_libcommon_a-pcr.o
CC lib/lib_libcommon_a-tpm2.o
CC lib/lib_libcommon_a-tpm2_alg_util.o
CC lib/lib_libcommon_a-tpm2_attr_util.o
lib/tpm2_alg_util.c: In function ‘tpm2_alg_util_for_each_alg’:
lib/tpm2_alg_util.c:66:33: error: ‘TPM2_ALG_CMAC’ undeclared (first use in this
function)
{ .name = "cmac", .id = TPM2_ALG_CMAC, .flags =
tpm2_alg_util_flags_sig },
^~~~~~~~~~~~~
lib/tpm2_alg_util.c:66:33: note: each undeclared identifier is reported only once
for each function it appears in
Makefile:2618: recipe for target 'lib/lib_libcommon_a-tpm2_alg_util.o' failed
make: *** [lib/lib_libcommon_a-tpm2_alg_util.o] Error 1
make: *** Waiting for unfinished jobs....
I've tried uninstalling and reinstalling everything but I get the same error. I
installed it yesterday in another raspberry pi from scratch and it works without
problems, therefore I think I have some legacy files from the previous
installation, but I don't know what to delete. I have not encountered any
problems while installing tpms2-tss, tom2-abrmd or the TPM simulator, just with
tpm2-tools
Can anyone help me?
Thanks in advance