luacrypto
luacrypto copied to clipboard
Error: Build error: Failed compiling object src/lcrypto.o
I am trying to install luacrypto and i get this error . My gcc version is 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC). I have Lua 5.1.4 .
An help will be appreciated?
Same issue here. $ luarocks install luacrypto fails with the same reason. Debian Stretch, OpenSSL 1.1.0c, Lua 5.1.5
I'm working with v1.0.2. Looking at the changes log, I see this major change in v1.1.0: "Most* libcrypto and libssl public structures were made opaque, including: BIGNUM and associated types, EC_KEY and EC_KEY_METHOD, DH and DH_METHOD, DSA and DSA_METHOD, RSA and RSA_METHOD, BIO and BIO_METHOD, EVP_MD_CTX, EVP_MD, EVP_CIPHER_CTX, EVP_CIPHER, EVP_PKEY and associated types, HMAC_CTX, X509, X509_CRL, X509_OBJECT, X509_STORE_CTX, X509_STORE, X509_LOOKUP, X509_LOOKUP_METHOD"
Here you can find detailed explanation about this change: https://github.com/openssl/openssl/issues/962 (see mattcaswell answer). This means that luacrypto is not compatible with openssl v1.1.0.
I also encountered openssl-1.1.0c compatibility issues before, but I have done some compatibility changes and applied to my own project, which may be helpful to you.
Https://github.com/evanlabs/luacrypto
Same issue here. Just do, apt-get install libssl1.0-dev
In case you're wondering how to install libssl1.0-dev (a deprecated package not available by default on Debian 11 in my case), here's how you can do it (source: https://github.com/rvm/rvm/issues/4764).
Shortly said, what you need to do in debian is mentioned below. It at least compiled after running configure script:
- as root edit
/etc/apt/sources.list. - add
deb http://archive.debian.org/debian-security stretch/updates main sudo apt updatesudo apt install libssl1.0-dev
The thread mentioned above is kinda old but this solution is from april 2023, so it should work for now.