https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112010-04-21T20:14:56ZRuby Issue Tracking SystemRuby master - Bug #3093: Openssl Extension Does Not Compile with OpenSSL 1.0https://redmine.ruby-lang.org/issues/3093?journal_id=103962010-04-21T20:14:56Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Assignee</strong> set to <i>usa (Usaku NAKAMURA)</i></li></ul><p>=begin<br>
Hi,</p>
<blockquote>
<p>Even with the latest patches (working against head), the openssl extension does not compile against openssl 1.0.</p>
</blockquote>
<p>I cannot reproduce with gcc and Linux:</p>
<p>$ ./configure --prefix=... --with-openssl-dir=...<br>
$ make && make install<br>
$ ../ruby -ropenssl -e 'p OpenSSL::OPENSSL_VERSION'<br>
"OpenSSL 1.0.0 29 Mar 2010"</p>
<p>Maybe windows-specific issue?</p>
<p>I don't understand your patch, but after it is applied, gcc<br>
prints some warning, which looks dangerous:</p>
<p>ossl_config.c: In function ‘get_conf_section_LHASH_DOALL_ARG’:<br>
ossl_config.c:323: warning: passing argument 1 of ‘get_conf_section_doall_arg’ from incompatible pointer type<br>
ossl_config.c:317: note: expected ‘struct CONF_VALUE *’ but argument is of type ‘struct CONF_VALUE **’<br>
ossl_config.c:323: warning: passing argument 2 of ‘get_conf_section_doall_arg’ makes integer from pointer without a cast<br>
ossl_config.c:317: note: expected ‘VALUE’ but argument is of type ‘VALUE *’<br>
ossl_config.c: In function ‘ossl_config_get_sections’:<br>
ossl_config.c:333: warning: passing argument 1 of ‘lh_doall_arg’ from incompatible pointer type</p>
<p>--<br>
Yusuke Endoh <a href="mailto:mame@tsg.ne.jp" class="email">mame@tsg.ne.jp</a><br>
=end</p> Ruby master - Bug #3093: Openssl Extension Does Not Compile with OpenSSL 1.0https://redmine.ruby-lang.org/issues/3093?journal_id=104842010-04-23T17:47:06Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>=begin<br>
This issue was solved with changeset r27458.<br>
Charlie, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<p>=end</p>