When running the "gem update" command on my Gentoo system I get the following error message: > ERROR: Loading command: update (LoadError) > /usr/lib64/ruby/2.5.0/x86_64-linux/openssl.so: undefined symbol: EC_GROUP_new_curve_GF2m - /usr/lib64/ruby/2.5.0/x86_64-linux/openssl.so > ERROR: While executing gem ... (NoMethodError) > undefined method `invoke_with_build_args' for nil:NilClass The following command returns nothing: > $ grep -r EC_GROUP_new_curve_GF2m /usr/include/openssl I wonder if the problem is due to the fact that I recently enabled the "bindist" USE flag, globally... Does rubygems need -bindist on openssl? ----------- $ emerge -pv ruby rubygems openssl These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-libs/openssl-1.0.2p::gentoo USE="asm bindist gmp tls-heartbeat zlib -kerberos -rfc3779 -sctp -sslv2 -sslv3 -static-libs -test -vanilla" CPU_FLAGS_X86="(sse2)" 0 KiB [ebuild R ] dev-lang/ruby-2.5.1-r1:2.5::gentoo USE="berkdb ipv6 rdoc ssl -debug -doc -examples -gdbm -jemalloc -libressl -rubytests -socks5 -static-libs -tk -xemacs" 0 KiB [ebuild R ] dev-ruby/rubygems-2.7.7-r1::gentoo USE="-server -test" RUBY_TARGETS="ruby25 -ruby23 -ruby24" 0 KiB Total: 3 packages (3 reinstalls), Size of downloads: 0 KiB
Pretty safe bet that bindist is causing this because in openssl its main purpose is to avoid including Elliptic Curve code that may be patent-encumbered. Not sure why this would cause errors though. Did you recompile dev-lang/ruby after changing openssl?
Rebuilding dev-lang/ruby fixed the problem! Thank you! Anyway I wonder why revdep-rebuild didn't detect this problem...