Modify

Opened 4 years ago

Last modified 3 years ago

#16627 new defect

ruby host-compiltation error

Reported by: ryzhov_al Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Ruby was updated [40630] to 1.9.3-p545, but it relies on SSL_OP_MSIE_SSLV2_RSA_PADDING code, which has been removed from latest snapshot of OpenSSL 1.0.1. So, Ruby host-compilation is not possible on modern systems:

make[5]: Entering directory `/home/ryzhovau/Entware/openwrt_trunk/build_dir/host/ruby-1.9.3-p545/ext/openssl'
compiling ossl_ssl.c
ossl_ssl.c: In function 'Init_ossl_ssl':
ossl_ssl.c:1988:5: error: 'SSL_OP_MSIE_SSLV2_RSA_PADDING' undeclared (first use in this function)
ossl_ssl.c:1988:5: note: each undeclared identifier is reported only once for each function it appears in
make[5]: *** [ossl_ssl.o] Error 1
make[5]: Leaving directory `/home/ryzhovau/Entware/openwrt_trunk/build_dir/host/ruby-1.9.3-p545/ext/openssl'
make[4]: *** [ext/openssl/all] Error 2
make[4]: Leaving directory `/home/ryzhovau/Entware/openwrt_trunk/build_dir/host/ruby-1.9.3-p545'
make[3]: *** [build-ext] Error 2
make[3]: Leaving directory `/home/ryzhovau/Entware/openwrt_trunk/build_dir/host/ruby-1.9.3-p545'

See https://github.com/ruby/ruby/pull/488 for details.

Attachments (0)

Change History (4)

comment:1 Changed 4 years ago by ryzhov_al

This patch will fix issue.

cat feeds/packages/lang/ruby/patches/002-OP_MSIE_SSLV2_RSA_PADDING.patch
--- a/ext/openssl/ossl_ssl.c
+++ b/ext/openssl/ossl_ssl.c
	2014-05-27 11:34:54.033961131 +0400
@@ -1985,7 +1985,9 @@
     ossl_ssl_def_const(OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG);
     ossl_ssl_def_const(OP_SSLREF2_REUSE_CERT_TYPE_BUG);
     ossl_ssl_def_const(OP_MICROSOFT_BIG_SSLV3_BUFFER);
+#if defined(OP_MSIE_SSLV2_RSA_PADDING)
     ossl_ssl_def_const(OP_MSIE_SSLV2_RSA_PADDING);
+#endif
     ossl_ssl_def_const(OP_SSLEAY_080_CLIENT_DH_BUG);
     ossl_ssl_def_const(OP_TLS_D5_BUG);
     ossl_ssl_def_const(OP_TLS_BLOCK_PADDING_BUG);

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:3 Changed 3 years ago by luizluca@…

trunk is using ruby 2.1.2.

This problem is not present in that version.

Can ruby 2.1.2 be backported to BB?

comment:4 Changed 3 years ago by ryzhov_al

I think this one can be closed as obsolete.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.