[erlang-questions] Bug in Crypto Application

Lukas Larsson <>
Mon Oct 30 19:22:39 CET 2006


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



More information about the erlang-questions mailing list