From: nagachika00@... Date: 2016-04-05T15:34:04+00:00 Subject: [ruby-core:74818] [Ruby trunk Bug#11940] Ruby fails to compile with --with-static-linked-ext Issue #11940 has been updated by Tomoyuki Chikanaga. Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: REQUIRED to 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: DONE ruby_2_3 r54491 merged revision(s) 53419. ---------------------------------------- Bug #11940: Ruby fails to compile with --with-static-linked-ext https://bugs.ruby-lang.org/issues/11940#change-57945 * Author: Luiz Angelo Daros de Luca * Status: Third Party's Issue * Priority: Normal * Assignee: * ruby -v: ruby 2.3.0 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: DONE ---------------------------------------- Hello, When I select to include all ext static linked and between them there is openssl, ruby fails to build. ~~~ $ ./configure --disable-install-doc --disable-install-rdoc --disable-install-capi --with-static-linked-ext $ make $ make install (...) ./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems -r./x86_64-linux-fake ./tool/rbinstall.rb --make="make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc" /tmp/ruby-2.3.0/lib/rubygems/security.rb:344:in `': uninitialized constant OpenSSL::Digest::SHA1 (NameError) from /tmp/ruby-2.3.0/lib/rubygems/security.rb:332:in `' from /tmp/ruby-2.3.0/lib/rubygems/core_ext/kernel_require.rb:55:in `require' from /tmp/ruby-2.3.0/lib/rubygems/core_ext/kernel_require.rb:55:in `require' from /tmp/ruby-2.3.0/lib/rubygems/package.rb:44:in `' from /tmp/ruby-2.3.0/lib/rubygems/core_ext/kernel_require.rb:55:in `require' from /tmp/ruby-2.3.0/lib/rubygems/core_ext/kernel_require.rb:55:in `require' from /tmp/ruby-2.3.0/lib/rubygems/installer.rb:10:in `' from /tmp/ruby-2.3.0/lib/rubygems/core_ext/kernel_require.rb:55:in `require' from /tmp/ruby-2.3.0/lib/rubygems/core_ext/kernel_require.rb:55:in `require' from ./tool/rbinstall.rb:657:in `' from ./tool/rbinstall.rb:585:in `
' uncommon.mk:267: recipe for target 'do-install-nodoc' failed make: *** [do-install-nodoc] Error 1 ~~~ It seems that `OpenSSL::Digest` is defined by the builtin ext (in miniruby?!), which breaks the logic at: ~~~ruby DIGEST_ALGORITHM = if defined?(OpenSSL::Digest) then OpenSSL::Digest::SHA1 end ~~~ `OpenSSL::Digest` is defined (because it has methods like `digest` and `hexdigest`) but not `OpenSSL::Digest::SHA1`. -- https://bugs.ruby-lang.org/ Unsubscribe: