-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Error out if SSL not found/usable, when given --with-ssl=...
?
#3824
Comments
config --with-ssl=...
not found/usable?--with-ssl=...
?
If --with-ssl is used and configure still couldn't enable SSL this creates an error instead of just silently ignoring the fact. Suggested-by: Isaiah Norton Fixes #3824
It should be noticed that the script does verify that the given prefix (if one is provided) includes the correct header file. And also, my attempts in landing a patch (see #3830) similar to mentioned here has failed so far... |
Yes, this is simplified example. My original issue was due to the “-ldl -lpthread” link order issue, which caused OpenSSL detection to silently fail during the feature checks. Thanks for submitting the fix (failures look like transient issue?) |
No, the "fix" clearly fails on some builds so it's not adequate. |
If --with-ssl is used and configure still couldn't enable SSL this creates an error instead of just silently ignoring the fact. Suggested-by: Isaiah Norton Fixes #3824
I did this
Remove my ssl libraries:
then configure:
I expected the following
configure should error out because
--with-ssl
was supplied, but no SSL can be found, as confirmed inconfig.log
:There is some logic in
configure.ac
which seems intended to handle this case, but it is nested 1-2 levels too deep inside otherif
statements:curl/configure.ac
Lines 1821 to 1824 in 55734f3
curl/libcurl version
curl-7.64.1.tar.gz
operating system
linux, GCC 4.8.2
patch
The following patch raises the error I expect, however, I've written ~0 M4 so not sure about the implications. Happy to submit a PR if this is useful:
The text was updated successfully, but these errors were encountered: