--
lternative 00694E06C225719C_Content-Type: text/plain; charset="US-ASCII"

Yukihiro Matsumoto <matz / ruby-lang.org> wrote on 29.06.2006 20:53:20:

> Hi,
> 
> In message "Re: 1.8.5p1 build failure on Solaris 10"
>     on Fri, 30 Jun 2006 02:35:51 +0900, ville.mattila / stonesoft.com 
writes:
> 
> |> Can you write a patch for us?
> |
> |   Yes I can. It will be ready 10.7 at the latest. I'm on summer 
vacation 
> |and my computer time is limited...
> 
> 
At the end is minimal patch. It seems to work with the following compilers

sun's supported gcc
/usr/sfw/bin/gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure 
--prefixsr/sfw --with-assr/sfw/bin/gas --with-gnu-as 
--with-ldsr/ccs/bin/ld --without-gnu-ld --enable-languages++ 
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

The latest gcc
 /usr/local/gcc-4.1/bin/gcc -v
Using built-in specs.
Target: i386-pc-solaris2.10
Configured with: ../configure --prefixsr/local/gcc-4.1 
--with-assr/sfw/bin/gas --with-gnu-as --with-ldsr/ccs/bin/ld 
--without-gnu-ld --enable-languagesタc++ --enable-shared
Thread model: posix
gcc version 4.1.1

and the sun's forte compiler
 /opt/SUNWspro/bin/cc -V 
cc: Sun C 5.8 2005/10/13

I didn't use the gcc option "-stdu99" because with that option I got 
errors with the sun's gcc.

bash-3.00# cvs diff -up configure.in
Index: configure.in
RCS file: /src/ruby/configure.in,v
retrieving revision 1.212.2.50
diff -u -p -r1.212.2.50 configure.in
--- configure.in        27 Jun 2006 07:21:24 -0000      1.212.2.50
+++ configure.in        29 Jun 2006 19:04:15 -0000
@@ -417,7 +417,9 @@ bow)                ac_cv_func_setitimer
                ;;
 superux*)     ac_cv_func_setitimer
               ;;
-solaris*2.10)  ac_cv_func_isinf
ォェイョアーゥ    ュ 「、ヌテテ「サ 
ォ                      ゜゜゜
ォ              
                フノツモ 、フノツモ「
               ササ
 ェゥ フノツモ 、フノツモ「ササ


ュュ
 ーーカケエナーカテイイオキアケテ゜