-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
undefined reference error in compiling #311
Comments
What version of jwt-cpp are you using? |
0.6.0 thanks for your reply @prince-chrismc |
🤔 hmm are you sure about that version of openssl is the one being pulled into your build scripts and being linked against? I wanted to double check the docs but I am only getting a 404 https://www.openssl.org/docs/man1.0.2/man3/EVP_MD_CTX_destroy.html This should be the correct logic, in 1.1.0 they changed everything to free Line 486 in ce1f9df
You can check the CI but we compile from source and test each one jwt-cpp/.github/workflows/ssl.yml Line 14 in ce1f9df
|
i used the command scl enable devtoolset-9 "openssl --version" |
more info I think it may related to rs256 algorighm? |
Can you comment out the library code and print How are you linking to OpenSSL? What build system are you using? |
Yes the cryptographic keys use the evp context, the hmac is very basic (and insecure) so it doesn't use APIs that have changed |
seems like i use openssl 1.1.0 version for linker but i have another openssl 1.0.2 version installed on my machine. |
I highly recommend using a package manager to manage 3rd party dependencies. Unfortunately there is jot much I can , I will mark this as closed. Bestnof luck! |
What's your question?
undefined reference error in compiling
Additional Context
I used centoOS 7 and openssl version is OpenSSL 1.0.2k-fips 26 Jan 2017.
get error while compiling
/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: librestpp_lib.a(auth.cpp.o): in function
jwt::algorithm::rsa::verify(std::string const&, std::string const&, std::error_code&) const': *****/jwt-cpp/jwt.h:957: undefined reference to
EVP_MD_CTX_destroy'/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: *****/jwt/jwt-cpp/jwt.h:957: undefined reference to `EVP_MD_CTX_create'
collect2: error: ld returned 1 exit status
The text was updated successfully, but these errors were encountered: