Skip to content

Unable to build on Ubuntu 16.04 #25

@ychen404

Description

@ychen404

Hi,

I am not able to build the source following the instructions on the website:
http://open-tee.github.io/documentation/
The following is the error that I am getting:

linking opentee-engine
ERROR: /usr/bin/gcc -g -O0 -Wall -Wextra -m64 -pipe -fvisibility=default -Wpointer-arith -I/usr/local/include -fPIC -DOT_LOGGING -D_FORTIFY_SOURCE=2 -I/home/local/ASUAD/ychen404/Open-TEE/emulator/include -o /home/local/ASUAD/ychen404/Op
en-TEE/debug/InternalApi.0d64191a/3a52ce780950d4d9/openssl_1_0_2_beta_rsa_oaep.c.o -c /home/local/ASUAD/ychen404/Open-TEE/emulator/internal_api/openssl_1_0_2_beta_rsa_oaep.c

ERROR: /home/local/ASUAD/ychen404/Open-TEE/emulator/internal_api/openssl_1_0_2_beta_rsa_oaep.c: In function ‘beta_PKCS1_MGF1’:
/home/local/ASUAD/ychen404/Open-TEE/emulator/internal_api/openssl_1_0_2_beta_rsa_oaep.c:39:13: error: storage size of ‘c’ isn’t known
EVP_MD_CTX c;
^
/home/local/ASUAD/ychen404/Open-TEE/emulator/internal_api/openssl_1_0_2_beta_rsa_oaep.c:74:2: warning: implicit declaration of function ‘EVP_MD_CTX_cleanup’; did you mean ‘EVP_MD_CTX_create’? [-Wimplicit-function-declaration]
EVP_MD_CTX_cleanup(&c);
^~~~~~~~~~~~~~~~~~
EVP_MD_CTX_create
/home/local/ASUAD/ychen404/Open-TEE/emulator/internal_api/openssl_1_0_2_beta_rsa_oaep.c:39:13: warning: unused variable ‘c’ [-Wunused-variable]
EVP_MD_CTX c;
^
ERROR: Process failed with exit code 1.

It seems that the problem comes from EVP_MD_CTX.
After googling, I found out EVP_MD_CTX is related to openssl.
But I've no idea which version of openssl should I use, after updating to the latest one (1.1.1f), I am still facing the same problem. Should I downgrade my openssl to a specific version? Or I am running into some other issue?

Following is the version of my openssl.
$ openssl version
OpenSSL 1.1.1f 31 Mar 2020

Any help is appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions