Issue #7205 has been reported by cheese (Robin Lee). ---------------------------------------- Bug #7205: All symbols of libruby.so get LOCAL/HIDDEN visibility when build on CentOS4 https://bugs.ruby-lang.org/issues/7205 Author: cheese (Robin Lee) Status: Open Priority: Normal Assignee: Category: build Target version: ruby -v: ruby 1.9.3p286 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/