Brian Wisti wrote:
If the needs are simple (compile FOX, compile FXRuby, run test suite),
then I could probably do it in the background at work, where I have 10.2
w/developer tools and Fink available on my machine.
What version of Ruby would I need to have to match up to your
environment? Anything else you can think of that my brain might miss
while I’m drinking my first cup of coffee?
I’ve been re-trying the experiment on SourceForge’s compile farm Mac OS
X box (which is running 10.1.5) and it basically crashes at the same
point as it always has – when Ruby tries to load the FXRuby extension
(i.e. require ‘fox’).
I built the 1.6.8-preview4 version of Ruby, followed by fox-1.0.28:
http://www.fox-toolkit.org/ftp/fox-1.0.28.tar.gz
There are some words about what you have to do to get FOX built under
Mac OS X here:
http://www.fifthplanet.net/cgi-bin/wiki.pl?Mac_OS_X
They refer to the build process under 10.1; don’t know if you’ll hit any
new wrinkles building FOX with 10.2. But I can confirm that when we did
this at RubyConf (on Jim Freeze’s iBook) we were able to run the FOX
example programs, etc. So that much should work.
Once you’re satisfied that FOX is installed and working properly, you
should be able to build FXRuby-1.0.17 as well. Here’s the process I used
this morning:
tar xzf FXRuby-1.0.17.tar.gz
cd FXRuby-1.0.17
export CXX=c++
ruby install.rb config
ruby install.rb setup
sudo ruby install.rb install
You may have to modify the Makefile that the extconf.rb script generates
in FXRuby-1.0.17/ext/fox so that the LDSHARED line includes the
“-read_only_relocs suppress” flag. But other than that it seemed to
compile just fine.
But…
When I try to run any of the FXRuby examples (e.g. the “hello.rb”
example) I get the error:
hello.rb:3: [BUG] Bus Error
ruby 1.6.8 (2002-12-16) [powerpc-darwin5.5]
Abort trap
If I run ruby under gdb, the stack trace is pointing to several calls
below dln_load() and it’s pretty clear that something is going horribly
wrong when Ruby tries to load the FXRuby extension (fox.bundle) itself.
If you have any insight at all into what’s wrong it would be helpful.
I’m a little hamstrung by the lack of direct access to a Mac OS X box of
my own, and it’s been suprisingly difficult to find good information on
the web. This is the kind of problem that I can usually muddle through
with Google’s help but no such luck this time 
Lyle