[erlang-questions] OTP13B03 failed to build on OS X 10.6 in 64-bit with duplicate symbol _saved_program_buf in obj/i686-apple-darwin10/opt/smp/erl_pbifs.o and obj/i686-apple-darwin10/opt/smp/erl_main.o

Sverker Eriksson sverker@REDACTED
Wed Dec 16 11:03:41 CET 2009


Ceriel Jacobs wrote:
> How did anyone succeed to build OTP13B03 on Mac OS X 10.6 in 64-bit (optimized) mode?
>
>
> ld: duplicate symbol _saved_program_buf in obj/i686-apple-darwin10/opt/smp/erl_pbifs.o and obj/i686-apple-darwin10/opt/smp/erl_main.o
> collect2: ld returned 1 exit status
> make[3]: *** [/Users/user/src/otp_src_R13B03/bin/i686-apple-darwin10/beam.smp] Error 1
> make[2]: *** [opt] Error 2
> make[1]: *** [smp] Error 2
> make: *** [emulator] Error 2
>   
Try remove this line from erts/emulator/beam/global.h:

    struct erl_heap_fragment* saved_program_buf;

Looks like a residue from something removed and should not be there.

/Sverker, Erlang/OTP Ericsson




More information about the erlang-questions mailing list