Issue #7205 has been updated by cheese (Robin Lee). OK. Tested. Ruby compiles without '-fvisibility' option with GCC 3.4 ---------------------------------------- Backport #7205: All symbols of libruby.so get LOCAL/HIDDEN visibility when build on CentOS4 https://bugs.ruby-lang.org/issues/7205#change-31337 Author: cheese (Robin Lee) Status: Assigned Priority: Normal Assignee: usa (Usaku NAKAMURA) Category: Target version: 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. -- http://bugs.ruby-lang.org/