Module loading bus errors on mac (Ruby-ODBC)

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
(, but
to recap, if I compile ruby-odbc as per instructions (see codepaste:, I get the following weird

--- 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:, 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

As another curiousity, running "ruby -r odbc" works fine. This is just
plain weird... Please, anyone with any ideas, let me know...