Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666408 - dev-ruby/rubygems-2.7.7-r1 - undefined symbol: EC_GROUP_new_curve_GF2m
Summary: dev-ruby/rubygems-2.7.7-r1 - undefined symbol: EC_GROUP_new_curve_GF2m
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-17 12:32 UTC by Francesco Turco
Modified: 2020-01-04 15:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Turco 2018-09-17 12:32:23 UTC
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
Comment 1 Hans de Graaff gentoo-dev Security 2018-09-17 19:24:58 UTC
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?
Comment 2 Francesco Turco 2018-09-18 09:08:58 UTC
Rebuilding dev-lang/ruby fixed the problem! Thank you! Anyway I wonder why revdep-rebuild didn't detect this problem...