Skip to content
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

./configure --with-openssl fails with OpenSSL 1.1, SSL_library_init now a macro #571

Closed
Luo2Jie2 opened this issue Jul 10, 2018 · 4 comments
Labels
SSL/NSS Issues and PRs about SSL, TLS and other crypto-related matters

Comments

@Luo2Jie2
Copy link

When running ./configure --with-openssl on Debian Stretch. The ./configure output ends with

checking for OpenSSL version via pkg-config... 1.1.0f found
checking for OpenSSL cflags...
checking for OpenSSL ldflags... -lssl -lcrypto
checking for openssl/ssl.h... yes
checking for SSL_library_init... no
configure: error: "OpenSSL not found, required for SSL support"

File ssl.h which defines SSL_library_init is present, but configure can't see the
symbol SSL_library_init.

Quoting https://bugs.archlinux.org/task/53809 << in openssl 1.1,
SSL_library_init is a preprocessor macro, not an actual symbol; so
libesmtp's ./configure erroneously thinks that libssl isn't available, >>

Roger

@Luo2Jie2
Copy link
Author

Workaround (not very elegant):
Look in script configure for the two lines which declare
if test "x$ac_cv_func_SSL_library_init" = xyes; then :
and replace them with
if test xyes = xyes; then :

Roger

@zykh
Copy link
Contributor

zykh commented Jul 12, 2018

not commenting on the issue, but workaround for workaround: why not enabling caching (./configure ... -C) and override the cached value of the ac_cv_func_SSL_library_init var?

@Luo2Jie2
Copy link
Author

Luo2Jie2 commented Jul 12, 2018 via email

@Luo2Jie2
Copy link
Author

It looks as if this is a duplicate of issue "openssl 1.1 support #429", April 2017,
#429 and covered by
"Add support for openssl-1.1.0 #504", Nov 2017,
#504

Roger

@jimklimov jimklimov added the SSL/NSS Issues and PRs about SSL, TLS and other crypto-related matters label Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SSL/NSS Issues and PRs about SSL, TLS and other crypto-related matters
Projects
None yet
Development

No branches or pull requests

3 participants