From: Daniel Berger Date: 2006-04-13T05:55:37+09:00 Subject: Re: Installing on Solaris using sparc-sun-solaris-2.8 Daniel Berger wrote: > Daniel Berger wrote: > > > >> Wait a minute - are you building against the latest in CVS? Because >> I'm hitting the same issue because "isinf" isn't linked in properly. >> However, if you're building against 1.8.4 stable (release 12-24-2005), >> you shouldn't hit this. >> >> Is this what you're seeing? >> >> gcc -Wall main.o libruby-static.a -ldl -lcrypt -lm -o miniruby -g >> -O2 -DRUBY_EXPORT >> Undefined first referenced >> symbol in file >> isinf libruby-static.a(marshal.o) >> ld: fatal: Symbol referencing errors. No output written to miniruby >> collect2: ld returned 1 exit status >> *** Error code 1 >> make: Fatal error: Command failed for target `miniruby' >> >> Regards, >> >> Dan > > FYI, Matz, or whoever from core is listening, it appears that you need > to link in sunmath to get this to work. > > In other news, I don't see sunmath.h anywhere... > > Dan Further research indicates that sunmath.h is part of the Sun compiler install, i.e. under /opt/SUNWspro. It isn't included with the usual header files under /usr/include. So, you can link against -lsunmath and just ignore the implicit declaration warning, or you can define isinf as "!finite" from ieeefp.h on Sun. Regards, Dan