「OPENSSL_1_1_1」への未定義の参照のため、Ubuntu* Docker コンテナーで sgx-ra-サンプルをコンパイルできません。
コンテンツタイプ: エラーメッセージ | 記事 ID: 000058508 | 最終改訂日: 2022/11/03
コマンド: g++ -tcd=c++11 -g -O2 -L/opt/sgxsdk/lib64 -L /opt/openssl/1.1.0i/lib -o sp.o.、 次のような複数のエラーで失敗します。
/usr/bin/ld: /lib/x86_64-linux-gnu/libssl.so.1.1: 'EVP_aria_256_gcm@OPENSSL_1_1_1' への未定義の参照
$ openssl バージョン
$ 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
$ 作る
$ sudo make install
$ ./ブートストラップ
$ ./configure --with-openssldir=/opt/openssl/1.1.1j
$ 作る