ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:103281] [Ruby master Bug#17782] Can not compile Ruby trunk with openssl 1.1.1k
@ 2021-04-07 22:48 sam.saffron
  2021-04-07 23:30 ` [ruby-core:103284] " xtkoba+ruby
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: sam.saffron @ 2021-04-07 22:48 UTC (permalink / raw)
  To: ruby-core

Issue #17782 has been reported by sam.saffron (Sam Saffron).

----------------------------------------
Bug #17782: Can not compile Ruby trunk with openssl 1.1.1k
https://bugs.ruby-lang.org/issues/17782

* Author: sam.saffron (Sam Saffron)
* Status: Open
* Priority: Normal
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
Following latest openssl upstream (maybe b91f62f) I can no longer compile Ruby trunk against 1.1.1k

```
In file included from ossl.h:155,
                 from ossl_hmac.c:10:
ossl_hmac.c: In function 'ossl_hmac_reset':
openssl_missing.h:58:37: error: invalid use of incomplete typedef 'EVP_MD_CTX' {aka 'struct evp_md_ctx_st'}
   58 | #  define EVP_MD_CTX_pkey_ctx(x) (x)->pctx
      |                                     ^~
ossl_hmac.c:241:35: note: in expansion of macro 'EVP_MD_CTX_pkey_ctx'
  241 |     pkey = EVP_PKEY_CTX_get0_pkey(EVP_MD_CTX_pkey_ctx(ctx));
      |                                   ^~~~~~~~~~~~~~~~~~~
ossl_hmac.c: At top level:
```





-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:103284] [Ruby master Bug#17782] Can not compile Ruby trunk with openssl 1.1.1k
  2021-04-07 22:48 [ruby-core:103281] [Ruby master Bug#17782] Can not compile Ruby trunk with openssl 1.1.1k sam.saffron
@ 2021-04-07 23:30 ` xtkoba+ruby
  2021-04-07 23:35 ` [ruby-core:103285] " sam.saffron
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: xtkoba+ruby @ 2021-04-07 23:30 UTC (permalink / raw)
  To: ruby-core

Issue #17782 has been updated by xtkoba (Tee KOBAYASHI).


I cannot reproduce this on my x86_64-linux environment.

The function `EVP_MD_CTX_pkey_ctx` is defined at [${prefix}/include/openssl/evp.h:460](https://github.com/openssl/openssl/blob/b84c0eaeda471affdb4771fd9ea655b701a44217/include/openssl/evp.h#L460) and so the definition at `openssl_missing.h:58` should not be used (`HAVE_EVP_MD_CTX_PKEY_CTX` should be defined as `1`). I guess that the header files of OpenSSL are not installed correctly in your environment and/or `extconf.rb` is not working correctly.

----------------------------------------
Bug #17782: Can not compile Ruby trunk with openssl 1.1.1k
https://bugs.ruby-lang.org/issues/17782#change-91368

* Author: sam.saffron (Sam Saffron)
* Status: Open
* Priority: Normal
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
Following latest openssl upstream (maybe b91f62f) I can no longer compile Ruby trunk against 1.1.1k

```
In file included from ossl.h:155,
                 from ossl_hmac.c:10:
ossl_hmac.c: In function 'ossl_hmac_reset':
openssl_missing.h:58:37: error: invalid use of incomplete typedef 'EVP_MD_CTX' {aka 'struct evp_md_ctx_st'}
   58 | #  define EVP_MD_CTX_pkey_ctx(x) (x)->pctx
      |                                     ^~
ossl_hmac.c:241:35: note: in expansion of macro 'EVP_MD_CTX_pkey_ctx'
  241 |     pkey = EVP_PKEY_CTX_get0_pkey(EVP_MD_CTX_pkey_ctx(ctx));
      |                                   ^~~~~~~~~~~~~~~~~~~
ossl_hmac.c: At top level:
```





-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:103285] [Ruby master Bug#17782] Can not compile Ruby trunk with openssl 1.1.1k
  2021-04-07 22:48 [ruby-core:103281] [Ruby master Bug#17782] Can not compile Ruby trunk with openssl 1.1.1k sam.saffron
  2021-04-07 23:30 ` [ruby-core:103284] " xtkoba+ruby
@ 2021-04-07 23:35 ` sam.saffron
  2021-04-08  0:08 ` [ruby-core:103286] " xtkoba+ruby
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: sam.saffron @ 2021-04-07 23:35 UTC (permalink / raw)
  To: ruby-core

Issue #17782 has been updated by sam.saffron (Sam Saffron).


Thanks @xtkoba, let me see if I can make a Dockerfile here to reproduce the issue.

----------------------------------------
Bug #17782: Can not compile Ruby trunk with openssl 1.1.1k
https://bugs.ruby-lang.org/issues/17782#change-91369

* Author: sam.saffron (Sam Saffron)
* Status: Open
* Priority: Normal
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
Following latest openssl upstream (maybe b91f62f) I can no longer compile Ruby trunk against 1.1.1k

```
In file included from ossl.h:155,
                 from ossl_hmac.c:10:
ossl_hmac.c: In function 'ossl_hmac_reset':
openssl_missing.h:58:37: error: invalid use of incomplete typedef 'EVP_MD_CTX' {aka 'struct evp_md_ctx_st'}
   58 | #  define EVP_MD_CTX_pkey_ctx(x) (x)->pctx
      |                                     ^~
ossl_hmac.c:241:35: note: in expansion of macro 'EVP_MD_CTX_pkey_ctx'
  241 |     pkey = EVP_PKEY_CTX_get0_pkey(EVP_MD_CTX_pkey_ctx(ctx));
      |                                   ^~~~~~~~~~~~~~~~~~~
ossl_hmac.c: At top level:
```





-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:103286] [Ruby master Bug#17782] Can not compile Ruby trunk with openssl 1.1.1k
  2021-04-07 22:48 [ruby-core:103281] [Ruby master Bug#17782] Can not compile Ruby trunk with openssl 1.1.1k sam.saffron
  2021-04-07 23:30 ` [ruby-core:103284] " xtkoba+ruby
  2021-04-07 23:35 ` [ruby-core:103285] " sam.saffron
@ 2021-04-08  0:08 ` xtkoba+ruby
  2021-04-08  0:54 ` [ruby-core:103287] " sam.saffron
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: xtkoba+ruby @ 2021-04-08  0:08 UTC (permalink / raw)
  To: ruby-core

Issue #17782 has been updated by xtkoba (Tee KOBAYASHI).


So this issue is irrelevant of OpenSSL upstream being updated, right?

And is related to commit commit:b91f62f3840582bb3e4fbece15654e1d852c829b I suppose, although I don't know how.

----------------------------------------
Bug #17782: Can not compile Ruby trunk with openssl 1.1.1k
https://bugs.ruby-lang.org/issues/17782#change-91370

* Author: sam.saffron (Sam Saffron)
* Status: Open
* Priority: Normal
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
Following latest openssl upstream (maybe b91f62f) I can no longer compile Ruby trunk against 1.1.1k

```
In file included from ossl.h:155,
                 from ossl_hmac.c:10:
ossl_hmac.c: In function 'ossl_hmac_reset':
openssl_missing.h:58:37: error: invalid use of incomplete typedef 'EVP_MD_CTX' {aka 'struct evp_md_ctx_st'}
   58 | #  define EVP_MD_CTX_pkey_ctx(x) (x)->pctx
      |                                     ^~
ossl_hmac.c:241:35: note: in expansion of macro 'EVP_MD_CTX_pkey_ctx'
  241 |     pkey = EVP_PKEY_CTX_get0_pkey(EVP_MD_CTX_pkey_ctx(ctx));
      |                                   ^~~~~~~~~~~~~~~~~~~
ossl_hmac.c: At top level:
```





-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:103287] [Ruby master Bug#17782] Can not compile Ruby trunk with openssl 1.1.1k
  2021-04-07 22:48 [ruby-core:103281] [Ruby master Bug#17782] Can not compile Ruby trunk with openssl 1.1.1k sam.saffron
                   ` (2 preceding siblings ...)
  2021-04-08  0:08 ` [ruby-core:103286] " xtkoba+ruby
@ 2021-04-08  0:54 ` sam.saffron
  2021-04-08  1:24 ` [ruby-core:103289] " xtkoba+ruby
  2021-04-08  1:43 ` [ruby-core:103290] " mame
  5 siblings, 0 replies; 7+ messages in thread
From: sam.saffron @ 2021-04-08  0:54 UTC (permalink / raw)
  To: ruby-core

Issue #17782 has been updated by sam.saffron (Sam Saffron).


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. 


```
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
```


----------------------------------------
Bug #17782: Can not compile Ruby trunk with openssl 1.1.1k
https://bugs.ruby-lang.org/issues/17782#change-91371

* Author: sam.saffron (Sam Saffron)
* Status: Open
* Priority: Normal
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
Following latest openssl upstream (maybe b91f62f) I can no longer compile Ruby trunk against 1.1.1k

```
In file included from ossl.h:155,
                 from ossl_hmac.c:10:
ossl_hmac.c: In function 'ossl_hmac_reset':
openssl_missing.h:58:37: error: invalid use of incomplete typedef 'EVP_MD_CTX' {aka 'struct evp_md_ctx_st'}
   58 | #  define EVP_MD_CTX_pkey_ctx(x) (x)->pctx
      |                                     ^~
ossl_hmac.c:241:35: note: in expansion of macro 'EVP_MD_CTX_pkey_ctx'
  241 |     pkey = EVP_PKEY_CTX_get0_pkey(EVP_MD_CTX_pkey_ctx(ctx));
      |                                   ^~~~~~~~~~~~~~~~~~~
ossl_hmac.c: At top level:
```





-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:103289] [Ruby master Bug#17782] Can not compile Ruby trunk with openssl 1.1.1k
  2021-04-07 22:48 [ruby-core:103281] [Ruby master Bug#17782] Can not compile Ruby trunk with openssl 1.1.1k sam.saffron
                   ` (3 preceding siblings ...)
  2021-04-08  0:54 ` [ruby-core:103287] " sam.saffron
@ 2021-04-08  1:24 ` xtkoba+ruby
  2021-04-08  1:43 ` [ruby-core:103290] " mame
  5 siblings, 0 replies; 7+ messages in thread
From: xtkoba+ruby @ 2021-04-08  1:24 UTC (permalink / raw)
  To: ruby-core

Issue #17782 has been updated by xtkoba (Tee KOBAYASHI).


Don't mind. It is not uncommon that `make clean` followed by source/builddep/etc updates leads to failure of a subsequent build.

----------------------------------------
Bug #17782: Can not compile Ruby trunk with openssl 1.1.1k
https://bugs.ruby-lang.org/issues/17782#change-91373

* Author: sam.saffron (Sam Saffron)
* Status: Open
* Priority: Normal
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
Following latest openssl upstream (maybe b91f62f) I can no longer compile Ruby trunk against 1.1.1k

```
In file included from ossl.h:155,
                 from ossl_hmac.c:10:
ossl_hmac.c: In function 'ossl_hmac_reset':
openssl_missing.h:58:37: error: invalid use of incomplete typedef 'EVP_MD_CTX' {aka 'struct evp_md_ctx_st'}
   58 | #  define EVP_MD_CTX_pkey_ctx(x) (x)->pctx
      |                                     ^~
ossl_hmac.c:241:35: note: in expansion of macro 'EVP_MD_CTX_pkey_ctx'
  241 |     pkey = EVP_PKEY_CTX_get0_pkey(EVP_MD_CTX_pkey_ctx(ctx));
      |                                   ^~~~~~~~~~~~~~~~~~~
ossl_hmac.c: At top level:
```





-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-core:103290] [Ruby master Bug#17782] Can not compile Ruby trunk with openssl 1.1.1k
  2021-04-07 22:48 [ruby-core:103281] [Ruby master Bug#17782] Can not compile Ruby trunk with openssl 1.1.1k sam.saffron
                   ` (4 preceding siblings ...)
  2021-04-08  1:24 ` [ruby-core:103289] " xtkoba+ruby
@ 2021-04-08  1:43 ` mame
  5 siblings, 0 replies; 7+ messages in thread
From: mame @ 2021-04-08  1:43 UTC (permalink / raw)
  To: ruby-core

Issue #17782 has been updated by mame (Yusuke Endoh).

Status changed from Open to Closed

Closing as per OP's request. Thanks

----------------------------------------
Bug #17782: Can not compile Ruby trunk with openssl 1.1.1k
https://bugs.ruby-lang.org/issues/17782#change-91374

* Author: sam.saffron (Sam Saffron)
* Status: Closed
* Priority: Normal
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
Following latest openssl upstream (maybe b91f62f) I can no longer compile Ruby trunk against 1.1.1k

```
In file included from ossl.h:155,
                 from ossl_hmac.c:10:
ossl_hmac.c: In function 'ossl_hmac_reset':
openssl_missing.h:58:37: error: invalid use of incomplete typedef 'EVP_MD_CTX' {aka 'struct evp_md_ctx_st'}
   58 | #  define EVP_MD_CTX_pkey_ctx(x) (x)->pctx
      |                                     ^~
ossl_hmac.c:241:35: note: in expansion of macro 'EVP_MD_CTX_pkey_ctx'
  241 |     pkey = EVP_PKEY_CTX_get0_pkey(EVP_MD_CTX_pkey_ctx(ctx));
      |                                   ^~~~~~~~~~~~~~~~~~~
ossl_hmac.c: At top level:
```





-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-04-08  1:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07 22:48 [ruby-core:103281] [Ruby master Bug#17782] Can not compile Ruby trunk with openssl 1.1.1k sam.saffron
2021-04-07 23:30 ` [ruby-core:103284] " xtkoba+ruby
2021-04-07 23:35 ` [ruby-core:103285] " sam.saffron
2021-04-08  0:08 ` [ruby-core:103286] " xtkoba+ruby
2021-04-08  0:54 ` [ruby-core:103287] " sam.saffron
2021-04-08  1:24 ` [ruby-core:103289] " xtkoba+ruby
2021-04-08  1:43 ` [ruby-core:103290] " mame

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).