yzr95924 / DEBE

A shielded DbE-based deduplicated storage system based on Intel SGX in USENIX ATC'22
15 stars 4 forks source link

compile err #4

Closed iamzhanghaohui closed 1 year ago

iamzhanghaohui commented 1 year ago

@yzr95924 您好,因为机器故障,我换了机器重新装好环境之后对项目进行编译,出现这之前没见过的错误,实在不太会解决。有空能帮我看看吗~谢谢 bash setup.sh 后

/usr/bin/ld: ../../../lib/libClientCore.a(sessionKeyExchange.cc.o): in function `SessionKeyExchange::GeneratingSecret(unsigned char*, ssl_st*, unsigned int)':
sessionKeyExchange.cc:(.text+0x3a2): undefined reference to `EVP_PKEY_get1_tls_encodedpoint'
/usr/bin/ld: sessionKeyExchange.cc:(.text+0x45a): undefined reference to `EVP_PKEY_set1_tls_encodedpoint'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/App/CMakeFiles/DEBEClient.dir/build.make:114: ../bin/DEBEClient] Error 1
make[2]: Leaving directory '/root/test/DEBE/Prototype/build'
make[1]: *** [CMakeFiles/Makefile2:308: src/App/CMakeFiles/DEBEClient.dir/all] Error 2
make[1]: Leaving directory '/root/test/DEBE/Prototype/build'
make: *** [Makefile:94: all] Error 2
yzr95924 commented 1 year ago

应该是libssl的问题,你check一下你是否安装libssl以及libssl的版本

iamzhanghaohui commented 1 year ago

libssl version 是3.0.2 image

iamzhanghaohui commented 1 year ago

完整的信息在这里 会不会和cmake gcc版本有关系呢?

iamzhanghaohui commented 1 year ago

root@free-ChengMing-3988:~# dpkg -l libssl libssl情况如下 image

iamzhanghaohui commented 1 year ago

apt remove libssl-dev apt install libssl-dev reboot 解决了问题