Subject:
[ruby-ffi] Symbol not found
From:
Ian
Date:
7/12/11 9:55 AM
To:
ruby-ffi

i'm trying to wrap giflib and am encountering the following error when
i try to make a wrapped method call from ruby:

dyld: lazy symbol binding failed: Symbol not found:
_DGifOpenFileHandle Referenced from: /usr/local/Cellar/giflib/4.1.6/
lib/libgif.4.1.6.dylib Expected in: flat namespace

dyld: Symbol not found: _DGifOpenFileHandle Referenced from: /usr/
local/Cellar/giflib/4.1.6/lib/libgif.4.1.6.dylib Expected in: flat
namespace


however, when i use nm to look for that symbol, it seems like it's
there.

ruby-1.9.2@ian:s8-e1$ nm /usr/local/Cellar/giflib/4.1.6/lib/libgif.
4.1.6.dylib | grep

DGifOpenFileHandle 0000000000002750 T DGifOpenFileHandle

any thoughts?

--Ian