Hi all,
Got a bit of a problem with a couple of C extensions, and to be more
specific bus errors upon requiring them in certain circumstances. I've
described the problem in relation to OpenGL/GLUT in a previous message
(http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/139863), but
to recap, if I compile ruby-odbc as per instructions (see codepaste:
http://rafb.net/paste/results/Jp5uci26.html), I get the following weird
results:
--- begin listing ---
apple:/usr/local/src/ruby-odbc-0.996 jamesa$ irb
irb(main):001:0> require 'odbc'
=> true
irb(main):002:0> exit
apple:/usr/local/src/ruby-odbc-0.996 jamesa$ irb -r odbc
../odbc.bundle: [BUG] Bus Error
ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0.0]
Abort trap
--- end listing ---
Does anyone have ANY ideas what's going on here? For those of you that
might be Mac-compilation-literate, using GDB I can see that the load
error is happening with NSLinkModule() (see codepaste:
http://rafb.net/paste/results/1Ywt7678.html), I thought that perhaps
the Objective-C stuff wasn't getting properly initialised, but linking
in the Foundation framework didn't do much to help at all.
Please help!
- James Adam