build failure with openssl 3.0
Status: Beta
Brought to you by:
kagoldman
I am working on upgrading openssl to 3.0 in Alpine Linux and build fails:
ncopa-edge-x86_64:~/aports/community/ibmswtpm2/src/src (master)$ make
/usr/bin/gcc -Wall -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Werror -Wsign-compare -c -ggdb -O0 -DTPM_POSIX -D_POSIX_ -DTPM_NUVOTON -DUSE_BIT_FIELD_STRUCTURES=NO ACT_spt.c -o ACT_spt.o
In file included from BnValues.h:324,
from Global.h:80,
from Tpm.h:78,
from ACT_spt.c:73:
TpmToOsslMath.h:79:5: error: #error Untested OpenSSL version
79 | # error Untested OpenSSL version
| ^~~~~
make: *** [makefile:88: ACT_spt.o] Error 1
Fixed in the next branch.
https://sourceforge.net/p/ibmswtpm2/tpm2/ci/next/tree/