From: usa@garbagecollect•jp
To: ruby-dev@ruby-lang.org
Subject: [ruby-dev:50654] [Ruby trunk Bug#13931] correct install_name of libruby on macOS (libruby.2.5.0.dylib -> libruby.2.5.dylib)
Date: Wed, 17 Oct 2018 08:18:48 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-74473.20181017081847.b48ace42240689f1@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-13931.20170923114534@ruby-lang.org
Issue #13931 has been updated by usa (Usaku NAKAMURA).
Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: REQUIRED to 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: DONE
ruby_2_4 r65112 merged revision(s) 60018.
----------------------------------------
Bug #13931: correct install_name of libruby on macOS (libruby.2.5.0.dylib -> libruby.2.5.dylib)
https://bugs.ruby-lang.org/issues/13931#change-74473
* Author: kimuraw (Wataru Kimura)
* Status: Closed
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.5.0dev (2017-09-23 trunk 60002) [x86_64-darwin16]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: DONE
----------------------------------------
ruby-dev:50256 で質問した件です。
ruby-2.4以降ではlibrubyのファイル名に実際のリリースバージョンのTEENYが反映されるようになったようですが
macOS上でlibrubyのinstall name(linuxでのsoname相当)がTEENYを含んだもののため、
rubyを2.4.1から2.4.2など更新すると以前のバージョンで作成した拡張ライブラリでLoadErrorが発生します。
linuxなどではsonameをTEENYを含まないものにしているようですので、
macOSでも同様にするのがよいと思います。
~~~
# ubuntu
$ uname -sr
Linux 3.16.0-4-amd64
$ objdump -p libruby.so.2.4.2 | grep SONAME
SONAME libruby.so.2.4
# macOS
$ uname -sr
Darwin 16.7.0
$ otool -D libruby.2.4.2.dylib
libruby.2.4.2.dylib:
/Users/kimuraw/tmp_ruby/ruby24/lib/libruby.2.4.2.dylib # <= includes TEENY in "install name"
~~~
trunkと2.4で起きています。
2.3以前はlibrubyのファイル名のTEENYは常に"0"ですので問題ありません。
trunk r60002のconfigure.inへのパッチを添付します。
---Files--------------------------------
configure.in.diff (672 Bytes)
--
https://bugs.ruby-lang.org/
prev parent reply other threads:[~2018-10-17 8:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <redmine.issue-13931.20170923114534@ruby-lang.org>
2017-09-23 11:45 ` [ruby-dev:50262] [Ruby trunk Bug#13931] correct install_name of libruby on macOS (libruby.2.5.0.dylib -> libruby.2.5.dylib) kimuraw
2018-09-11 0:10 ` [ruby-dev:50637] " ruby
2018-10-17 8:18 ` usa [this message]
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-74473.20181017081847.b48ace42240689f1@ruby-lang.org \
--to=ruby-dev@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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).