[Bug #3260] Can't build Ruby with SunStudio on sparc Solaris

Bug #3260: Can’t build Ruby with SunStudio on sparc Solaris
http://redmine.ruby-lang.org/issues/show/3260

e$B5/I<<Te(B: Yuki S.
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$BC4Ev<Te(B: Yui NARUSE, e$B%+%F%4%je(B: ext, Target version: 1.9.2
ruby -v: ruby 1.9.3dev (2010-05-08 trunk 27674) [sparc-solaris2.10]

trunke$B$re(Bsparc
solarise$B>e$Ge(BSune$B$Ne(Bcce$B$G%3%s%Q%$%k$7$?>l9g!"<!$N%(%i!<$,=P$Fe(Bext/jsone$B$r%S%k%I$G$-$^$;$s$G$7$?!#e(B

ccache cc -I. -I…/…/…/.ext/include/sparc-solaris2.10
-I…/…/…/…/…/mri/include -I…/…/…/…/…/mri/ext/json/generator
-DRUBY_EXTCONF_H=e$B!oe(B"extconf.he$B!oe(B" -D_FILE_OFFSET_BITS=64
-KPIC -m32 -xO4 -g -ogenerator.o -c
…/…/…/…/…/mri/ext/json/generator/generator.c
“…/…/…/…/…/mri/ext/json/generator/generator.c”, line 342: a cast
does not yield an lvalue
cc: acomp failed for
/export/home/yugui/.ccache/generator.tmp.blade1000dev.home.yugui.jp.18621.i
*** Error code 1
make: Fatal error: Command failed for target `generator.o’
Current working directory
/export/home/yugui/dev/ruby/build/1.9.2/ext/json/generator

e$BEv3:2U=j$r8+$k$H<!$N$h$&$K$J$C$F$^$9!#e(B
fb->ptr = (char ) REALLOC_N((long) fb->ptr, char, required);

e$B$3$Ne(Blong*e$B$X$N%-%c%9%H$C$F$I$&$$$&0U?^$G9T$C$F$^$9$+e(B?

e$B%A%1%C%He(B #3260 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

This issue was solved with changeset r27694.
Yuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


http://redmine.ruby-lang.org/issues/show/3260