From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-2.5 required=3.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id B4A161F4B4 for ; Wed, 7 Apr 2021 23:30:25 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 76A3D12112E; Thu, 8 Apr 2021 08:29:24 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 6715D12112D for ; Thu, 8 Apr 2021 08:29:22 +0900 (JST) Received: by filterdrecv-p3las1-699f5f7ff5-zpgll with SMTP id filterdrecv-p3las1-699f5f7ff5-zpgll-19-606E408C-24 2021-04-07 23:30:20.761479004 +0000 UTC m=+1313838.634359869 Received: from herokuapp.com (unknown) by geopod-ismtpd-3-1 (SG) with ESMTP id mU_M3AwVTr674UKL-9T0Fg for ; Wed, 07 Apr 2021 23:30:20.579 +0000 (UTC) Date: Wed, 07 Apr 2021 23:30:20 +0000 (UTC) From: xtkoba+ruby@gmail.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 79330 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 17782 X-Redmine-Issue-Author: sam.saffron X-Redmine-Sender: xtkoba X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: =?us-ascii?Q?75w3+RXRrinEP3ykAS=2F1WzD2vTMrJdTeEiaFbXc9IwUHhYi12iXMFpo02B8fgQ?= =?us-ascii?Q?nCwzBCMFxfv8EpCdY8qm0ovCFTTB=2FO4VVDAqfJt?= =?us-ascii?Q?DhwmnbfsXNTcim2=2Fbq8ayUPG6Y=2FoOq1Y9+cBt1A?= =?us-ascii?Q?gxb=2Ft=2FY=2Fz5w+76v6BJptZf297Jj28=2F9FqHnyev8?= =?us-ascii?Q?A6cOH7RA0fxkqC=2FI+ObZfYX5LXAc77jxuyOEwrJ?= =?us-ascii?Q?VYvU2uQ2Qd8B2Ctrg=3D?= To: ruby-core@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-core X-Mail-Count: 103284 Subject: [ruby-core:103284] [Ruby master Bug#17782] Can not compile Ruby trunk with openssl 1.1.1k X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "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/