Build/ drb problems on Solaris with 6.2 sun compiler

S

Schneider, Michael

This is a multi-part message in MIME format.

------_=_NextPart_001_01C3673C.F50947F1
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello All,


I am new to ruby. I started by downloading and prototyping on Windows =
with the
self-install. Great language / great job on the self install.


I compiled on HP, SGI with no problems.

On Solaris 8, workshop 6.2 I had a compile problem with defines.h

Line 145, asm volitile ....

I also made the suggested change to configure to use alloca.h if it =
exists. (Note:
there was no behaviour change with this change)

Solaris did not seem to understand volatile, so I removed it, and all =
went well for the build.

I did a make test, and all was well.

Next, I downloaded and installed drb 2.0.4. When I tried to run my =
simple rinda code
(that works on windows, HP and SGI). I get the following error.

Thanks in advance for any pointers,
Mike

-------------------------------------------------------------------------=
-------------------------
(scmikes)sun82:tupplespace>ruby rindas.rb =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:321:in `set_sockopt': uninitialized constant Socket::TCP_NODELAY =
(NameError) from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:268:in `initialize' from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:254:in `new' from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:254:in `open_server' from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:184:in `open_server' from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:182:in `each' from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:182:in `open_server' from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:542:in `initialize' from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:737:in `new' from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:737:in `start_service' from rindas.rb:13 (scmikes)sun82:tupplespace>=20

-------------------------------------------------------------------------=
----------------------------------------------
code
-------------------------------------------------------------------------=
--------------------------
require 'drb/drb'
require 'rinda/tuplespace'

uri=3D"druby://localhost:12321"
DRb.start_service(uri, Rinda::TupleSpace.new)
puts DRb.uri
DRb.thread.join

------_=_NextPart_001_01C3673C.F50947F1
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.6249.1">
<TITLE>Build/ drb problems on Solaris with 6.2 sun compiler</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">Hello All,</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">I am new to ruby.&nbsp; I started by =
downloading and prototyping on Windows with the</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">self-install.&nbsp; Great language / =
great job on the self install.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">I compiled on HP, SGI with no =
problems.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">On Solaris 8, workshop 6.2&nbsp; I had =
a compile problem with defines.h</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Line 145,&nbsp;&nbsp; asm volitile =
....</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I also made the suggested change to =
configure to use alloca.h if it exists. (Note:</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">there was no behaviour change with =
this change)</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Solaris did not seem to understand =
volatile, so I removed it, and all went well for the build.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I did a make test, and all was =
well.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Next, I downloaded and installed drb =
2.0.4.&nbsp;&nbsp; When I tried to run my simple rinda code</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">(that works on windows, HP and =
SGI).&nbsp; I get the following error.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks in advance for any =
pointers,</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Mike</FONT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">----------------------------------------------------------=
----------------------------------------</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">(scmikes)sun82:tupplespace&gt;ruby =
rindas.rb =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:321:in `set_sockopt': uninitialized constant Socket::TCP_NODELAY =
(NameError) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:268:in `initialize' &nbsp;&nbsp;&nbsp; from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:254:in `new' &nbsp;&nbsp; from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:254:in `open_server' &nbsp;&nbsp; from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:184:in `open_server' &nbsp;&nbsp; from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:182:in `each' &nbsp; from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:182:in `open_server' &nbsp;&nbsp; from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:542:in `initialize' &nbsp;&nbsp;&nbsp; from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:737:in `new' &nbsp;&nbsp; from =
/misc/pdtools/scm/.scmikes/ruby/dist/sun/lib/ruby/site_ruby/1.8/drb/drb.r=
b:737:in `start_service'&nbsp; from rindas.rb:13 =
(scmikes)sun82:tupplespace&gt; </FONT></P>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">----------------------------------------------------------=
-------------------------------------------------------------</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">code</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">----------------------------------------------------------=
-----------------------------------------</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">require 'drb/drb'</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">require 'rinda/tuplespace'</FONT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">uri=3D&quot;druby://localhost:12321&quot;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">DRb.start_service(uri, =
Rinda::TupleSpace.new)</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">puts DRb.uri</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">DRb.thread.join</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C3673C.F50947F1--
 
H

Hugh Sasse Staff Elec Eng

Hello All,

I compiled on HP, SGI with no problems.

On Solaris 8, workshop 6.2 I had a compile problem with defines.h

Line 145, asm volitile ....
[...]

The quickest route for this in terms of human effort, in my
experience, is to build GCC on your solaris system and build ruby
with GCC.

HTH
Hugh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,150
Members
46,697
Latest member
AugustNabo

Latest Threads

Top