Mac OS X problems (was: Please test...)
Fri Jul 25 19:37:54 CEST 2003
> There seems that on Mac OS X, you sometimes need to add the
> flat to the link flags ('-bundle' by itself doesn't seem to be enough).
In my case I followed the guidelines in the top level README of
Erlang/OTP, which exactly mirrors the OS X documentation, and it works
perfectly. I would be a bit concerned about using non-standard ways of
linking shared libs for OS X.
Extract of OTP README follows:
"If you develop linked in drivers (shared library) you need to link
using "cc" and the flags "-bundle -flat_namespace -undefined
suppress". You also include "-fno-common" in CFLAGS when
compiling. Use ".so" as the library suffix."
> In today's snapshot of R9C the '-lbundle1.o' will be include in the
> link flags (for Mac OS X). I have not tested that this particular
> snapshot resolves the ASN1 problems (I don't have a Mac at work, only
> at home), but the '-lbundle1.o' fix applied to an earlier snapshot
> did work.
> Sean Hinde <> writes:
>> On Wednesday, July 9, 2003, at 05:12 pm, Kent Boortz wrote:
>>> It is now less than a month to the R9C release. The code is frozen
>>> we are still doing some testing, adding some missing documentation
>>> release notes.
>> The compile of the asn1 driver under OS X still tries to use ld for
>> the final link stage resulting in:
>> dyld: /Users/sean/R9C-0/lib/erlang/erts-2003.07.11/bin/beam Undefined
>> Trace/BPT trap
>> and an emulator crash when calling asn1rt:load-driver().
>> The fix is to use gcc for the final link stage.
>> The same problem exists in trace_ip_drv and trace_file_drv.
>> megaco_flex_scanner DOES work :)
> Björn Gustavsson Ericsson Utvecklings AB
> BOX 1505
> +46 8 727 56 87 125 25 Älvsjö
More information about the erlang-questions