curl-rust icon indicating copy to clipboard operation
curl-rust copied to clipboard

failed to link in Ubuntu 20.04

Open keepsimple1 opened this issue 3 years ago • 1 comments
trafficstars

I'm using curl 0.4.42. My program built OK on macOS, but failed to build on Ubuntu 20.04 due to many linker errors:

Two examples are:

          /usr/include/openssl/x509.h:85: undefined reference to `OPENSSL_sk_num'
          /usr/include/openssl/x509.h:85: undefined reference to `OPENSSL_sk_value'

I installed libc6-dev, libssl-dev and libcurl4-openssl-dev, but did not resolve the errors. What are I missing to fix these linker errors? Thanks.

keepsimple1 avatar Mar 09 '22 22:03 keepsimple1

I get the same kind of error on Fedora, even though I installed openssl-devel and libcurl-devel. Did you solve your issue?

undefined reference to `EVP_PKEY_id'
undefined reference to `SSL_get_peer_certificate'
undefined reference to `EVP_PKEY_id'
undefined reference to `SSL_get_peer_certificate'

real-felix avatar May 31 '22 19:05 real-felix