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/