Issue #10906 has been updated by Daniel Berger.


I don't know what to tell you. For anyone reading this, to get around it I did this:

    configure --disable-install-doc --disable-install-rdoc
    make
    make install

It failed when it tried to install bundle gems, but core Ruby was still installed by that point. So then I went to ext/date and added this line near the top of date_core.c

    const union bytesequence4_or_float rb_infinity = {{0x7f, 0x80, 0x00, 0x00}};

I also had to fix the Makefile:

    top_srcdir = ../..

Then make; make install

Now it's working.

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

* 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/