-
Notifications
You must be signed in to change notification settings - Fork 46
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 with variable openssl11 #2
Comments
The block starting at https://github.com/cdbattags/lua-resty-jwt/blob/master/lib/resty/evp.lua#L135 seems to be the issue. |
foo@bar:~$ /usr/local/openresty/openssl/bin/openssl version
OpenSSL 1.1.0h 27 Mar 2018 |
The check for OpenSSL 1.1. via the variable Thus the call to either Over here I have the following:
The symbol for OpenSSL 1.1 is present, the one for OpenSSL 1.0 not:
|
I'm extremely confused. I have the same as the above on my box currently. Hmm... |
Is there another version installed as well? Does your openresty need a restart after an upgrade maybe? |
Looks like a conflict, hmmm.
|
A little more context: I finally added wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main"
apt-get update
apt -y install openresty |
@cybrq-as, also isn't it kind of odd that the first line of
Shouldn't it still be there in the else block of Edit: Ohh, you meant just vanilla OpenResty. Got it. |
@cdbattags I don't think the files in My understanding is ffi.C gets its symbols from the usual library path (e.g. I could, of course, be wrong on all this since I'm not super familiar with this mess. |
@euank, so then where would those shared object ( Edit: They are already packaged up with the latest release of OpenResty it's just a matter of properly linking to |
Oops, on ubuntu libraries are in a different location than on my distro ( For something you installed yourself, you can usually override that by setting LD_LIBRARY_PATH to include your librarie's directory, or alternately putting it in You could use Edit: I may be barking up the wrong tree entirely; I'm not totally sure how libssl is ending up in luajit's ffi.C without an explicit call to 'ffi.load'; depending how that's happening, it might be pulling it in from the usual linker paths, or it might be getting it from the openresty specific paths |
So per jkeys089/lua-resty-hmac#11 and @jkeys0089's notes it looks like NGINX has this lib properly linked... Why on Earth would I still be getting this? |
Paging @cybrq-as! Looks to be an issue with the way openssl11 is defined. Any insight into this error?
The text was updated successfully, but these errors were encountered: