[erlang-questions] Bug in Crypto Application

Bjorn Gustavsson bjorn@REDACTED
Tue Oct 31 06:44:52 CET 2006


Which platform is that?

Given the path -I/home/lukas/Desktop... I guess Mac OS X, but which version is
it?

/Bjorn

"Lukas Larsson" <lukas@REDACTED> writes:

> There seems to be a bug when compiling the Crypto Application. It
> compiles fine, but when you try to load it it fails. To fix this I had
> to add -fno-stack-protector to the CFLAGS so that the make command
> looks like this:
> 
> $ gcc -c -o ../priv/obj/i686-pc-linux-gnu/crypto_drv.o -g -O2
> -I/home/lukas/Desktop/otp_src_R11B-1/erts/i686-pc-linux-gnu
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE
> -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT
> -D_POSIX_THREAD_SAFE_FUNCTIONS -fPIC -fno-stack-protector
> -I/usr/include -I../../..//erts/emulator/beam
> -I../../..//erts/emulator/sys/unix crypto_drv.c
> 
> $ ld -shared -L/usr/lib -R/usr/lib \
> >                         -o ../priv/lib/i686-pc-linux-gnu/crypto_drv.so ../priv/obj/i686-pc-linux-gnu/crypto_drv.o  -lcrypto
> 
> Lukas
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
> 

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB




More information about the erlang-questions mailing list