[erlang-bugs] Mac OS X dyld chokes on libei.a

Dmitriy Kargapolov dmitry.kargapolov@REDACTED
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 
library file.

Markus Ingvarsson wrote:
> I'm not sure if this is a bug in libei or OpenMCL[1].
> 
> When I try to dynamically load libei.a in OpenMCL (through CFFI[2]), I
> get this error:
> Error opening shared library
> "/usr/local/lib/erlang/lib/erl_interface-3.5.5.3/lib/libei.a": dyld:
> /Users/markus/openmcl/ccl/dppccl malformed library:
> /usr/local/lib/erlang/lib/erl_interface-3.5.5.3/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.
> 
> [1] http://openmcl.clozure.com/
> [2] http://common-lisp.net/project/cffi/
> 



More information about the erlang-bugs mailing list