Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Module loading bus errors on mac (Ruby-ODBC
james.adam
5/13/2005 1:38:00 PM
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-t...
), but
to recap, if I compile ruby-odbc as per instructions (see codepaste:
http://rafb.net/paste/results/Jp5...
), 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/1Yw...
), 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
1 Answer
james.adam
5/13/2005 1:48:00 PM
0
As another curiousity, running "ruby -r odbc" works fine. This is just
plain weird... Please, anyone with any ideas, let me know...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Module loading bus errors on mac (Ruby-ODBC
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password