Nexusoft / LLL-TAO

LLL: Lower Level Library - TAO: Tritium, Amine, and Obsidian as a high performance application framework
MIT License
60 stars 28 forks source link

openssl compile error #140

Closed kr1z1s closed 1 year ago

kr1z1s commented 1 year ago

I use openssl version - openssl-1.1.0l - https://www.openssl.org/source/old/1.1.0/openssl-1.1.0l.tar.gz

But i have this error

Compiling build/main.o build/LLC_eckey.o: In functionLLC::ECKey::SetCompactSignature(base_uint<256u>, std::vector<unsigned char, std::allocator > const&)': eckey.cpp:(.text+0x120f): undefined reference to ECDSA_SIG_set0' build/LLC_eckey.o: In functionLLC::ECKey::SignCompact(base_uint<256u>, std::vector<unsigned char, std::allocator >&)': eckey.cpp:(.text+0x19b4): undefined reference to ECDSA_SIG_get0' build/LLC_bignum.o: In functionLLC::CBigNum::getint32() const': bignum.cpp:(.text+0x2199): undefined reference to BN_is_negative' build/LLC_bignum.o: In functionLLC::CBigNum::operator!() const': bignum.cpp:(.text+0x3908): undefined reference to BN_is_zero' build/LLC_bignum.o: In functionLLC::operator-(LLC::CBigNum const&)': bignum.cpp:(.text+0x582d): undefined reference to BN_is_negative' build/LLC_bignum.o: In functionLLC::CBigNum::ToString[abi:cxx11](unsigned int) const': bignum.cpp:(.text+0x68d9): undefined reference to BN_is_negative' build/LLP_socket.o: In functionLLP::Socket::Socket(LLP::Socket const&)': socket.cpp:(.text+0x40a): undefined reference to SSL_up_ref' build/LLP_socket.o: In functionLLP::Socket::Close()': socket.cpp:(.text+0x5eb): undefined reference to SSL_is_init_finished' build/LLP_socket.o: In functionLLP::Socket::IsSSL() const': socket.cpp:(.text+0xbee): undefined reference to SSL_is_init_finished' build/LLP_socket.o: In functionLLP::Socket::Socket(int, LLP::BaseAddress const&, bool const&)': socket.cpp:(.text+0x1b7e): undefined reference to SSL_is_init_finished' build/LLC_x509_cert.o: In functionLLC::X509Cert::GenerateRSA(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned long)': x509_cert.cpp:(.text+0x1197): undefined reference to X509_set1_notBefore' x509_cert.cpp:(.text+0x11b0): undefined reference toX509_set1_notAfter' build/LLC_x509_cert.o: In function LLC::X509Cert::GenerateEC(base_uint<512u> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long)': x509_cert.cpp:(.text+0x30b8): undefined reference toX509_set1_notBefore' x509_cert.cpp:(.text+0x30d2): undefined reference to X509_set1_notAfter' build/LLC_x509_cert.o: In functionLLC::X509Cert::Hash()': x509_cert.cpp:(.text+0x356c): undefined reference to X509_get_version' x509_cert.cpp:(.text+0x3656): undefined reference toX509_getm_notBefore' x509_cert.cpp:(.text+0x36a6): undefined reference to X509_getm_notAfter' build/LLP_network.o: In functionLLP::NetworkInitialize()': network.cpp:(.text+0x167): undefined reference to OPENSSL_init_ssl' network.cpp:(.text+0x170): undefined reference toOPENSSL_init_ssl' network.cpp:(.text+0x175): undefined reference to TLS_method' network.cpp:(.text+0x1bc): undefined reference toSSL_CTX_set_options' build/Legacy_crypter.o: In function Legacy::EncryptSecret(std::vector<unsigned char, secure_allocator<unsigned char> > const&, std::vector<unsigned char, secure_allocator<unsigned char> > const&, base_uint<576u> const&, std::vector<unsigned char, std::allocator<unsigned char> >&)': crypter.cpp:(.text+0x8c4): undefined reference toEVP_CIPHER_CTX_reset' build/Legacy_crypter.o: In function Legacy::Crypter::Encrypt(std::vector<unsigned char, secure_allocator<unsigned char> > const&, std::vector<unsigned char, std::allocator<unsigned char> >&)': crypter.cpp:(.text+0xb3d): undefined reference toEVP_CIPHER_CTX_reset' build/Legacy_crypter.o: In function Legacy::Crypter::Decrypt(std::vector<unsigned char, std::allocator<unsigned char> > const&, std::vector<unsigned char, secure_allocator<unsigned char> >&) [clone .part.61]': crypter.cpp:(.text+0xd26): undefined reference toEVP_CIPHER_CTX_reset' collect2: error: ld returned 1 exit status`

Which version should I use?

VidereLicet commented 1 year ago

Need to use correct version @1.1.1 I believe, these issues are usually related to versions