Closed imtypist closed 2 years ago
Build error for ra-tls-secret-prov example
make app dcap RA_TYPE=dcap
build pass
$ make app dcap RA_TYPE=dcap make: Nothing to be done for 'app'. cc secret_prov_minimal/server.c -O2 -fPIE -Wall -std=c11 -I../../tools/sgx/ra-tls -pie -Wl,--enable-new-dtags -L/usr/local/lib/x86_64-linux-gnu -lsgx_util -Wl,-rpath,/usr/local/lib/x86_64-linux-gnu -Wl,--no-as-needed -lsgx_urts -lsecret_prov_verify_dcap -pthread -o secret_prov_minimal/server_dcap /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libsecret_prov_verify_dcap.so: undefined reference to `mbedtls_sha256_ret' /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libsecret_prov_verify_dcap.so: undefined reference to `mbedtls_sha1_starts_ret' /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libsecret_prov_verify_dcap.so: undefined reference to `mbedtls_sha512_finish_ret' /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libsecret_prov_verify_dcap.so: undefined reference to `mbedtls_sha256_starts_ret' /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libsecret_prov_verify_dcap.so: undefined reference to `mbedtls_sha512_starts_ret' /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libsecret_prov_verify_dcap.so: undefined reference to `mbedtls_md5_finish_ret' /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libsecret_prov_verify_dcap.so: undefined reference to `mbedtls_sha256_update_ret' /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libsecret_prov_verify_dcap.so: undefined reference to `mbedtls_sha256_finish_ret' /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libsecret_prov_verify_dcap.so: undefined reference to `mbedtls_sha1_update_ret' /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libsecret_prov_verify_dcap.so: undefined reference to `mbedtls_md5_update_ret' /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libsecret_prov_verify_dcap.so: undefined reference to `mbedtls_md5_starts_ret' /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libsecret_prov_verify_dcap.so: undefined reference to `mbedtls_sha512_update_ret' /usr/bin/ld: /usr/local/lib/x86_64-linux-gnu/libsecret_prov_verify_dcap.so: undefined reference to `mbedtls_sha1_finish_ret' collect2: error: ld returned 1 exit status make: *** [Makefile:66: secret_prov_minimal/server_dcap] Error 1
5c312f95d464a3ac69cce129e270838808f1ee31 [LibOS] Raise SIGALRM when setitimer's timer expires
sorry, I missed the -Ddcap=enabled option when building gramine from source. It has been solved after rebuilding gramine.
-Ddcap=enabled
Description of the problem
Build error for ra-tls-secret-prov example
Steps to reproduce
make app dcap RA_TYPE=dcap
Expected results
build pass
Actual results
Gramine commit hash
5c312f95d464a3ac69cce129e270838808f1ee31 [LibOS] Raise SIGALRM when setitimer's timer expires