You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling the tpm-tools I get a linking problem:
Making all in cmds
make[3]: Entering directory `/root/tpm-tools/src/cmds'
/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 -m64 -Wall -Werror -Wreturn-type -Wsign-compare -o tpm_sealdata tpm_sealdata.o ../../lib/libtpm_tspi.la -ltspi ../../lib/libtpm_unseal.la -ltpm_unseal
libtool: link: gcc -g -O2 -m64 -Wall -Werror -Wreturn-type -Wsign-compare -o .libs/tpm_sealdata tpm_sealdata.o ../../lib/.libs/libtpm_tspi.a ../../lib/.libs/libtpm_unseal.so -ltspi
/usr/bin/ld: tpm_sealdata.o: undefined reference to symbol 'BIO_pop'
/usr/bin/ld: note: 'BIO_pop' is defined in DSO /lib64/libcrypto.so.10 so try adding it to the linker command line
/lib64/libcrypto.so.10: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
The patch below fixes this problem by also linking with -lcrypto.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
0 commit comments