[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
-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


More information about the erlang-questions mailing list