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-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY shortcircuit=no autolearn=ham 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 33D671F5AF for ; Mon, 29 Mar 2021 10:44:33 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 2609A120BF3; Mon, 29 Mar 2021 19:43:33 +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 0DD4D120BD6 for ; Mon, 29 Mar 2021 19:43:30 +0900 (JST) Received: by filterdrecv-p3iad2-7d7c446bd4-79mrr with SMTP id filterdrecv-p3iad2-7d7c446bd4-79mrr-21-6061AF8B-3E 2021-03-29 10:44:27.476805828 +0000 UTC m=+490292.776037791 Received: from herokuapp.com (unknown) by geopod-ismtpd-2-2 (SG) with ESMTP id b0jyGTtyRgaWxgt55nZ01A for ; Mon, 29 Mar 2021 10:44:27.377 +0000 (UTC) Date: Mon, 29 Mar 2021 10:44:27 +0000 (UTC) From: nobu@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 79116 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 17759 X-Redmine-Issue-Author: xtkoba X-Redmine-Sender: nobu 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?q8Dly+pU2+3ektTtZVXgZtbJPXwqo7p86jCsvYTW4BxblUOegq3Py=2F6Q++AiAX?= =?us-ascii?Q?hAub55B5mPxsqQd0APGIfnVAU0wFXcpY61mho27?= =?us-ascii?Q?SMCuQqoOhdxURA4Pn9eNdqwS8Yu2NiDM3+SvdRk?= =?us-ascii?Q?ARlqKjx=2FYgJxBTNRY0lkqm2guuA2Kk6ZNfX45Ts?= =?us-ascii?Q?aT4FSlSud3Bf+XwER3CWPGBntI5dS8ln+12C7Gj?= =?us-ascii?Q?0Tf7PFYZwFNrXVmv0=3D?= To: ruby-core@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-core X-Mail-Count: 103081 Subject: [ruby-core:103081] [Ruby master Bug#17759] Correct `ioctl_req_t` for musl 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 #17759 has been updated by nobu (Nobuyoshi Nakada). Seems more concise. Would you commit it by yourself? ---------------------------------------- Bug #17759: Correct `ioctl_req_t` for musl https://bugs.ruby-lang.org/issues/17759#change-91142 * Author: xtkoba (Tee KOBAYASHI) * Status: Open * Priority: Normal * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- The definition of `ioctl(2)` in musl is `int ioctl (int, int, ...);`, and this makes `io.c` fail to build on 64-bit musl environments with Clang/LLVM due to `shorten-64-to-32` error. A patch is attached for a workaround. It is expected to work with glibc, musl, bionic (Android), and uClibc (which defines `__GLIBC__`). I have no idea of other C libraries working on Linux. Aside from this patch, it might be better if we could supply `./configure` with the definition of `ioctl_req_t` using e.g. `rb_cv_ioctl_req_t_convertible=...`. ---Files-------------------------------- ruby-ioctl_req_t.patch (473 Bytes) -- https://bugs.ruby-lang.org/