Issue #9908 has been updated by Usaku NAKAMURA.

Status changed from Closed to Rejected

----------------------------------------
Bug #9908: [mingw] openssl.so LoadError when built with 1.0.0m or 1.0.1h
https://bugs.ruby-lang.org/issues/9908#change-47634

* Author: Jon Forums
* Status: Rejected
* Priority: Normal
* Assignee: 
* Category: ext/openssl
* Target version: 
* ruby -v: ruby 2.1.2p123 (2014-06-03 revision 46319) [i386-mingw32]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
While testing an MRI rebuild to use bug fixed openssl libs, I get the following runtime fail during load of openssl ext.

MRI built on Win8.1 64bit using mingw-w64 32bit 4.9.0 toolchain and rubyinstaller recipes. Custom OpenSSL libs built using recipe listed below using 32bit mingw-w64 4.9.0 toolchain.

I've not confirmed whether the openssl ext is guilty or my custom built openssl libs are guilty.

~~~

# using 32bit openssl 1.0.0m or 1.0.1h devlibs build using this ps recipe
#
#   https://github.com/jonforums/buildlets/blob/master/build_openssl.ps1

sh-4.3$ ruby -ropenssl -ve "puts OpenSSL::OPENSSL_VERSION"
ruby 2.1.2p123 (2014-06-03 revision 46319) [i386-mingw32]
C:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby21_mingw/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': 126: The specified module could not be found.   - C:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby21_mingw/lib/ruby/2.1.0/i386-mingw32/openssl.so (LoadError)
        from C:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby21_mingw/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby21_mingw/lib/ruby/2.1.0/openssl.rb:17:in `<top (required)>'
        from C:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby21_mingw/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Users/Jon/Documents/RubyDev/ri-git/sandbox/ruby21_mingw/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'


# here's what it should look like...

arch64:~ % uname -a
Linux arch64 3.14.5-1-ARCH #1 SMP PREEMPT Sun Jun 1 07:36:23 CEST 2014 x86_64 GNU/Linux

arch64:~ % ruby -ropenssl -ve "puts OpenSSL::OPENSSL_VERSION"
ruby 2.1.2p123 (2014-06-03 revision 46319) [x86_64-linux]
OpenSSL 1.0.1h 5 Jun 2014

~~~



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