tpm2-software / tpm2-tss-engine

OpenSSL Engine for TPM2 devices
https://tpm2-software.github.io
BSD 3-Clause "New" or "Revised" License
150 stars 100 forks source link

Requested 'tss2-esys >=2.3' but version of tss2-esys is <hash> #252

Closed kugelman closed 2 years ago

kugelman commented 2 years ago

Hi -- following the instructions in INSTALL.md, ./configure in this project fails with

checking for TSS2_ESYS... no
configure: error: Package requirements (tss2-esys >= 2.3) were not met:

Requested 'tss2-esys >= 2.3' but version of tss2-esys is c12d2bc
You may find new versions of tss2-esys at https://github.com/tpm2-software/tpm2-tss

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables TSS2_ESYS_CFLAGS
and TSS2_ESYS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

It looks like c12d2bc is the current head of Master in tpm2-tss, I'm guessing I need to specify a specific branch or tag to clone from instead. Not sure if this is a documentation issue or if cloning tpm2-tss from master is actually supposed to work.

williamcroberts commented 2 years ago

Ahh the instructions have a shallow clone in them with the option --depth=1. Remove that option and re-clone, build and re-install and it will get the proper version information.