[erlang-bugs] Mac OS X dyld chokes on libei.a
Sat Aug 4 00:55:49 CEST 2007
I'm not sure about Mac OS, but per my generic unix experience libei.a is
not shared library, so you can not load it dynamically. It needs to be
linked statically to target executable application file or target shared
Markus Ingvarsson wrote:
> I'm not sure if this is a bug in libei or OpenMCL.
> When I try to dynamically load libei.a in OpenMCL (through CFFI), I
> get this error:
> Error opening shared library
> "/usr/local/lib/erlang/lib/erl_interface-22.214.171.124/lib/libei.a": dyld:
> /Users/markus/openmcl/ccl/dppccl malformed library:
> /usr/local/lib/erlang/lib/erl_interface-126.96.36.199/lib/libei.a (not a
> Mach-O file, bad magic number)
> According to Google, this error means the library is not properly built.
> I have Mac OS X 10.3, Erlang/OTP R11B-5 (built from source), and OpenMCL 1.0.
>  http://openmcl.clozure.com/
>  http://common-lisp.net/project/cffi/
More information about the erlang-bugs