Created attachment 519690 [details] build.log www-client/lynx fails to build with >=dev-libs/openssl-1.1.0, with the following errors/warnings: ../../../WWW/Library/Implementation/HTTP.c: In function ‘HTGetSSLHandle’: ../../../WWW/Library/Implementation/HTTP.c:172:17: error: too few arguments to function ‘SSL_CTX_new’ if ((ssl_ctx = SSL_CTX_new()) != NULL) { ^~~~~~~~~~~ ../../../WWW/Library/Implementation/HTTP.c:980:6: warning: implicit declaration of function ‘SSL_load_error_strings’; did you mean ‘ERR_lib_error_string’? [-Wimplicit-function-declaration] SSL_load_error_strings(); ^~~~~~~~~~~~~~~~~~~~~~ ../../../WWW/Library/Implementation/HTTP.c:1176:25: warning: implicit declaration of function ‘ASN1_STRING_data’; did you mean ‘ASN1_STRING_set0’? [-Wimplicit-function-declaration] cert_host = (char *) ASN1_STRING_data(gn->d.ia5); ^~~~~~~~~~~~~~~~ Though they are no errors, the warnings are also severe as they mean Lynx will fail to load at runtime, missing some symbols. This is due to changes in OpenSSL 1.1.
Created attachment 519692 [details, diff] lynx-2.8.9_pre16-openssl-1.1-compat.patch This patch fixes both the build error (caused by the SSLEAY_VERSION_NUMBER macro no longer being available) and all further issues with functions no longer available in OpenSSL 1.1.0. I've sent it to upstream's dev mailing list.
I couldn't reproduce this with www-client/lynx-2.8.9_pre16 and dev-libs/openssl-1.1.1. Perhaps that's because the openssl ebuild doesn't enable the disable-deprecated flag anymore?
Since we decided to no longer build openssl without deprecated features, this bug can now be considered as fixed (but will eventually reappear once openssl upstream finally removed deprecated features from their code).