Project

General

Profile

Actions

Bug #17628

closed

macOS Ruby 3.0.0 source build compilation errors w/ OpenSSL 3.0.0-alpha12-dev

Added by TomaisLeannan (Leannan Tomais) about 3 years ago. Updated about 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:102484]

Description

Following this guide and Ruby 3.0.0 I attempted to install Ruby 3.0.0 from source on macOS Catalina 10.15.7, but failed. When running "make" after "./configure" in the extracted Ruby directory, I saw some compilation errors regarding deprecated OpenSSL headers. I am using OpenSSL 3.0.0-alpha12-dev.

OpenSSL 3.0.0-alpha12-dev (Library: OpenSSL 3.0.0-alpha12-dev )
built on: Sat Jan 30 14:16:25 2021 UTC
platform: darwin64-x86_64
options: bn(64,64)
compiler: cc -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -D_REENTRANT -DOPENSSL_BUILDING_OPENSSL -DNDEBUG

Here are some example compilation errors. There are many, many others just like the ones below:

/usr/local/include/openssl/evp.h:1271:1: note: 'EVP_PKEY_get0_EC_KEY' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/local/include/openssl/macros.h:180:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/include/openssl/macros.h:60:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_ec.c:383:13: warning: 'EC_KEY_set_public_key' is deprecated [-Wdeprecated-declarations]
    switch (EC_KEY_set_public_key(ec, point)) {
            ^
/usr/local/include/openssl/ec.h:1063:1: note: 'EC_KEY_set_public_key' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub);

It looks like that the OpenSSL version I'm using is perhaps too cutting edge?


Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #17796: ruby does not compile with openssl-alpha14Third Party's IssueActions
Actions #1

Updated by TomaisLeannan (Leannan Tomais) about 3 years ago

  • Description updated (diff)
Actions #3

Updated by jeremyevans0 (Jeremy Evans) about 3 years ago

  • Status changed from Open to Closed

I don't think this should be considered a bug in Ruby. You should not expect Ruby to work with prerelease software that is incompatible with previous versions. Since this issue is already being tracked in ruby/openssl on GitHub, I'm going to close this.

Actions #4

Updated by rhenium (Kazuki Yamaguchi) about 3 years ago

  • Has duplicate Bug #17796: ruby does not compile with openssl-alpha14 added
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0