Build error for Ruby Version 1.9.3-p194

3,067 views
Skip to first unread message

Steven Finnegan

unread,
Dec 17, 2013, 4:46:51 PM12/17/13
to rubyversi...@googlegroups.com
Built this version a few days ago on a mac with no problem. Now trying to install 1.9.3-p194 on a Centos 6.5 and I'm receiving the following errors (at the end of make.log).

make[2]: Entering directory `/home/sjf/.rvm/src/ruby-1.9.3-p194/ext/racc/cparse'
compiling cparse.c
compiling ossl_pkey_ec.c
installing default cparse libraries
linking shared-object racc/cparse.so
ossl_pkey_ec.c: In function ‘ossl_ec_group_initialize’:
ossl_pkey_ec.c:761: warning: implicit declaration of function ‘EC_GF2m_simple_method’
ossl_pkey_ec.c:761: warning: assignment makes pointer from integer without a cast
ossl_pkey_ec.c:816: error: ‘EC_GROUP_new_curve_GF2m’ undeclared (first use in this function)
ossl_pkey_ec.c:816: error: (Each undeclared identifier is reported only once
ossl_pkey_ec.c:816: error: for each function it appears in.)
make[2]: Leaving directory `/home/sjf/.rvm/src/ruby-1.9.3-p194/ext/racc/cparse'
make[2]: Entering directory `/home/sjf/.rvm/src/ruby-1.9.3-p194/ext/readline'
make[2]: *** [ossl_pkey_ec.o] Error 1
make[2]: Leaving directory `/home/sjf/.rvm/src/ruby-1.9.3-p194/ext/openssl'
make[1]: *** [ext/openssl/all] Error 2
make[1]: *** Waiting for unfinished jobs....
compiling readline.c
installing default readline libraries
linking shared-object readline.so
make[2]: Leaving directory `/home/sjf/.rvm/src/ruby-1.9.3-p194/ext/readline'
make[1]: Leaving directory `/home/sjf/.rvm/src/ruby-1.9.3-p194'
make: *** [build-ext] Error 2


ran the same command again and got a similar error, but at a slightly different step

make[2]: Entering directory `/home/sjf/.rvm/src/ruby-1.9.3-p194/ext/racc/cparse'
installing default cparse libraries
make[2]: Leaving directory `/home/sjf/.rvm/src/ruby-1.9.3-p194/ext/racc/cparse'
make[2]: Entering directory `/home/sjf/.rvm/src/ruby-1.9.3-p194/ext/readline'
installing default readline libraries
make[2]: Leaving directory `/home/sjf/.rvm/src/ruby-1.9.3-p194/ext/readline'
make[2]: Entering directory `/home/sjf/.rvm/src/ruby-1.9.3-p194/ext/ripper'
compiling ripper.c
ossl_pkey_ec.c: In function ‘ossl_ec_group_initialize’:
ossl_pkey_ec.c:761: warning: implicit declaration of function ‘EC_GF2m_simple_method’
ossl_pkey_ec.c:761: warning: assignment makes pointer from integer without a cast
ossl_pkey_ec.c:816: error: ‘EC_GROUP_new_curve_GF2m’ undeclared (first use in this function)
ossl_pkey_ec.c:816: error: (Each undeclared identifier is reported only once
ossl_pkey_ec.c:816: error: for each function it appears in.)
make[2]: *** [ossl_pkey_ec.o] Error 1
make[2]: Leaving directory `/home/sjf/.rvm/src/ruby-1.9.3-p194/ext/openssl'
make[1]: *** [ext/openssl/all] Error 2
make[1]: *** Waiting for unfinished jobs....
checking ../.././parse.y and ../.././ext/ripper/eventids2.c
installing default ripper libraries
linking shared-object ripper.so
make[2]: Leaving directory `/home/sjf/.rvm/src/ruby-1.9.3-p194/ext/ripper'
make[1]: Leaving directory `/home/sjf/.rvm/src/ruby-1.9.3-p194'
make: *** [build-ext] Error 2

Any help would be appreciated.

Message has been deleted

Steven Finnegan

unread,
Dec 17, 2013, 7:48:26 PM12/17/13
to rubyversi...@googlegroups.com
Well, the solution is deceptively simple...

rvm install 1.9.3-p194 --patch ~/.rvm/patches/ruby/ssl_no_ec2m.patch

mpapis

unread,
Dec 19, 2013, 11:40:45 AM12/19/13
to rubyversi...@googlegroups.com
open a ticket for rvm - we can add this patch to by applied always (when needed)
Reply all
Reply to author
Forward
0 new messages