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

Build error (undefined reference to `EVP_PKEY_CTX_set_rsa_keygen_bits') #146

Open
fineless71 opened this issue Feb 26, 2023 · 2 comments
Open

Comments

@fineless71
Copy link

I'm trying to build licensecc on Arch Linux and I get an error. I've tried on the develop branch and v2.0.0.
First I ran cmake .. -DCMAKE_INSTALL_PREFIX=../install -DOPENSSL_INCLUDE_DIR=/usr/include/openssl -DOPENSSL_SSL_LIBRARY=/usr/lib -DOPENSSL_CRYPTO_LIBRARY=/usr/lib/libcrypto.so.1.1, from this comment, which worked. Then I ran make and got this error:

[ 11%] Building CXX object extern/license-generator/src/license_generator/CMakeFiles/lccgen.dir/open-license-main.cpp.o
[ 12%] Linking CXX executable lccgen
/usr/bin/ld: liblicense_generator_lib.a(crypto_helper_ssl.cpp.o): in function `license::CryptoHelperLinux::generateKeyPair()':
crypto_helper_ssl.cpp:(.text+0xf4): undefined reference to `EVP_PKEY_CTX_set_rsa_keygen_bits'
/usr/bin/ld: liblicense_generator_lib.a(crypto_helper_ssl.cpp.o): in function `license::CryptoHelperLinux::signString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const':
crypto_helper_ssl.cpp:(.text+0x6f4): undefined reference to `EVP_DigestSignUpdate'
collect2: error: ld returned 1 exit status
make[2]: *** [extern/license-generator/src/license_generator/CMakeFiles/lccgen.dir/build.make:106: extern/license-generator/src/license_generator/lccgen] Error 1
make[1]: *** [CMakeFiles/Makefile2:1220: extern/license-generator/src/license_generator/CMakeFiles/lccgen.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
@fineless71 fineless71 changed the title Build error Build error (undefined reference to `EVP_PKEY_CTX_set_rsa_keygen_bits') Feb 26, 2023
@wenkane
Copy link

wenkane commented Apr 14, 2023

I also ran into this problem, how did you fix it?

@fineless71
Copy link
Author

I also ran into this problem, how did you fix it?

I didn't ☹️

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

2 participants