From: John Firebaugh Date: 2012-02-25T08:40:23+09:00 Subject: [ruby-core:42875] [ruby-trunk - Bug #6080][Open] fails to define RUBY_FUNC_EXPORTED when compiled with clang Issue #6080 has been reported by John Firebaugh. ---------------------------------------- Bug #6080: fails to define RUBY_FUNC_EXPORTED when compiled with clang https://bugs.ruby-lang.org/issues/6080 Author: John Firebaugh Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0] When compiling with clang, configure fails the `checking for exported function attribute` step and therefore does not generate a define for RUBY_FUNC_EXPORTED. This causes 3rd party gems such as ruby-debug-base to fail due to missing symbols. Here is the relevant configure.log output: https://gist.github.com/1904618 I am not sure why configure decided that the first program, using `__attribute__ ((visibility("default")))`, failed. It successfully compiled and is correct. -- http://bugs.ruby-lang.org/