Closed
Description
Steps to reproduce the behavior
rbenv install 2.6.10
Details
The build fails with mismatched OpenSSL error.
- I have both [email protected] and openssl@3 installed in homebrew
- I run macOS Sonoma 14.2
- I have ruby-build installed through homebrew, version 20231107
ruby-build seem to correctly detect [email protected]:
-> ./configure "--prefix=$HOME/.rbenv/versions/2.6.10" --enable-shared --with-readline-dir=/usr/local/opt/readline --with-libyaml-dir=/usr/local/opt/libyaml --with-gmp-dir=/usr/local/opt/gmp --with-openssl-dir=/usr/local/opt/[email protected]
But this somehow gets lost during compilation phase:
compiling ossl.c
ossl.c:311:14: error: 'ERR_get_error_line_data' is deprecated [-Werror,-Wdeprecated-declarations]
while ((e = ERR_get_error_line_data(&file, &line, &data, &flags))) {
^
/usr/local/Cellar/openssl@3/3.1.4/include/openssl/err.h:424:1: note: 'ERR_get_error_line_data' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/local/Cellar/openssl@3/3.1.4/include/openssl/macros.h:193:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
# define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
^
/usr/local/Cellar/openssl@3/3.1.4/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
# define OSSL_DEPRECATED(since) __attribute__((deprecated))
^
1 error generated.