Backport #6080

fails to define RUBY_FUNC_EXPORTED when compiled with clang

Added by John Firebaugh about 2 years ago. Updated about 2 years ago.

[ruby-core:42875]
Status:Closed
Priority:Normal
Assignee:Nobuyoshi Nakada

Description

When compiling with clang, configure fails the checking for exported function attribute step and therefore does not generate a define for RUBYFUNCEXPORTED. 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.


Related issues

Duplicates Backport93 - Backport #6064: unsupported -ggdb flag is used with clang 3.1 Closed 02/23/2012

Associated revisions

Revision 34841
Added by Nobuyoshi Nakada about 2 years ago

merge revision(s) 34840:

* configure.in (debugflags): check if -ggdb is accepted.
  [Bug #6080]

History

#1 Updated by Nobuyoshi Nakada about 2 years ago

  • Category set to build
  • Assignee set to Nobuyoshi Nakada
  • Target version set to 2.0.0

#2 Updated by Nobuyoshi Nakada about 2 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r34840.
John, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • configure.in (debugflags): check if -ggdb is accepted. [Bug #6080]

#3 Updated by Nobuyoshi Nakada about 2 years ago

  • Tracker changed from Bug to Backport
  • Project changed from ruby-trunk to Backport93
  • Category deleted (build)
  • Target version deleted (2.0.0)

Also available in: Atom PDF