Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
libcurl build from source with openssl
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Nir Azkiel via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 24 Feb 2021 16:40:31 +0200
Hi,
I got libcurl downloaded and build, I would like to add HTTPS support but I
keep getting linkage errors.
I added this flag to libcurl Externalproject_Add
-DCMAKE_USE_OPENSSL=ON
also I added link to ssl like this
set(OPENSSL_USE_STATIC_LIBS TRUE)
find_package(OpenSSL REQUIRED)
target_link_libraries(curl INTERFACE OpenSSL::SSL OpenSSL::Crypto).
I am using libcurl latest release : 7.75
My configure step find the ssl package:
Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.a (found version
"1.0.2g")
I keep getting linkage errors like this:
../../libcurl/libcurl_install/lib/libcurl.a(openssl.c.o): In function
`ossl_log_tls12_secret':
3703/home/travis/build/Nir-Az/librealsense/build/third-party/libcurl/lib/vtls/openssl.c:270:
undefined reference to `SSL_get_session'
3704../../libcurl/libcurl_install/lib/libcurl.a(openssl.c.o): In
function `ossl_strerror':
3705/home/travis/build/Nir-Az/librealsense/build/third-party/libcurl/lib/vtls/openssl.c:354:
undefined reference to `ERR_error_string_n'
What could be the issue?
Thanks
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2021-02-24
Date: Wed, 24 Feb 2021 16:40:31 +0200
Hi,
I got libcurl downloaded and build, I would like to add HTTPS support but I
keep getting linkage errors.
I added this flag to libcurl Externalproject_Add
-DCMAKE_USE_OPENSSL=ON
also I added link to ssl like this
set(OPENSSL_USE_STATIC_LIBS TRUE)
find_package(OpenSSL REQUIRED)
target_link_libraries(curl INTERFACE OpenSSL::SSL OpenSSL::Crypto).
I am using libcurl latest release : 7.75
My configure step find the ssl package:
Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.a (found version
"1.0.2g")
I keep getting linkage errors like this:
../../libcurl/libcurl_install/lib/libcurl.a(openssl.c.o): In function
`ossl_log_tls12_secret':
3703/home/travis/build/Nir-Az/librealsense/build/third-party/libcurl/lib/vtls/openssl.c:270:
undefined reference to `SSL_get_session'
3704../../libcurl/libcurl_install/lib/libcurl.a(openssl.c.o): In
function `ossl_strerror':
3705/home/travis/build/Nir-Az/librealsense/build/third-party/libcurl/lib/vtls/openssl.c:354:
undefined reference to `ERR_error_string_n'
What could be the issue?
Thanks
-- *ניר אזקיאלNir Azkiel*
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2021-02-24