aerospike/act

actprep build error

Opened this issue · 2 comments

I am receiving the error below when trying to build actprep.

matt@matt-work:~/source/act$ make -f Makesalt
echo "Building salt.o"
Building salt.o
gcc -g -fno-common -std=gnu99 -Wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -MMD -o salt.o -c -I. -I/usr/include salt.c
echo "Linking actprep"
Linking actprep
gcc -g -fno-common -std=gnu99 -Wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -MMD -o actprep ./salt.o -lpthread -lrt -lssl
./salt.o: In function rand_fill': /home/matt/source/act/salt.c:429: undefined reference toRAND_bytes'
./salt.o: In function rand_seed': /home/matt/source/act/salt.c:458: undefined reference toRAND_seed'
collect2: error: ld returned 1 exit status
make: *** [actprep] Error 1

For Ubuntu, Changing the line in Makesalt to

gcc -g -fno-common -std=gnu99 -Wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -MMD -o actprep ./salt.o -lpthread -lrt -lcrypto -lz

will fix the issue.

Thank you that worked fine.