Issue #10906 has been updated by Naohisa Goto.


Adding "-std=gnu99" to CFLAGS might solve the problem.

~~~
 % CFLAGS="-std=gnu99" ./configure
~~~


----------------------------------------
Bug #10906: Problem building on Solaris 10 - symbol rb_infinity not found
https://bugs.ruby-lang.org/issues/10906#change-51743

* Author: Daniel Berger
* Status: Feedback
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.2.0
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Hi,

Solaris 10
gcc 4.8
ruby 2.2.0 current stable

I did configure/make, and it works until it tries to generate rdoc:    

    Generating RDoc documentation
    /export/home/djberge/Downloads/Ruby/ruby-2.2.0/.ext/common/date.rb:3:in `require': ld.so.1: ruby: fatal: relocation error: file /export/home/djberge/Downloads/Ruby/ruby-2.2.0/.ext/i386-solaris2.10/date_core.so: symbol rb_infinity: referenced symbol not found - /export/home/djberge/Downloads/Ruby/ruby-2.2.0/.ext/i386-solaris2.10/date_core.so (LoadError)
        from /export/home/djberge/Downloads/Ruby/ruby-2.2.0/.ext/common/date.rb:3:in `<top (required)>'
        from /export/home/djberge/Downloads/Ruby/ruby-2.2.0/lib/time.rb:1:in `require'
        from /export/home/djberge/Downloads/Ruby/ruby-2.2.0/lib/time.rb:1:in `<top (required)>'
        from /export/home/djberge/Downloads/Ruby/ruby-2.2.0/lib/rdoc/rdoc.rb:6:in `require'
        from /export/home/djberge/Downloads/Ruby/ruby-2.2.0/lib/rdoc/rdoc.rb:6:in `<top (required)>'
        from ./bin/rdoc:16:in `require'
        from ./bin/rdoc:16:in `<main>'
make: *** [rdoc] Error 1



-- 
https://bugs.ruby-lang.org/