Project

General

Profile

Backport #7205

All symbols of libruby.so get LOCAL/HIDDEN visibility when build on CentOS4

Added by cheese (Robin Lee) almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:48147]

Description

Ruby 1.9.3 build fails on CentOS4 with such errors:

linking ruby
main.o(.text+0x3c): In function main':
: undefined reference to
ruby_sysinit'
main.o(.text+0x47): In function main':
: undefined reference to
ruby_init_stack'
main.o(.text+0x4c): In function main':
: undefined reference to
ruby_init'
main.o(.text+0x5e): In function main':
: undefined reference to
ruby_options'
main.o(.text+0x66): In function main':
: undefined reference to
ruby_run_node'

I found All symbols of libruby.so get LOCAL/HIDDEN visibility. For example:
$ readelf -a libruby.so|grep ruby_sysinit
6260: 000e01f0 561 FUNC LOCAL HIDDEN 10 ruby_sysinit

I am building on CentOS4 i386 with GCC:
$ gcc --version
gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)

Ruby 1.8.7 build is successful.


Files

config.log (624 KB) config.log config.log from ./configure on CentOS/RHEL4 cheese (Robin Lee), 10/23/2012 11:16 AM

Associated revisions

Revision 02493955
Added by nobu (Nobuyoshi Nakada) almost 7 years ago

configure.in: no visibility option for older GCC

  • configure.in (visibility_option): visibility attribute is not available before GCC 4, so do not use -fvisibility option in that case. [ruby-core:48147] [Bug #7205]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 37296
Added by nobu (Nobuyoshi Nakada) almost 7 years ago

configure.in: no visibility option for older GCC

  • configure.in (visibility_option): visibility attribute is not available before GCC 4, so do not use -fvisibility option in that case. [ruby-core:48147] [Bug #7205]

Revision 37296
Added by nobu (Nobuyoshi Nakada) almost 7 years ago

configure.in: no visibility option for older GCC

  • configure.in (visibility_option): visibility attribute is not available before GCC 4, so do not use -fvisibility option in that case. [ruby-core:48147] [Bug #7205]

Revision 37296
Added by nobu (Nobuyoshi Nakada) almost 7 years ago

configure.in: no visibility option for older GCC

  • configure.in (visibility_option): visibility attribute is not available before GCC 4, so do not use -fvisibility option in that case. [ruby-core:48147] [Bug #7205]

Revision 37296
Added by nobu (Nobuyoshi Nakada) almost 7 years ago

configure.in: no visibility option for older GCC

  • configure.in (visibility_option): visibility attribute is not available before GCC 4, so do not use -fvisibility option in that case. [ruby-core:48147] [Bug #7205]

Revision 37296
Added by nobu (Nobuyoshi Nakada) almost 7 years ago

configure.in: no visibility option for older GCC

  • configure.in (visibility_option): visibility attribute is not available before GCC 4, so do not use -fvisibility option in that case. [ruby-core:48147] [Bug #7205]

Revision 37296
Added by nobu (Nobuyoshi Nakada) almost 7 years ago

configure.in: no visibility option for older GCC

  • configure.in (visibility_option): visibility attribute is not available before GCC 4, so do not use -fvisibility option in that case. [ruby-core:48147] [Bug #7205]

Revision b5a6ad3f
Added by usa (Usaku NAKAMURA) almost 7 years ago

merge revision(s) 37296: [Backport #7205]

    * configure.in (visibility_option): visibility attribute is not
      available before GCC 4, so do not use -fvisibility option in that
      case.  [ruby-core:48147] [Bug #7205]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 37552
Added by usa (Usaku NAKAMURA) almost 7 years ago

merge revision(s) 37296: [Backport #7205]

* configure.in (visibility_option): visibility attribute is not
  available before GCC 4, so do not use -fvisibility option in that
  case.  [ruby-core:48147] [Bug #7205]

History

Updated by nobu (Nobuyoshi Nakada) almost 7 years ago

Could you show config.log file?

#2

Updated by cheese (Robin Lee) almost 7 years ago

OK, config.log is attached.

#3

Updated by nobu (Nobuyoshi Nakada) almost 7 years ago

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

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


configure.in: no visibility option for older GCC

  • configure.in (visibility_option): visibility attribute is not available before GCC 4, so do not use -fvisibility option in that case. [ruby-core:48147] [Bug #7205]
#4

Updated by nobu (Nobuyoshi Nakada) almost 7 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby master to Backport193
  • Category deleted (build)
  • Status changed from Closed to Assigned
  • Assignee set to usa (Usaku NAKAMURA)

Updated by cheese (Robin Lee) almost 7 years ago

OK. Tested. Ruby compiles without '-fvisibility' option with GCC 3.4

#6

Updated by usa (Usaku NAKAMURA) almost 7 years ago

  • Status changed from Assigned to Closed

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


merge revision(s) 37296: [Backport #7205]

* configure.in (visibility_option): visibility attribute is not
  available before GCC 4, so do not use -fvisibility option in that
  case.  [ruby-core:48147] [Bug #7205]

Also available in: Atom PDF