Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Build/ drb problems on Solaris with 6.2 sun compiler

Reply
Thread Tools

Build/ drb problems on Solaris with 6.2 sun compiler

 
 
Schneider, Michael
Guest
Posts: n/a
 
      08-20-2003
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--

 
Reply With Quote
 
 
 
 
Hugh Sasse Staff Elec Eng
Guest
Posts: n/a
 
      08-20-2003
On Thu, 21 Aug 2003, Schneider, Michael wrote:

> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DRb connection error with more than 250+ DRb services J. Wook Ruby 16 05-16-2007 11:32 AM
Sun Updates Sun Java Availability Suite, Adds Sun Cluster Advanced Edition for Oracle Real Application Clusters Deployments technology_post@yahoo.com Java 0 04-05-2006 04:29 AM
java compiler and other for Sun Solaris 2.8 blackdog Java 3 08-02-2005 03:44 PM
More DRb; SSL & DRB & errors Kirk Haines Ruby 0 07-01-2005 06:29 PM
DRb / dRuby - freezes on DRb::DRbUndumped - any ideas? Miles Keaton Ruby 3 03-30-2005 03:37 PM



Advertisments