[#67346] Future of test suites for Ruby — Charles Oliver Nutter <headius@...>

I'll try to be brief so we can discuss all this. tl;dr: RubySpec is

19 messages 2015/01/05

[ruby-core:67343] [ruby-trunk - Bug #10656] mkmf have_func fails if Ruby is compiled with static libruby

From: hongli@...
Date: 2015-01-05 12:04:32 UTC
List: ruby-core #67343
Issue #10656 has been updated by Hongli Lai.


You were right. I've fixed this in Passenger 4.0.57. Thanks Nobuyoshi.

----------------------------------------
Bug #10656: mkmf have_func fails if Ruby is compiled with static libruby
https://bugs.ruby-lang.org/issues/10656#change-50801

* Author: Hongli Lai
* Status: Third Party's Issue
* Priority: Normal
* Assignee: 
* Category: 
* Target version: current: 2.2.0
* ruby -v: varies
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED
----------------------------------------
If Ruby is compiled with static libruby, then mkmf have_func calls will fail. This is because have_func tries to compile a binary, passing -lruby-static to the compiler. However this fails because binary also needs to be linked to a bunch of libraries that ruby-static.a depends on, such as -lm, -lrt, -ldl etc.

See [Phusion Passenger bug 1314 comment 68140592](https://github.com/phusion/passenger/issues/1314#issuecomment-68140592) for details and for an mkmf.log. Users who have a static libruby are unable to use the Phusion Passenger native extension, because a `have_func('rb_thread_call_without_gvl')` failed where it should have succeeded.



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

In This Thread

Prev Next