-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Some OpenSSL configure tests not linking OpenSSL #2199
Comments
@MarcelRaad please see if #2234 fixes your issue |
It doesn't fix the main issue here, but it fixes the build for me if I manually delete the lines removing -lcrypto again in the resulting makefile. |
We typically don't bother very much with static builds, especially not without pkg-config data since it is a futile race trying to make that to work for everyone. In the past That said, when I install the latest openssl git version static-only, my curl configure script detects and links with that just fine:
|
Static linking without pkg-config works fine with My use case is creating a libcurl Conan package referencing an OpenSSL Conan package, so the pkg-config generated by OpenSSL is not really usable, unfortunately. |
What OpenSSL version are you trying this with? |
This was originally OpenSSL 1.1.0g and curl 7.57.0. I just retried with OpenSSL 1.1.0h and curl 7.60.0 and the result is the same:
|
Fix the -ldl and -ldl + -lpthread checks for OpenSSL, necessary for building with static libs without pkg-config. Reported-by: Marcel Raad Fixes #2199
I could reproduce the issue using 1.1.0h and with the fix from #2659 it then subsequently works! |
Great, thank you very much! I can confirm it works for me too. |
I did this
./configure --enable-warnings --enable-werror --enable-static --disable-shared [...] --with-ssl="/[...]/openssl/[...]"
OpenSSL's lib directory only contains libcrypto.a and libssl.a.
From config.log (https://github.com/curl/curl/blob/curl-7_57_0/configure.ac#L1638):
I expected the following
-lcrypto also being passed to the -ldl and -ldl -lpthread tests
curl/libcurl version
7.57.0 (OpenSSL 1.1.0g)
operating system
Ubuntu 16.04 Xenial
The text was updated successfully, but these errors were encountered: