luacrypto icon indicating copy to clipboard operation
luacrypto copied to clipboard

Error: Build error: Failed compiling object src/lcrypto.o

Open mridulbirla opened this issue 8 years ago • 5 comments

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?

mridulbirla avatar Nov 09 '16 18:11 mridulbirla

Same issue here. $ luarocks install luacrypto fails with the same reason. Debian Stretch, OpenSSL 1.1.0c, Lua 5.1.5

S4mw1s3 avatar Dec 21 '16 15:12 S4mw1s3

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.

amnonpaz avatar Jan 11 '17 09:01 amnonpaz

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

evanlabs avatar Mar 04 '17 06:03 evanlabs

Same issue here. Just do, apt-get install libssl1.0-dev

den4oman avatar Jul 28 '17 09:07 den4oman

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:

  1. as root edit /etc/apt/sources.list.
  2. add deb http://archive.debian.org/debian-security stretch/updates main
  3. sudo apt update
  4. sudo 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.

zdebanos avatar Aug 06 '23 13:08 zdebanos