ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:110670] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS)
@ 2022-11-09 13:15 thomthom (Thomas Thomassen)
  2022-11-10 12:02 ` [ruby-core:110681] " thomthom (Thomas Thomassen)
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: thomthom (Thomas Thomassen) @ 2022-11-09 13:15 UTC (permalink / raw)
  To: ruby-core

Issue #19115 has been reported by thomthom (Thomas Thomassen).

----------------------------------------
Bug #19115: OpenSSL fails to autoload (macOS)
https://bugs.ruby-lang.org/issues/19115

* Author: thomthom (Thomas Thomassen)
* Status: Open
* Priority: Normal
* ruby -v: 3.1.2, 3.2.0dev
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
Related discussion: https://bugs.ruby-lang.org/issues/18876

We are seeing OpenSSL failing to autoload with the Ruby build we've been using. (We first observed this when using `Gem.install` that relies on autoload of OpenSSL). Our last working build was Ruby 2.7.2 with similar config.

This causes RubyGems' `HAVE_OPENSSL` constant to be incorrectly initialized, and subsequent calls to `Gem.install` fails. There might be other scenarios that fail as a result of that, but we've not managed to identified that.

```
 module Gem
   HAVE_OPENSSL = defined? OpenSSL::SSL # :nodoc:
```

Our Ruby 3.1.2 config:

```
'--prefix=/Users/user/.conan/data/ruby/3.1.2/sketchup/stable/build/bd95825b99dcb274d0e577fbdc953653a9ea0fb9' 
'--with-openssl-dir=/Users/user/.conan/data/openssl/1.1.1q/sketchup/stable/package/93ae0b0e7eebe0611c04d3e0d9bbf49fbce92332' 
'--with-libyaml-dir=/Users/user/.conan/data/libyaml/0.2.5/sketchup/stable/package/a56a950abed2e10dbdc26845400f0a034d97c454' 
'--disable-install-doc' 
'--disable-install-rdoc' 
'--enable-shared' 
'--enable-load-relative' 
'--with-static-linked-ext' 
'--without-debug' 
'--without-gdbm' 
'--without-gettext' 
'--without-irb' 
'--without-mkmf' 
'--without-rdoc' 
'--without-readline' 
'--without-tk' 
'--bindir=${prefix}/bin' 
'--sbindir=${prefix}/bin' 
'--libexecdir=${prefix}/bin' 
'--libdir=${prefix}/lib' 
'--includedir=${prefix}/include' 
'--oldincludedir=${prefix}/include' 
'--datarootdir=${prefix}/share' 'cflags=-mmacosx-version-min=10.14 -fdeclspec' 'cxxflags=-mmacosx-version-min=10.14 -fdeclspec' 'LDFLAGS=-mmacosx-version-min=10.14 -fdeclspec'
```

We also tested with latest build from master (November 8th 2022):

```
./ruby -ve 'p RbConfig::CONFIG["configure_args"]'
ruby 3.2.0dev (2022-11-07T19:35:21Z master b14f133054) [x86_64-darwin20]
" '--prefix=/Users/vmehta/ruby/ruby-master/' '--with-openssl-dir=/Users/vmehta/.conan/data/openssl/1.1.1q/sketchup/stable/package/f2d937af1fa19d5fc4095849a65d1927e9e75ae7/' '--with-libyaml-dir=/Users/vmehta/.conan/data/libyaml/0.2.5/sketchup/stable/package/3fc084e254210603a5c5aece184b2d45e2509b30' '--disable-install-doc' '--disable-install-rdoc' '--enable-shared' '--enable-load-relative' '--with-static-linked-ext' '--without-debug' '--without-gdbm' '--without-gettext' '--without-irb' '--without-mkmf' '--without-rdoc' '--without-readline' '--without-tk'"
```

Using an RVM of Ruby 3.1.2 this appear to work as expected. But using out configuration, that we've used for the Ruby 2.x versions are now failing. We haven't been able to figure out the reason for this.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:110681] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS)
  2022-11-09 13:15 [ruby-core:110670] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS) thomthom (Thomas Thomassen)
@ 2022-11-10 12:02 ` thomthom (Thomas Thomassen)
  2022-11-16  0:26 ` [ruby-core:110772] " alanwu (Alan Wu)
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: thomthom (Thomas Thomassen) @ 2022-11-10 12:02 UTC (permalink / raw)
  To: ruby-core

Issue #19115 has been updated by thomthom (Thomas Thomassen).


After looking into this closer, `autoload` has been broken with this config at least back to Ruby 2.5 (Did test anything older).

What caused us to detect this in Ruby 3.1 was that RubyGems was using `autoload` for OpenSSL where it previously use `require`. We've avoided noticing this bug by happenstance and now it's finally bitten us.

Strangely, I've not been able to reproduce this with any autoload..

```
# foo.rb
puts 'foo.rb loaded'
module Foo; end
```

```
autoload(:Foo, 'C:/Users/tthomas2/Desktop/foo')
=> nil

p defined?(Foo)
"constant"
=> "constant"

Foo
foo.rb loaded
=> Foo
```

That works.

But not `OpenSSL`, like `Gem` is using it. Similarly, the example in https://bugs.ruby-lang.org/issues/18876#note-4 that was using Ripper:

```
autoload(:Ripper, "ripper"); p defined?(Ripper)
nil
=> nil
```

I'm not sure why some `autoload` fails, while some doesn't. 

----------------------------------------
Bug #19115: OpenSSL fails to autoload (macOS)
https://bugs.ruby-lang.org/issues/19115#change-100024

* Author: thomthom (Thomas Thomassen)
* Status: Open
* Priority: Normal
* ruby -v: 3.1.2, 3.2.0dev
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
Related discussion: https://bugs.ruby-lang.org/issues/18876

We are seeing OpenSSL failing to autoload with the Ruby build we've been using. (We first observed this when using `Gem.install` that relies on autoload of OpenSSL). Our last working build was Ruby 2.7.2 with similar config.

This causes RubyGems' `HAVE_OPENSSL` constant to be incorrectly initialized, and subsequent calls to `Gem.install` fails. There might be other scenarios that fail as a result of that, but we've not managed to identified that.

```
 module Gem
   HAVE_OPENSSL = defined? OpenSSL::SSL # :nodoc:
```

Our Ruby 3.1.2 config:

```
'--prefix=/Users/user/.conan/data/ruby/3.1.2/sketchup/stable/build/bd95825b99dcb274d0e577fbdc953653a9ea0fb9' 
'--with-openssl-dir=/Users/user/.conan/data/openssl/1.1.1q/sketchup/stable/package/93ae0b0e7eebe0611c04d3e0d9bbf49fbce92332' 
'--with-libyaml-dir=/Users/user/.conan/data/libyaml/0.2.5/sketchup/stable/package/a56a950abed2e10dbdc26845400f0a034d97c454' 
'--disable-install-doc' 
'--disable-install-rdoc' 
'--enable-shared' 
'--enable-load-relative' 
'--with-static-linked-ext' 
'--without-debug' 
'--without-gdbm' 
'--without-gettext' 
'--without-irb' 
'--without-mkmf' 
'--without-rdoc' 
'--without-readline' 
'--without-tk' 
'--bindir=${prefix}/bin' 
'--sbindir=${prefix}/bin' 
'--libexecdir=${prefix}/bin' 
'--libdir=${prefix}/lib' 
'--includedir=${prefix}/include' 
'--oldincludedir=${prefix}/include' 
'--datarootdir=${prefix}/share' 'cflags=-mmacosx-version-min=10.14 -fdeclspec' 'cxxflags=-mmacosx-version-min=10.14 -fdeclspec' 'LDFLAGS=-mmacosx-version-min=10.14 -fdeclspec'
```

We also tested with latest build from master (November 8th 2022):

```
./ruby -ve 'p RbConfig::CONFIG["configure_args"]'
ruby 3.2.0dev (2022-11-07T19:35:21Z master b14f133054) [x86_64-darwin20]
" '--prefix=/Users/vmehta/ruby/ruby-master/' '--with-openssl-dir=/Users/vmehta/.conan/data/openssl/1.1.1q/sketchup/stable/package/f2d937af1fa19d5fc4095849a65d1927e9e75ae7/' '--with-libyaml-dir=/Users/vmehta/.conan/data/libyaml/0.2.5/sketchup/stable/package/3fc084e254210603a5c5aece184b2d45e2509b30' '--disable-install-doc' '--disable-install-rdoc' '--enable-shared' '--enable-load-relative' '--with-static-linked-ext' '--without-debug' '--without-gdbm' '--without-gettext' '--without-irb' '--without-mkmf' '--without-rdoc' '--without-readline' '--without-tk'"
```

Using an RVM of Ruby 3.1.2 this appear to work as expected. But using out configuration, that we've used for the Ruby 2.x versions are now failing. We haven't been able to figure out the reason for this.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:110772] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS)
  2022-11-09 13:15 [ruby-core:110670] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS) thomthom (Thomas Thomassen)
  2022-11-10 12:02 ` [ruby-core:110681] " thomthom (Thomas Thomassen)
@ 2022-11-16  0:26 ` alanwu (Alan Wu)
  2022-11-16 13:25 ` [ruby-core:110775] " thomthom (Thomas Thomassen)
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: alanwu (Alan Wu) @ 2022-11-16  0:26 UTC (permalink / raw)
  To: ruby-core

Issue #19115 has been updated by alanwu (Alan Wu).


The issue is specific to extensions that are statically linked into the build in `--with-static-linked-ext`.
`autoload?` also doesn't work correctly with these extensions:

```
$ ruby --disable-all -ve 'autoload(:Ripper, "ripper"); p autoload?(:Ripper)'
ruby 3.2.0dev (2022-11-15T17:26:51Z autoload 9751b54971) [arm64-darwin22]
nil
```

This is coming from the special treatment for native extensions.
They are [inserted][1] into `vm->loading_table` and so are treated as
being in the middle of being required on boot even when they're not actually
required yet. This weird loading state causes `autoload?` and `defined?` to
return `nil` because it [looks like][2] querying the state of the constant while
it is autoloading.

I haven't tried making a patch, but it seems wise to stop using `vm->loading_table` for this purpose.


[1]: https://github.com/ruby/ruby/blob/41b0f641ef0671d8cde397e56b1eb3c6b8e0f0db/load.c#L1298-L1307
[2]: https://github.com/ruby/ruby/blob/41b0f641ef0671d8cde397e56b1eb3c6b8e0f0db/spec/ruby/core/module/autoload_spec.rb#L398

----------------------------------------
Bug #19115: OpenSSL fails to autoload (macOS)
https://bugs.ruby-lang.org/issues/19115#change-100117

* Author: thomthom (Thomas Thomassen)
* Status: Open
* Priority: Normal
* ruby -v: 3.1.2, 3.2.0dev
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
Related discussion: https://bugs.ruby-lang.org/issues/18876

We are seeing OpenSSL failing to autoload with the Ruby build we've been using. (We first observed this when using `Gem.install` that relies on autoload of OpenSSL). Our last working build was Ruby 2.7.2 with similar config.

This causes RubyGems' `HAVE_OPENSSL` constant to be incorrectly initialized, and subsequent calls to `Gem.install` fails. There might be other scenarios that fail as a result of that, but we've not managed to identified that.

```
 module Gem
   HAVE_OPENSSL = defined? OpenSSL::SSL # :nodoc:
```

Our Ruby 3.1.2 config:

```
'--prefix=/Users/user/.conan/data/ruby/3.1.2/sketchup/stable/build/bd95825b99dcb274d0e577fbdc953653a9ea0fb9' 
'--with-openssl-dir=/Users/user/.conan/data/openssl/1.1.1q/sketchup/stable/package/93ae0b0e7eebe0611c04d3e0d9bbf49fbce92332' 
'--with-libyaml-dir=/Users/user/.conan/data/libyaml/0.2.5/sketchup/stable/package/a56a950abed2e10dbdc26845400f0a034d97c454' 
'--disable-install-doc' 
'--disable-install-rdoc' 
'--enable-shared' 
'--enable-load-relative' 
'--with-static-linked-ext' 
'--without-debug' 
'--without-gdbm' 
'--without-gettext' 
'--without-irb' 
'--without-mkmf' 
'--without-rdoc' 
'--without-readline' 
'--without-tk' 
'--bindir=${prefix}/bin' 
'--sbindir=${prefix}/bin' 
'--libexecdir=${prefix}/bin' 
'--libdir=${prefix}/lib' 
'--includedir=${prefix}/include' 
'--oldincludedir=${prefix}/include' 
'--datarootdir=${prefix}/share' 'cflags=-mmacosx-version-min=10.14 -fdeclspec' 'cxxflags=-mmacosx-version-min=10.14 -fdeclspec' 'LDFLAGS=-mmacosx-version-min=10.14 -fdeclspec'
```

We also tested with latest build from master (November 8th 2022):

```
./ruby -ve 'p RbConfig::CONFIG["configure_args"]'
ruby 3.2.0dev (2022-11-07T19:35:21Z master b14f133054) [x86_64-darwin20]
" '--prefix=/Users/vmehta/ruby/ruby-master/' '--with-openssl-dir=/Users/vmehta/.conan/data/openssl/1.1.1q/sketchup/stable/package/f2d937af1fa19d5fc4095849a65d1927e9e75ae7/' '--with-libyaml-dir=/Users/vmehta/.conan/data/libyaml/0.2.5/sketchup/stable/package/3fc084e254210603a5c5aece184b2d45e2509b30' '--disable-install-doc' '--disable-install-rdoc' '--enable-shared' '--enable-load-relative' '--with-static-linked-ext' '--without-debug' '--without-gdbm' '--without-gettext' '--without-irb' '--without-mkmf' '--without-rdoc' '--without-readline' '--without-tk'"
```

Using an RVM of Ruby 3.1.2 this appear to work as expected. But using out configuration, that we've used for the Ruby 2.x versions are now failing. We haven't been able to figure out the reason for this.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:110775] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS)
  2022-11-09 13:15 [ruby-core:110670] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS) thomthom (Thomas Thomassen)
  2022-11-10 12:02 ` [ruby-core:110681] " thomthom (Thomas Thomassen)
  2022-11-16  0:26 ` [ruby-core:110772] " alanwu (Alan Wu)
@ 2022-11-16 13:25 ` thomthom (Thomas Thomassen)
  2022-11-16 16:56 ` [ruby-core:110781] " alanwu (Alan Wu)
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: thomthom (Thomas Thomassen) @ 2022-11-16 13:25 UTC (permalink / raw)
  To: ruby-core

Issue #19115 has been updated by thomthom (Thomas Thomassen).


So, this isn't necessarily limited to macOS? It just happens to be the configuration we're using on that platform?

----------------------------------------
Bug #19115: OpenSSL fails to autoload (macOS)
https://bugs.ruby-lang.org/issues/19115#change-100120

* Author: thomthom (Thomas Thomassen)
* Status: Open
* Priority: Normal
* ruby -v: 3.1.2, 3.2.0dev
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
Related discussion: https://bugs.ruby-lang.org/issues/18876

We are seeing OpenSSL failing to autoload with the Ruby build we've been using. (We first observed this when using `Gem.install` that relies on autoload of OpenSSL). Our last working build was Ruby 2.7.2 with similar config.

This causes RubyGems' `HAVE_OPENSSL` constant to be incorrectly initialized, and subsequent calls to `Gem.install` fails. There might be other scenarios that fail as a result of that, but we've not managed to identified that.

```
 module Gem
   HAVE_OPENSSL = defined? OpenSSL::SSL # :nodoc:
```

Our Ruby 3.1.2 config:

```
'--prefix=/Users/user/.conan/data/ruby/3.1.2/sketchup/stable/build/bd95825b99dcb274d0e577fbdc953653a9ea0fb9' 
'--with-openssl-dir=/Users/user/.conan/data/openssl/1.1.1q/sketchup/stable/package/93ae0b0e7eebe0611c04d3e0d9bbf49fbce92332' 
'--with-libyaml-dir=/Users/user/.conan/data/libyaml/0.2.5/sketchup/stable/package/a56a950abed2e10dbdc26845400f0a034d97c454' 
'--disable-install-doc' 
'--disable-install-rdoc' 
'--enable-shared' 
'--enable-load-relative' 
'--with-static-linked-ext' 
'--without-debug' 
'--without-gdbm' 
'--without-gettext' 
'--without-irb' 
'--without-mkmf' 
'--without-rdoc' 
'--without-readline' 
'--without-tk' 
'--bindir=${prefix}/bin' 
'--sbindir=${prefix}/bin' 
'--libexecdir=${prefix}/bin' 
'--libdir=${prefix}/lib' 
'--includedir=${prefix}/include' 
'--oldincludedir=${prefix}/include' 
'--datarootdir=${prefix}/share' 'cflags=-mmacosx-version-min=10.14 -fdeclspec' 'cxxflags=-mmacosx-version-min=10.14 -fdeclspec' 'LDFLAGS=-mmacosx-version-min=10.14 -fdeclspec'
```

We also tested with latest build from master (November 8th 2022):

```
./ruby -ve 'p RbConfig::CONFIG["configure_args"]'
ruby 3.2.0dev (2022-11-07T19:35:21Z master b14f133054) [x86_64-darwin20]
" '--prefix=/Users/vmehta/ruby/ruby-master/' '--with-openssl-dir=/Users/vmehta/.conan/data/openssl/1.1.1q/sketchup/stable/package/f2d937af1fa19d5fc4095849a65d1927e9e75ae7/' '--with-libyaml-dir=/Users/vmehta/.conan/data/libyaml/0.2.5/sketchup/stable/package/3fc084e254210603a5c5aece184b2d45e2509b30' '--disable-install-doc' '--disable-install-rdoc' '--enable-shared' '--enable-load-relative' '--with-static-linked-ext' '--without-debug' '--without-gdbm' '--without-gettext' '--without-irb' '--without-mkmf' '--without-rdoc' '--without-readline' '--without-tk'"
```

Using an RVM of Ruby 3.1.2 this appear to work as expected. But using out configuration, that we've used for the Ruby 2.x versions are now failing. We haven't been able to figure out the reason for this.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:110781] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS)
  2022-11-09 13:15 [ruby-core:110670] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS) thomthom (Thomas Thomassen)
                   ` (2 preceding siblings ...)
  2022-11-16 13:25 ` [ruby-core:110775] " thomthom (Thomas Thomassen)
@ 2022-11-16 16:56 ` alanwu (Alan Wu)
  2022-11-21 16:47 ` [ruby-core:110842] " alanwu (Alan Wu)
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: alanwu (Alan Wu) @ 2022-11-16 16:56 UTC (permalink / raw)
  To: ruby-core

Issue #19115 has been updated by alanwu (Alan Wu).


thomthom (Thomas Thomassen) wrote in #note-3:
> So, this isn't necessarily limited to macOS? It just happens to be the configuration we're using on that platform?

Right.

----------------------------------------
Bug #19115: OpenSSL fails to autoload (macOS)
https://bugs.ruby-lang.org/issues/19115#change-100127

* Author: thomthom (Thomas Thomassen)
* Status: Open
* Priority: Normal
* ruby -v: 3.1.2, 3.2.0dev
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
Related discussion: https://bugs.ruby-lang.org/issues/18876

We are seeing OpenSSL failing to autoload with the Ruby build we've been using. (We first observed this when using `Gem.install` that relies on autoload of OpenSSL). Our last working build was Ruby 2.7.2 with similar config.

This causes RubyGems' `HAVE_OPENSSL` constant to be incorrectly initialized, and subsequent calls to `Gem.install` fails. There might be other scenarios that fail as a result of that, but we've not managed to identified that.

```
 module Gem
   HAVE_OPENSSL = defined? OpenSSL::SSL # :nodoc:
```

Our Ruby 3.1.2 config:

```
'--prefix=/Users/user/.conan/data/ruby/3.1.2/sketchup/stable/build/bd95825b99dcb274d0e577fbdc953653a9ea0fb9' 
'--with-openssl-dir=/Users/user/.conan/data/openssl/1.1.1q/sketchup/stable/package/93ae0b0e7eebe0611c04d3e0d9bbf49fbce92332' 
'--with-libyaml-dir=/Users/user/.conan/data/libyaml/0.2.5/sketchup/stable/package/a56a950abed2e10dbdc26845400f0a034d97c454' 
'--disable-install-doc' 
'--disable-install-rdoc' 
'--enable-shared' 
'--enable-load-relative' 
'--with-static-linked-ext' 
'--without-debug' 
'--without-gdbm' 
'--without-gettext' 
'--without-irb' 
'--without-mkmf' 
'--without-rdoc' 
'--without-readline' 
'--without-tk' 
'--bindir=${prefix}/bin' 
'--sbindir=${prefix}/bin' 
'--libexecdir=${prefix}/bin' 
'--libdir=${prefix}/lib' 
'--includedir=${prefix}/include' 
'--oldincludedir=${prefix}/include' 
'--datarootdir=${prefix}/share' 'cflags=-mmacosx-version-min=10.14 -fdeclspec' 'cxxflags=-mmacosx-version-min=10.14 -fdeclspec' 'LDFLAGS=-mmacosx-version-min=10.14 -fdeclspec'
```

We also tested with latest build from master (November 8th 2022):

```
./ruby -ve 'p RbConfig::CONFIG["configure_args"]'
ruby 3.2.0dev (2022-11-07T19:35:21Z master b14f133054) [x86_64-darwin20]
" '--prefix=/Users/vmehta/ruby/ruby-master/' '--with-openssl-dir=/Users/vmehta/.conan/data/openssl/1.1.1q/sketchup/stable/package/f2d937af1fa19d5fc4095849a65d1927e9e75ae7/' '--with-libyaml-dir=/Users/vmehta/.conan/data/libyaml/0.2.5/sketchup/stable/package/3fc084e254210603a5c5aece184b2d45e2509b30' '--disable-install-doc' '--disable-install-rdoc' '--enable-shared' '--enable-load-relative' '--with-static-linked-ext' '--without-debug' '--without-gdbm' '--without-gettext' '--without-irb' '--without-mkmf' '--without-rdoc' '--without-readline' '--without-tk'"
```

Using an RVM of Ruby 3.1.2 this appear to work as expected. But using out configuration, that we've used for the Ruby 2.x versions are now failing. We haven't been able to figure out the reason for this.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:110842] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS)
  2022-11-09 13:15 [ruby-core:110670] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS) thomthom (Thomas Thomassen)
                   ` (3 preceding siblings ...)
  2022-11-16 16:56 ` [ruby-core:110781] " alanwu (Alan Wu)
@ 2022-11-21 16:47 ` alanwu (Alan Wu)
  2022-12-05 14:16 ` [ruby-core:111209] [Ruby master Bug#19115] RubyGems fails to detect OpenSSL in --with-static-linked-ext builds thomthom (Thomas Thomassen)
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: alanwu (Alan Wu) @ 2022-11-21 16:47 UTC (permalink / raw)
  To: ruby-core

Issue #19115 has been updated by alanwu (Alan Wu).


I've submitted a [PR](https://github.com/ruby/ruby/pull/6756) to fix this issue and I thought I'd also post some updates.

Here is a script to summarize the mechanics of the bug:

```ruby
puts RUBY_DESCRIPTION # ruby 3.2.0dev (2022-01-20) [wasm32-wasi]

autoload :Ripper, 'ripper' # can resolve to ripper.so, which is builtin
p [autoload?(:Ripper), defined?(Ripper), Object.const_defined?(:Ripper)]
# => [nil, nil, false]

# Compare with a library that's an .rb file
autoload :Abbrev, 'abbrev' # can resolve to ripper.so, which is builtin
p [autoload?(:Abbrev), defined?(Abbrev), Object.const_defined?(:Abbrev)]
# => ["abbrev", "constant", true]
```

It's specific to builds configured with `--with-static-linked-ext`.
Since WASM builds use this option you can reproduce the issue in a browser!

https://try.ruby-lang.org/playground/#code=puts+RUBY_DESCRIPTION+%23+ruby+3.2.0dev+(2022-01-20)+%5Bwasm32-wasi%5D%0A%0A%23+Setup+an+autoload+for+a+constant+to+load%0A%23+a+statically+linked+extension%0Aautoload+%3ARipper%2C+'ripper'+%23+can+resolve+to+ripper.so%2C+which+is+builtin%0Ap+%5Bautoload%3F(%3ARipper)%2C+defined%3F(Ripper)%2C+Object.const_defined%3F(%3ARipper)%5D%0A%23+%3D%3E+%5Bnil%2C+nil%2C+false%5D%0A%0A%23+Compare+with+a+library+that's+an+.rb+file%0Aautoload+%3AAbbrev%2C+'abbrev'+%23+can+resolve+to+ripper.so%2C+which+is+builtin%0Ap+%5Bautoload%3F(%3AAbbrev)%2C+defined%3F(Abbrev)%2C+Object.const_defined%3F(%3AAbbrev)%5D%0A%23+%3D%3E+%5B%22abbrev%22%2C+%22constant%22%2C+true%5D&engine=cruby-3.2.0dev

For native builds, the issue impacts RubyGems can make it think OpenSSL
is unavailable even though it is. The error is the same as mentioned in [Bug #18876]:

```
ERROR:  While executing gem ... (Gem::Exception)
    OpenSSL is not available. Install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources
```

Also, some corrections for my mistakes in [Bug #18876].
I thought `defined? AutoloadConst` would trigger loading but it's supposed
to behave more like checking whether loading is necessary.
I also thought the issue was fixed on master but it was actually due to me
not including Ripper in my test build which made `ripper` resolve to `ripper.rb`
when the issue could only reproduce with `.so` features like `ripper.so` that are statically linked.


----------------------------------------
Bug #19115: OpenSSL fails to autoload (macOS)
https://bugs.ruby-lang.org/issues/19115#change-100198

* Author: thomthom (Thomas Thomassen)
* Status: Open
* Priority: Normal
* ruby -v: 3.1.2, 3.2.0dev
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
Related discussion: https://bugs.ruby-lang.org/issues/18876

We are seeing OpenSSL failing to autoload with the Ruby build we've been using. (We first observed this when using `Gem.install` that relies on autoload of OpenSSL). Our last working build was Ruby 2.7.2 with similar config.

This causes RubyGems' `HAVE_OPENSSL` constant to be incorrectly initialized, and subsequent calls to `Gem.install` fails. There might be other scenarios that fail as a result of that, but we've not managed to identified that.

```
 module Gem
   HAVE_OPENSSL = defined? OpenSSL::SSL # :nodoc:
```

Our Ruby 3.1.2 config:

```
'--prefix=/Users/user/.conan/data/ruby/3.1.2/sketchup/stable/build/bd95825b99dcb274d0e577fbdc953653a9ea0fb9' 
'--with-openssl-dir=/Users/user/.conan/data/openssl/1.1.1q/sketchup/stable/package/93ae0b0e7eebe0611c04d3e0d9bbf49fbce92332' 
'--with-libyaml-dir=/Users/user/.conan/data/libyaml/0.2.5/sketchup/stable/package/a56a950abed2e10dbdc26845400f0a034d97c454' 
'--disable-install-doc' 
'--disable-install-rdoc' 
'--enable-shared' 
'--enable-load-relative' 
'--with-static-linked-ext' 
'--without-debug' 
'--without-gdbm' 
'--without-gettext' 
'--without-irb' 
'--without-mkmf' 
'--without-rdoc' 
'--without-readline' 
'--without-tk' 
'--bindir=${prefix}/bin' 
'--sbindir=${prefix}/bin' 
'--libexecdir=${prefix}/bin' 
'--libdir=${prefix}/lib' 
'--includedir=${prefix}/include' 
'--oldincludedir=${prefix}/include' 
'--datarootdir=${prefix}/share' 'cflags=-mmacosx-version-min=10.14 -fdeclspec' 'cxxflags=-mmacosx-version-min=10.14 -fdeclspec' 'LDFLAGS=-mmacosx-version-min=10.14 -fdeclspec'
```

We also tested with latest build from master (November 8th 2022):

```
./ruby -ve 'p RbConfig::CONFIG["configure_args"]'
ruby 3.2.0dev (2022-11-07T19:35:21Z master b14f133054) [x86_64-darwin20]
" '--prefix=/Users/vmehta/ruby/ruby-master/' '--with-openssl-dir=/Users/vmehta/.conan/data/openssl/1.1.1q/sketchup/stable/package/f2d937af1fa19d5fc4095849a65d1927e9e75ae7/' '--with-libyaml-dir=/Users/vmehta/.conan/data/libyaml/0.2.5/sketchup/stable/package/3fc084e254210603a5c5aece184b2d45e2509b30' '--disable-install-doc' '--disable-install-rdoc' '--enable-shared' '--enable-load-relative' '--with-static-linked-ext' '--without-debug' '--without-gdbm' '--without-gettext' '--without-irb' '--without-mkmf' '--without-rdoc' '--without-readline' '--without-tk'"
```

Using an RVM of Ruby 3.1.2 this appear to work as expected. But using out configuration, that we've used for the Ruby 2.x versions are now failing. We haven't been able to figure out the reason for this.



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:111209] [Ruby master Bug#19115] RubyGems fails to detect OpenSSL in --with-static-linked-ext builds
  2022-11-09 13:15 [ruby-core:110670] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS) thomthom (Thomas Thomassen)
                   ` (4 preceding siblings ...)
  2022-11-21 16:47 ` [ruby-core:110842] " alanwu (Alan Wu)
@ 2022-12-05 14:16 ` thomthom (Thomas Thomassen)
  2022-12-05 21:58 ` [ruby-core:111214] " alanwu (Alan Wu)
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: thomthom (Thomas Thomassen) @ 2022-12-05 14:16 UTC (permalink / raw)
  To: ruby-core

Issue #19115 has been updated by thomthom (Thomas Thomassen).


Will this patch be pack-ported to the 3.1 branch?

----------------------------------------
Bug #19115: RubyGems fails to detect OpenSSL in --with-static-linked-ext builds
https://bugs.ruby-lang.org/issues/19115#change-100500

* Author: thomthom (Thomas Thomassen)
* Status: Closed
* Priority: Normal
* ruby -v: 3.1.2, 3.2.0dev
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
Related discussion: https://bugs.ruby-lang.org/issues/18876

We are seeing OpenSSL failing to autoload with the Ruby build we've been using. (We first observed this when using `Gem.install` that relies on autoload of OpenSSL). Our last working build was Ruby 2.7.2 with similar config.

This causes RubyGems' `HAVE_OPENSSL` constant to be incorrectly initialized, and subsequent calls to `Gem.install` fails. There might be other scenarios that fail as a result of that, but we've not managed to identified that.

```
 module Gem
   HAVE_OPENSSL = defined? OpenSSL::SSL # :nodoc:
```

Our Ruby 3.1.2 config:

```
'--prefix=/Users/user/.conan/data/ruby/3.1.2/sketchup/stable/build/bd95825b99dcb274d0e577fbdc953653a9ea0fb9' 
'--with-openssl-dir=/Users/user/.conan/data/openssl/1.1.1q/sketchup/stable/package/93ae0b0e7eebe0611c04d3e0d9bbf49fbce92332' 
'--with-libyaml-dir=/Users/user/.conan/data/libyaml/0.2.5/sketchup/stable/package/a56a950abed2e10dbdc26845400f0a034d97c454' 
'--disable-install-doc' 
'--disable-install-rdoc' 
'--enable-shared' 
'--enable-load-relative' 
'--with-static-linked-ext' 
'--without-debug' 
'--without-gdbm' 
'--without-gettext' 
'--without-irb' 
'--without-mkmf' 
'--without-rdoc' 
'--without-readline' 
'--without-tk' 
'--bindir=${prefix}/bin' 
'--sbindir=${prefix}/bin' 
'--libexecdir=${prefix}/bin' 
'--libdir=${prefix}/lib' 
'--includedir=${prefix}/include' 
'--oldincludedir=${prefix}/include' 
'--datarootdir=${prefix}/share' 'cflags=-mmacosx-version-min=10.14 -fdeclspec' 'cxxflags=-mmacosx-version-min=10.14 -fdeclspec' 'LDFLAGS=-mmacosx-version-min=10.14 -fdeclspec'
```

We also tested with latest build from master (November 8th 2022):

```
./ruby -ve 'p RbConfig::CONFIG["configure_args"]'
ruby 3.2.0dev (2022-11-07T19:35:21Z master b14f133054) [x86_64-darwin20]
" '--prefix=/Users/vmehta/ruby/ruby-master/' '--with-openssl-dir=/Users/vmehta/.conan/data/openssl/1.1.1q/sketchup/stable/package/f2d937af1fa19d5fc4095849a65d1927e9e75ae7/' '--with-libyaml-dir=/Users/vmehta/.conan/data/libyaml/0.2.5/sketchup/stable/package/3fc084e254210603a5c5aece184b2d45e2509b30' '--disable-install-doc' '--disable-install-rdoc' '--enable-shared' '--enable-load-relative' '--with-static-linked-ext' '--without-debug' '--without-gdbm' '--without-gettext' '--without-irb' '--without-mkmf' '--without-rdoc' '--without-readline' '--without-tk'"
```

Using an RVM of Ruby 3.1.2 this appear to work as expected. But using out configuration, that we've used for the Ruby 2.x versions are now failing. We haven't been able to figure out the reason for this.



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:111214] [Ruby master Bug#19115] RubyGems fails to detect OpenSSL in --with-static-linked-ext builds
  2022-11-09 13:15 [ruby-core:110670] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS) thomthom (Thomas Thomassen)
                   ` (5 preceding siblings ...)
  2022-12-05 14:16 ` [ruby-core:111209] [Ruby master Bug#19115] RubyGems fails to detect OpenSSL in --with-static-linked-ext builds thomthom (Thomas Thomassen)
@ 2022-12-05 21:58 ` alanwu (Alan Wu)
  2023-01-04 13:17 ` [ruby-core:111624] " thomthom (Thomas Thomassen) via ruby-core
  2023-03-25  6:03 ` [ruby-core:113013] " nagachika (Tomoyuki Chikanaga) via ruby-core
  8 siblings, 0 replies; 10+ messages in thread
From: alanwu (Alan Wu) @ 2022-12-05 21:58 UTC (permalink / raw)
  To: ruby-core

Issue #19115 has been updated by alanwu (Alan Wu).


thomthom (Thomas Thomassen) wrote in #note-8:
> Will this patch be pack-ported to the 3.1 branch?

It's up to the branch maintainer, @nagachika, to decide.

----------------------------------------
Bug #19115: RubyGems fails to detect OpenSSL in --with-static-linked-ext builds
https://bugs.ruby-lang.org/issues/19115#change-100504

* Author: thomthom (Thomas Thomassen)
* Status: Closed
* Priority: Normal
* ruby -v: 3.1.2, 3.2.0dev
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
Related discussion: https://bugs.ruby-lang.org/issues/18876

We are seeing OpenSSL failing to autoload with the Ruby build we've been using. (We first observed this when using `Gem.install` that relies on autoload of OpenSSL). Our last working build was Ruby 2.7.2 with similar config.

This causes RubyGems' `HAVE_OPENSSL` constant to be incorrectly initialized, and subsequent calls to `Gem.install` fails. There might be other scenarios that fail as a result of that, but we've not managed to identified that.

```
 module Gem
   HAVE_OPENSSL = defined? OpenSSL::SSL # :nodoc:
```

Our Ruby 3.1.2 config:

```
'--prefix=/Users/user/.conan/data/ruby/3.1.2/sketchup/stable/build/bd95825b99dcb274d0e577fbdc953653a9ea0fb9' 
'--with-openssl-dir=/Users/user/.conan/data/openssl/1.1.1q/sketchup/stable/package/93ae0b0e7eebe0611c04d3e0d9bbf49fbce92332' 
'--with-libyaml-dir=/Users/user/.conan/data/libyaml/0.2.5/sketchup/stable/package/a56a950abed2e10dbdc26845400f0a034d97c454' 
'--disable-install-doc' 
'--disable-install-rdoc' 
'--enable-shared' 
'--enable-load-relative' 
'--with-static-linked-ext' 
'--without-debug' 
'--without-gdbm' 
'--without-gettext' 
'--without-irb' 
'--without-mkmf' 
'--without-rdoc' 
'--without-readline' 
'--without-tk' 
'--bindir=${prefix}/bin' 
'--sbindir=${prefix}/bin' 
'--libexecdir=${prefix}/bin' 
'--libdir=${prefix}/lib' 
'--includedir=${prefix}/include' 
'--oldincludedir=${prefix}/include' 
'--datarootdir=${prefix}/share' 'cflags=-mmacosx-version-min=10.14 -fdeclspec' 'cxxflags=-mmacosx-version-min=10.14 -fdeclspec' 'LDFLAGS=-mmacosx-version-min=10.14 -fdeclspec'
```

We also tested with latest build from master (November 8th 2022):

```
./ruby -ve 'p RbConfig::CONFIG["configure_args"]'
ruby 3.2.0dev (2022-11-07T19:35:21Z master b14f133054) [x86_64-darwin20]
" '--prefix=/Users/vmehta/ruby/ruby-master/' '--with-openssl-dir=/Users/vmehta/.conan/data/openssl/1.1.1q/sketchup/stable/package/f2d937af1fa19d5fc4095849a65d1927e9e75ae7/' '--with-libyaml-dir=/Users/vmehta/.conan/data/libyaml/0.2.5/sketchup/stable/package/3fc084e254210603a5c5aece184b2d45e2509b30' '--disable-install-doc' '--disable-install-rdoc' '--enable-shared' '--enable-load-relative' '--with-static-linked-ext' '--without-debug' '--without-gdbm' '--without-gettext' '--without-irb' '--without-mkmf' '--without-rdoc' '--without-readline' '--without-tk'"
```

Using an RVM of Ruby 3.1.2 this appear to work as expected. But using out configuration, that we've used for the Ruby 2.x versions are now failing. We haven't been able to figure out the reason for this.



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:111624] [Ruby master Bug#19115] RubyGems fails to detect OpenSSL in --with-static-linked-ext builds
  2022-11-09 13:15 [ruby-core:110670] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS) thomthom (Thomas Thomassen)
                   ` (6 preceding siblings ...)
  2022-12-05 21:58 ` [ruby-core:111214] " alanwu (Alan Wu)
@ 2023-01-04 13:17 ` thomthom (Thomas Thomassen) via ruby-core
  2023-03-25  6:03 ` [ruby-core:113013] " nagachika (Tomoyuki Chikanaga) via ruby-core
  8 siblings, 0 replies; 10+ messages in thread
From: thomthom (Thomas Thomassen) via ruby-core @ 2023-01-04 13:17 UTC (permalink / raw)
  To: ruby-core; +Cc: thomthom (Thomas Thomassen)

Issue #19115 has been updated by thomthom (Thomas Thomassen).


I built Ruby 3.1.2 that we use in our product with this patch applied, and it worked on our systems. Would be nice to see it backported.

----------------------------------------
Bug #19115: RubyGems fails to detect OpenSSL in --with-static-linked-ext builds
https://bugs.ruby-lang.org/issues/19115#change-100995

* Author: thomthom (Thomas Thomassen)
* Status: Closed
* Priority: Normal
* ruby -v: 3.1.2, 3.2.0dev
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
Related discussion: https://bugs.ruby-lang.org/issues/18876

We are seeing OpenSSL failing to autoload with the Ruby build we've been using. (We first observed this when using `Gem.install` that relies on autoload of OpenSSL). Our last working build was Ruby 2.7.2 with similar config.

This causes RubyGems' `HAVE_OPENSSL` constant to be incorrectly initialized, and subsequent calls to `Gem.install` fails. There might be other scenarios that fail as a result of that, but we've not managed to identified that.

```
 module Gem
   HAVE_OPENSSL = defined? OpenSSL::SSL # :nodoc:
```

Our Ruby 3.1.2 config:

```
'--prefix=/Users/user/.conan/data/ruby/3.1.2/sketchup/stable/build/bd95825b99dcb274d0e577fbdc953653a9ea0fb9' 
'--with-openssl-dir=/Users/user/.conan/data/openssl/1.1.1q/sketchup/stable/package/93ae0b0e7eebe0611c04d3e0d9bbf49fbce92332' 
'--with-libyaml-dir=/Users/user/.conan/data/libyaml/0.2.5/sketchup/stable/package/a56a950abed2e10dbdc26845400f0a034d97c454' 
'--disable-install-doc' 
'--disable-install-rdoc' 
'--enable-shared' 
'--enable-load-relative' 
'--with-static-linked-ext' 
'--without-debug' 
'--without-gdbm' 
'--without-gettext' 
'--without-irb' 
'--without-mkmf' 
'--without-rdoc' 
'--without-readline' 
'--without-tk' 
'--bindir=${prefix}/bin' 
'--sbindir=${prefix}/bin' 
'--libexecdir=${prefix}/bin' 
'--libdir=${prefix}/lib' 
'--includedir=${prefix}/include' 
'--oldincludedir=${prefix}/include' 
'--datarootdir=${prefix}/share' 'cflags=-mmacosx-version-min=10.14 -fdeclspec' 'cxxflags=-mmacosx-version-min=10.14 -fdeclspec' 'LDFLAGS=-mmacosx-version-min=10.14 -fdeclspec'
```

We also tested with latest build from master (November 8th 2022):

```
./ruby -ve 'p RbConfig::CONFIG["configure_args"]'
ruby 3.2.0dev (2022-11-07T19:35:21Z master b14f133054) [x86_64-darwin20]
" '--prefix=/Users/vmehta/ruby/ruby-master/' '--with-openssl-dir=/Users/vmehta/.conan/data/openssl/1.1.1q/sketchup/stable/package/f2d937af1fa19d5fc4095849a65d1927e9e75ae7/' '--with-libyaml-dir=/Users/vmehta/.conan/data/libyaml/0.2.5/sketchup/stable/package/3fc084e254210603a5c5aece184b2d45e2509b30' '--disable-install-doc' '--disable-install-rdoc' '--enable-shared' '--enable-load-relative' '--with-static-linked-ext' '--without-debug' '--without-gdbm' '--without-gettext' '--without-irb' '--without-mkmf' '--without-rdoc' '--without-readline' '--without-tk'"
```

Using an RVM of Ruby 3.1.2 this appear to work as expected. But using out configuration, that we've used for the Ruby 2.x versions are now failing. We haven't been able to figure out the reason for this.



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ruby-core:113013] [Ruby master Bug#19115] RubyGems fails to detect OpenSSL in --with-static-linked-ext builds
  2022-11-09 13:15 [ruby-core:110670] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS) thomthom (Thomas Thomassen)
                   ` (7 preceding siblings ...)
  2023-01-04 13:17 ` [ruby-core:111624] " thomthom (Thomas Thomassen) via ruby-core
@ 2023-03-25  6:03 ` nagachika (Tomoyuki Chikanaga) via ruby-core
  8 siblings, 0 replies; 10+ messages in thread
From: nagachika (Tomoyuki Chikanaga) via ruby-core @ 2023-03-25  6:03 UTC (permalink / raw)
  To: ruby-core; +Cc: nagachika (Tomoyuki Chikanaga)

Issue #19115 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: REQUIRED to 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: DONE

ruby_3_1 5c5a1135b2e688eca7dbc7ce085f37a4d9fa3fd1 merged revision(s) 790cf4b6d0475614afb127b416e87cfa39044d67.

----------------------------------------
Bug #19115: RubyGems fails to detect OpenSSL in --with-static-linked-ext builds
https://bugs.ruby-lang.org/issues/19115#change-102548

* Author: thomthom (Thomas Thomassen)
* Status: Closed
* Priority: Normal
* ruby -v: 3.1.2, 3.2.0dev
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: DONE
----------------------------------------
Related discussion: https://bugs.ruby-lang.org/issues/18876

We are seeing OpenSSL failing to autoload with the Ruby build we've been using. (We first observed this when using `Gem.install` that relies on autoload of OpenSSL). Our last working build was Ruby 2.7.2 with similar config.

This causes RubyGems' `HAVE_OPENSSL` constant to be incorrectly initialized, and subsequent calls to `Gem.install` fails. There might be other scenarios that fail as a result of that, but we've not managed to identified that.

```
 module Gem
   HAVE_OPENSSL = defined? OpenSSL::SSL # :nodoc:
```

Our Ruby 3.1.2 config:

```
'--prefix=/Users/user/.conan/data/ruby/3.1.2/sketchup/stable/build/bd95825b99dcb274d0e577fbdc953653a9ea0fb9' 
'--with-openssl-dir=/Users/user/.conan/data/openssl/1.1.1q/sketchup/stable/package/93ae0b0e7eebe0611c04d3e0d9bbf49fbce92332' 
'--with-libyaml-dir=/Users/user/.conan/data/libyaml/0.2.5/sketchup/stable/package/a56a950abed2e10dbdc26845400f0a034d97c454' 
'--disable-install-doc' 
'--disable-install-rdoc' 
'--enable-shared' 
'--enable-load-relative' 
'--with-static-linked-ext' 
'--without-debug' 
'--without-gdbm' 
'--without-gettext' 
'--without-irb' 
'--without-mkmf' 
'--without-rdoc' 
'--without-readline' 
'--without-tk' 
'--bindir=${prefix}/bin' 
'--sbindir=${prefix}/bin' 
'--libexecdir=${prefix}/bin' 
'--libdir=${prefix}/lib' 
'--includedir=${prefix}/include' 
'--oldincludedir=${prefix}/include' 
'--datarootdir=${prefix}/share' 'cflags=-mmacosx-version-min=10.14 -fdeclspec' 'cxxflags=-mmacosx-version-min=10.14 -fdeclspec' 'LDFLAGS=-mmacosx-version-min=10.14 -fdeclspec'
```

We also tested with latest build from master (November 8th 2022):

```
./ruby -ve 'p RbConfig::CONFIG["configure_args"]'
ruby 3.2.0dev (2022-11-07T19:35:21Z master b14f133054) [x86_64-darwin20]
" '--prefix=/Users/vmehta/ruby/ruby-master/' '--with-openssl-dir=/Users/vmehta/.conan/data/openssl/1.1.1q/sketchup/stable/package/f2d937af1fa19d5fc4095849a65d1927e9e75ae7/' '--with-libyaml-dir=/Users/vmehta/.conan/data/libyaml/0.2.5/sketchup/stable/package/3fc084e254210603a5c5aece184b2d45e2509b30' '--disable-install-doc' '--disable-install-rdoc' '--enable-shared' '--enable-load-relative' '--with-static-linked-ext' '--without-debug' '--without-gdbm' '--without-gettext' '--without-irb' '--without-mkmf' '--without-rdoc' '--without-readline' '--without-tk'"
```

Using an RVM of Ruby 3.1.2 this appear to work as expected. But using out configuration, that we've used for the Ruby 2.x versions are now failing. We haven't been able to figure out the reason for this.



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-03-25  6:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-09 13:15 [ruby-core:110670] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS) thomthom (Thomas Thomassen)
2022-11-10 12:02 ` [ruby-core:110681] " thomthom (Thomas Thomassen)
2022-11-16  0:26 ` [ruby-core:110772] " alanwu (Alan Wu)
2022-11-16 13:25 ` [ruby-core:110775] " thomthom (Thomas Thomassen)
2022-11-16 16:56 ` [ruby-core:110781] " alanwu (Alan Wu)
2022-11-21 16:47 ` [ruby-core:110842] " alanwu (Alan Wu)
2022-12-05 14:16 ` [ruby-core:111209] [Ruby master Bug#19115] RubyGems fails to detect OpenSSL in --with-static-linked-ext builds thomthom (Thomas Thomassen)
2022-12-05 21:58 ` [ruby-core:111214] " alanwu (Alan Wu)
2023-01-04 13:17 ` [ruby-core:111624] " thomthom (Thomas Thomassen) via ruby-core
2023-03-25  6:03 ` [ruby-core:113013] " nagachika (Tomoyuki Chikanaga) via ruby-core

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).