[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Can't compile ruby 1.8.4 on Intel Solaris 10

llothar

5/20/2006 1:14:00 AM

I tried to compile 1.8.4 on Intel Solaris 10/U2 today and completely
failed.
First i was using gcc 3.3 which is the default gcc compiler for Solaris
10 because
it's the only version you get precompiled from www.sunfreeware.com.

Using "configure" without options crashs the make run with
-----------------------------------------------------
gcc -g -O2 -DRUBY_EXPORT -I. -I. -c main.c
gcc main.o libruby-static.a -ldl -lcrypt -lm -o miniruby -g -O2
-DRUBY_EXPORT
make: *** [.rbconfig.time] Segmentierungsfehler (core dumped)
-----------------------------------------------------

and "configure --enable-shared" is a little bit differnt
-------------------------------------------------------------
gcc -g -O2 -fPIC -DRUBY_EXPORT -I. -I. -c main.c
gcc main.o libruby-static.a -ldl -lcrypt -lm -o miniruby -g -O2
-fPIC -DRUBY_EXPORT
../lib/fileutils.rb:85: NULL pointer given (ArgumentError)
from ./mkconfig.rb:10
make: *** [.rbconfig.time] Error 1
--------------------------------------------------

The i was brave and tried to compile with the sun studio compiler,
remembering that python does also not compile with gcc on solaris for
almost 10 years now.
Configure showed me that it is possible because the option
"--without-gcc" is available.

After giving me a lot of warnings the compiler stops with:
---------------------------------------------------------------------------------
cc -g -KPIC -DRUBY_EXPORT -I. -I. -c ./missing/isinf.c
"./missing/isinf.c", line 32: syntax error before or at:
__builtin_isinf
"./missing/isinf.c", line 33: warning: old-style declaration or
incorrect type for: n
"./missing/isinf.c", line 33: syntax error before or at: double
"./missing/isinf.c", line 33: identifier redeclared: n
current : double
previous: int : "./missing/isinf.c", line 32
"./missing/isinf.c", line 35: syntax error before or at: return
cc: acomp failed for ./missing/isinf.c
make: *** [isinf.o] Error 2
---------------------------------------------------------------------------------

Unforunately i have no idea what is wrong.

1 Answer

Ville Mattila

5/22/2006 5:05:00 AM

0

Hello Lothar,

This is fixed in 1.8 cvs.
See http://marc.theaimsgroup.com/?l=ruby-core&m=1137156969243...

- Ville