Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mridulbirla opened this issue Nov 9, 2016 · 5 comments
Open

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

mridulbirla opened this issue Nov 9, 2016 · 5 comments

Comments

@mridulbirla
Copy link

mridulbirla commented Nov 9, 2016

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?

@S4mw1s3
Copy link

S4mw1s3 commented Dec 21, 2016

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

@amnonpaz
Copy link

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: openssl/openssl#962 (see mattcaswell answer).
This means that luacrypto is not compatible with openssl v1.1.0.

@evanlabs
Copy link

evanlabs commented Mar 4, 2017

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

@den4oman
Copy link

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

@zdebanos
Copy link

zdebanos commented Aug 6, 2023

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: rvm/rvm#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants