[erlang-questions] OTP13B03 failed to make parallel on OS X 10.6 in 64-bit: ld: duplicate symbol _debug in debuglog.o and esock.o

Sverker Eriksson sverker@REDACTED
Thu Dec 17 10:57:06 CET 2009


Ceriel Jacobs wrote:
> The next error message is:
>
> gcc  -m64 -fast -arch x86_64 -march=nocona -mtune=generic -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -I/Users/ceriel/src/otp_src_R13B03/erts/i686-apple-darwin10  -no-cpp-precomp    -o ../priv/bin/i686-apple-darwin10/ssl_esock ../priv/obj/i686-apple-darwin10/esock.o ../priv/obj/i686-apple-darwin10/debuglog.o ../priv/obj/i686-apple-darwin10/esock_poll.o ../priv/obj/i686-apple-darwin10/esock_osio.o ../priv/obj/i686-apple-darwin10/esock_utils.o ../priv/obj/i686-apple-darwin10/esock_posix_str.o ../priv/obj/i686-apple-darwin10/esock_openssl.o -lutil -ldl -lm   -L/opt/local/lib -lssl -lcrypto
> ld: duplicate symbol _debug 
Just add "extern " at these places (and we will add them for next release):

lib/ssl/c_src/debuglog.h:
37,40c37,40
< int  debug;
< int  debugmsg;
< FILE *ssllogfp;
< FILE *__locallogfp;
---
 > extern int  debug;
 > extern int  debugmsg;
 > extern FILE *ssllogfp;
 > extern FILE *__locallogfp;

lib/ssl/c_src/esock_ssl.h:
37c37
< char *esock_ssl_errstr;
---
 > extern char *esock_ssl_errstr;
40c40
< int ephemeral_rsa, ephemeral_dh;
---
 > extern int ephemeral_rsa, ephemeral_dh;
43c43
< int protocol_version;
---
 > extern int protocol_version;


/Sverker, Erlang/OTP Ericsson



More information about the erlang-questions mailing list