rb_spread on Mac OS X

13 Nov 2008

I recently tried to start using the spread messaging toolkit on the mac, along with the associated ruby client api rb_spread, but had a few failures. I got everything running fine on a linux box, but doing the same thing on a Mac gave me this error when trying to use the ruby client:

% irb
irb(main):001:0> require 'spread.so'
dyld: NSLinkModule() error
dyld: Symbol not found: _SP_get_num_vs_offset_memb_mess
  Referenced from: /usr/local/lib/ruby/site_ruby/1.8/i686-darwin9.5.0/spread.bundle
  Expected in: flat namespace

Trace/BPT trap

There was not much information out there about this problem, so it took a while to figure out what the problem was.

The solution was to use an older version of the spread toolkit. Using version 3.17.x instead of the newer 4.0 version works perfectly.