https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112021-04-07T23:30:20ZRuby Issue Tracking SystemRuby master - Bug #17782: Can not compile Ruby trunk with openssl 1.1.1khttps://bugs.ruby-lang.org/issues/17782?journal_id=913682021-04-07T23:30:20Zxtkoba (Tee KOBAYASHI)
<ul></ul><p>I cannot reproduce this on my x86_64-linux environment.</p>
<p>The function <code>EVP_MD_CTX_pkey_ctx</code> is defined at <a href="https://github.com/openssl/openssl/blob/b84c0eaeda471affdb4771fd9ea655b701a44217/include/openssl/evp.h#L460" class="external">${prefix}/include/openssl/evp.h:460</a> and so the definition at <code>openssl_missing.h:58</code> should not be used (<code>HAVE_EVP_MD_CTX_PKEY_CTX</code> should be defined as <code>1</code>). I guess that the header files of OpenSSL are not installed correctly in your environment and/or <code>extconf.rb</code> is not working correctly.</p> Ruby master - Bug #17782: Can not compile Ruby trunk with openssl 1.1.1khttps://bugs.ruby-lang.org/issues/17782?journal_id=913692021-04-07T23:35:18Zsam.saffron (Sam Saffron)sam.saffron@gmail.com
<ul></ul><p>Thanks <a class="user active user-mention" href="https://bugs.ruby-lang.org/users/48178">@xtkoba (Tee KOBAYASHI)</a>, let me see if I can make a Dockerfile here to reproduce the issue.</p>
<p>3.0.1 tag installs fine on my system.</p> Ruby master - Bug #17782: Can not compile Ruby trunk with openssl 1.1.1khttps://bugs.ruby-lang.org/issues/17782?journal_id=913702021-04-08T00:08:38Zxtkoba (Tee KOBAYASHI)
<ul></ul><p>So this issue is irrelevant of OpenSSL upstream being updated, right?</p>
<p>And is related to commit <a class="changeset" title="[ruby/openssl] hmac: migrate from the low-level HMAC API to the EVP API Use the EVP API instead ..." href="https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/b91f62f3840582bb3e4fbece15654e1d852c829b">b91f62f3840582bb3e4fbece15654e1d852c829b</a> I suppose, although I don't know how.</p> Ruby master - Bug #17782: Can not compile Ruby trunk with openssl 1.1.1khttps://bugs.ruby-lang.org/issues/17782?journal_id=913712021-04-08T00:54:06Zsam.saffron (Sam Saffron)sam.saffron@gmail.com
<ul></ul><p>let's close this, looks like an operator error ... unable to reproduce in a clean docker container. I suspect it was just me needing a new run of autoconf.</p>
<pre><code>from arch
ENV HOME=/root
ENV LANG=en_US.UTF-8
RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && \
locale-gen
RUN pacman -Syu --noconfirm
RUN pacman -Sy vim curl git ruby --noconfirm && \
pacman -S --needed base-devel libffi libyaml openssl zlib --noconfirm
RUN mkdir /src && cd /src && git clone https://github.com/ruby/ruby.git
RUN pacman -Sy automake gdbm openssl libyaml gmp zlib rubygems ruby-irb --noconfirm
RUN cd /src/ruby && automake --add-missing || echo "ignore - used to get config.guess / sub"
RUN cd /src/ruby && autoconf && ./configure
RUN cd /src/ruby && make
</code></pre> Ruby master - Bug #17782: Can not compile Ruby trunk with openssl 1.1.1khttps://bugs.ruby-lang.org/issues/17782?journal_id=913732021-04-08T01:24:23Zxtkoba (Tee KOBAYASHI)
<ul></ul><p>Don't mind. It is not uncommon that <code>make clean</code> followed by source/builddep/etc updates leads to failure of a subsequent build.</p> Ruby master - Bug #17782: Can not compile Ruby trunk with openssl 1.1.1khttps://bugs.ruby-lang.org/issues/17782?journal_id=913742021-04-08T01:43:47Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Closing as per OP's request. Thanks</p>