About News Download Docs Forum Bugs Contact

Forum

Information

Tools

Resources

Problem with curl and git if dev version of LibreSSL is installed

Submitted by SneakyThunder 14 Feb, 2022 17:42 #

Hi! Im having some weird issues with 'curl' when its compiled with 'devel' version of LibreSSL. It seems to work normal by itself, but when I compile 'git' with it and try to use "git clone" I get error message like this: Cloning into 'repo-name'... git: 'remote-https' is not a git command. See 'git --help'.

I dont see any errors while compiling curl or libreSSL, but in git compile log I found this:

configure:5463: checking for curl_global_init in -lcurl
configure:5486: gcc -o conftest -march=x86-64 -fPIC -DPIC -pipe -DPIC -fPIC -O3  -s conftest.c -lcurl   >&5
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'sk_pop_free'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'SSL_CTX_set_min_proto_version'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'OPENSSL_add_all_algorithms_noconf'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'sk_value'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'SSL_load_error_strings'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'EVP_MD_CTX_create'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'SSL_CTX_set_max_proto_version'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'SSL_CTX_add0_chain_cert'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'CONF_modules_free'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'ENGINE_cleanup'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'ERR_free_strings'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'EVP_cleanup'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'EVP_MD_CTX_destroy'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'SSL_CTX_clear_chain_certs'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'sk_num'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'SSL_library_init'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'sk_pop'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib/libcurl.so: undefined reference to 'SSL_get_ex_new_index'
collect2: error: ld returned 1 exit status
configure:5486: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "git"
| #define PACKAGE_TARNAME "git"
| #define PACKAGE_VERSION "2.35.1"
| #define PACKAGE_STRING "git 2.35.1"
| #define PACKAGE_BUGREPORT "git@vger.kernel.org"
| #define PACKAGE_URL ""
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_ALLOCA 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| char curl_global_init ();
| int
| main (void)
| {
| return curl_global_init ();
|   ;
|   return 0;
| }
configure:5496: result: no`

I dont have this problem with stable LibreSSL, but Tor requires devel version to build so I cant use it

Edited 14 Feb, 2022 18:08
Submitted by SneakyThunder 14 Feb, 2022 17:59 #

Ok, idk how to fix the formatting so I just posted entire log here: https://pastebin.com/7JdVGMgy

Submitted by stealth 15 Feb, 2022 21:22 #

Likely curl needs to be recompiled against this version of libressl first?

Submitted by SneakyThunder 16 Feb, 2022 11:50 #

Likely curl needs to be recompiled against this version of libressl first?

I tried, but it didnt fix the problem.

Also when I run cleanse it doesnt show any errors

Edited 16 Feb, 2022 11:51
 
Register or login to post a reply.