From: mame@ruby-lang.org
To: ruby-core@ruby-lang.org
Subject: [ruby-core:103082] [Ruby master Bug#17759] Correct `ioctl_req_t` for musl
Date: Mon, 29 Mar 2021 10:57:05 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-91143.20210329105705.48178@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-17759.20210329090537.48178@ruby-lang.org
Issue #17759 has been updated by mame (Yusuke Endoh).
> Would you commit it by yourself?
+1
----------------------------------------
Bug #17759: Correct `ioctl_req_t` for musl
https://bugs.ruby-lang.org/issues/17759#change-91143
* 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/
next prev parent reply other threads:[~2021-03-29 10:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-29 9:05 [ruby-core:103080] [Ruby master Bug#17759] Correct `ioctl_req_t` for musl xtkoba+ruby
2021-03-29 10:44 ` [ruby-core:103081] " nobu
2021-03-29 10:57 ` mame [this message]
2021-04-15 3:42 ` [ruby-core:103462] " mame
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-91143.20210329105705.48178@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).