Ruby snapshot and openssl problems

Trying to build today’s snapshot (ruby-2.2.0-r45509), and:

make[2]: Entering directory `/home/vjoel/src/ruby-2.2.0-r45509/ext/pty’
compiling pty.c
In file included from ossl.h:219:0,
from ossl_pkey.c:11:
openssl_missing.h:71:6: error: conflicting types for ?HMAC_CTX_copy?
/usr/include/openssl/hmac.h:102:5: note: previous declaration of
?HMAC_CTX_copy? was here
openssl_missing.h:95:5: error: conflicting types for
?EVP_CIPHER_CTX_copy?
/usr/include/openssl/evp.h:503:5: note: previous declaration of
?EVP_CIPHER_CTX_copy? was here
openssl_missing.h:173:5: error: conflicting types for ?BN_rand_range?
/usr/include/openssl/bn.h:437:5: note: previous declaration of
?BN_rand_range? was here
openssl_missing.h:177:5: error: conflicting types for
?BN_pseudo_rand_range?
/usr/include/openssl/bn.h:438:5: note: previous declaration of
?BN_pseudo_rand_range? was here

Any suggestions how to get around this? The ssl version is 1.0.1 (on
unbuntu 12.04).

Joel VanderWerf [email protected] wrote:

Trying to build today’s snapshot (ruby-2.2.0-r45509), and:

This seems to be a bug with r45509. Reverting it helps, but there’s
still warnings from r45508.
Cc-ing ruby-core.

openssl_missing.h:173:5: error: conflicting types for ???BN_rand_range???
/usr/include/openssl/bn.h:437:5: note: previous declaration of
???BN_rand_range??? was here
openssl_missing.h:177:5: error: conflicting types for ???BN_pseudo_rand_range???
/usr/include/openssl/bn.h:438:5: note: previous declaration of
???BN_pseudo_rand_range??? was here

Any suggestions how to get around this? The ssl version is 1.0.1 (on
unbuntu 12.04).

Hopefully nobu knows. gcc (Debian 4.7.2-5) here.

[1] r45508 warnings: http://yhbt.net/r45508.warnings.txt

On 04/02/2014 03:31 PM, Eric W. wrote:

Joel VanderWerf [email protected] wrote:

Trying to build today’s snapshot (ruby-2.2.0-r45509), and:

This seems to be a bug with r45509. Reverting it helps, but there’s
still warnings from r45508.
Cc-ing ruby-core.

Turns out I can build the stable snapshot (ruby 2.1.2p80 (2014-03-01
revision 45231) [x86_64-linux]), and I can reproduce my segfault with
that.

The segfault (not related to openssl, AFAIK) is why I was trying to
build the snapshot, to make sure it hadn’t been fixed since 2.1. Still
have to isolate it reliably so that it is reportable. It’s probably in
rbtree.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs