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

After I installed openssl 3, I used v0.7.0 to compile, but the compilation reported an error. The EVP_PKEY_get_id function could not be found, and it seemed that libcurl could not find this function. Should I change the version of libcurl? #77

Closed
Elsa-is-My-Muse opened this issue Jun 1, 2024 · 8 comments
Assignees

Comments

@Elsa-is-My-Muse
Copy link
Contributor

Describe the bug

[ 51%] Linking CXX static library libslac_fsm_ev.a
[ 51%] Built target slac_fsm_ev
/usr/bin/ld: ../lib/libcurl.a(openssl.c.o): in function Curl_ossl_certchain': openssl.c:(.text+0xcb0): undefined reference to EVP_PKEY_get_id'
/usr/bin/ld: openssl.c:(.text+0xd1b): undefined reference to EVP_PKEY_get_bn_param' /usr/bin/ld: openssl.c:(.text+0xd35): undefined reference to EVP_PKEY_get_bn_param'
/usr/bin/ld: openssl.c:(.text+0xea7): undefined reference to EVP_PKEY_get_bn_param' /usr/bin/ld: openssl.c:(.text+0xec1): undefined reference to EVP_PKEY_get_bn_param'
/usr/bin/ld: openssl.c:(.text+0xedb): undefined reference to EVP_PKEY_get_bn_param' /usr/bin/ld: ../lib/libcurl.a(openssl.c.o):openssl.c:(.text+0xef5): more undefined references to EVP_PKEY_get_bn_param' follow
/usr/bin/ld: ../lib/libcurl.a(openssl.c.o): in function cert_stuff': openssl.c:(.text+0x2f13): undefined reference to EVP_PKEY_get_id'
/usr/bin/ld: ../lib/libcurl.a(openssl.c.o): in function verifystatus': openssl.c:(.text+0x47ad): undefined reference to SSL_get1_peer_certificate'
/usr/bin/ld: ../lib/libcurl.a(openssl.c.o): in function populate_x509_store': openssl.c:(.text+0x567c): undefined reference to X509_STORE_load_file'
/usr/bin/ld: openssl.c:(.text+0x570b): undefined reference to X509_STORE_load_path' /usr/bin/ld: ../lib/libcurl.a(openssl.c.o): in function servercert':
openssl.c:(.text+0x77ae): undefined reference to `SSL_get1_peer_certificate'
collect2: error: ld returned 1 exit status
make[2]: *** [_deps/libcurl-build/src/CMakeFiles/curl.dir/build.make:722: _deps/libcurl-build/src/curl] Error 1
make[1]: *** [CMakeFiles/Makefile2:4228: _deps/libcurl-build/src/CMakeFiles/curl.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

After I installed openssl 3, I used v0.7.0 to compile, but the compilation reported an error. The EVP_PKEY_get_id function could not be found, and it seemed that libcurl could not find this function. Should I change the version of libcurl?

To Reproduce

No response

Anything else?

No response

@AssemblyJohn
Copy link
Collaborator

Hello!

More information of the method of building would be much appreciated so that I can try and reproduce the issue on my machine. How you are building, what OS you're running etc.

@Elsa-is-My-Muse
Copy link
Contributor Author

Elsa-is-My-Muse commented Jun 3, 2024 via email

@AssemblyJohn
Copy link
Collaborator

Thank you for the information, it solves it, since Ubuntu 20 is not supported any more. We did not had the time to update our docs, but you should try with Ubuntu 22. I'll push to have this solved quickly.

@Elsa-is-My-Muse
Copy link
Contributor Author

Elsa-is-My-Muse commented Jun 3, 2024 via email

@AssemblyJohn
Copy link
Collaborator

Let us know if it solved your problem. I'm also updating the docs/docker for Ubuntu 22.

@barsnick
Copy link

barsnick commented Jun 3, 2024

I'm also updating the docs/docker for Ubuntu 22.

There's a draft pull request here by @hikinggrass which has many changes in the Dockerfile to fix the Debian docker:
EVerest/everest-utils#129

@Elsa-is-My-Muse
Copy link
Contributor Author

Elsa-is-My-Muse commented Jun 4, 2024 via email

@AssemblyJohn
Copy link
Collaborator

Hello!

I've encountered the ubuntu crash too, I don't think it's related to the software stack, but seems to be some OS problem. I've found a solution in between, compile with 1/4 the count of your cores and the build is a more stable.

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

3 participants