Article ID: 000058508 Content Type: Error Messages Last Reviewed: 11/03/2022

Unable to Compile the sgx-ra-sample in an Ubuntu* Docker Container due to Undefined References to "OPENSSL_1_1_1"

Environment

OpenSSL 1.1.0

Ubuntu 16.04*

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Steps to install and set the path to OpenSSL 1.1.1 for the sgx-ra-sample

Description
  • Attempted to make the sgx-ra-sample in an Ubuntu* Docker Container.
  • The command: g++ -tcd=c++11 -g -O2 -L/opt/sgxsdk/lib64 -L /opt/openssl/1.1.0i/lib -o sp sp.o…, fails with several errors similar to:

/usr/bin/ld: /lib/x86_64-linux-gnu/libssl.so.1.1: undefined reference to 'EVP_aria_256_gcm@OPENSSL_1_1_1'

Resolution
  1. Run the following command to get your system's OpenSSL version. It must be at least 1.1.1:

    $ openssl version

  2. If the returned OpenSSL version is less than 1.1.1, download and install OpenSSL 1.1.1:

    $ wget https://www.openssl.org/source/openssl-1.1.1j.tar.gz
    $ tar xf openssl-1.1.1j.tar.gz
    $
    cd openssl-1.1.1j
    $ ./config --prefix=/opt/openssl/1.1.1j --openssldir=/opt/openssl/1.1.1j
    $ make
    $ sudo make install

  3. Configure and compile the sgx-ra-sample, pointing to the OpenSSL1.1.1 directory:

    $ ./bootstrap
    $ ./configure --with-openssldir=/opt/openssl/1.1.1j
    $ make

Related Products

This article applies to 1 products