Errors compiling in Fedora 13


I’m trying to use SQLCipher.
I started by compiling OpenSSL to obtain libcrypto.a.
I them compiled SQLCipher with success configuring it like

./configure --enable-tempstore=yes

I them compiled my application but I got the folowing errors.

/extref/libsqlcipher_bin/X86/release/libsqlcipher.a(sqlite3.o): In function sqlcipher_openssl_activate': sqlite3.c:(.text+0x3f82): undefined reference toOPENSSL_add_all_algorithms_noconf’
./extref/libsqlcipher_bin/X86/release/libsqlcipher.a(sqlite3.o): In function sqlcipher_openssl_deactivate': sqlite3.c:(.text+0x4002): undefined reference toEVP_cleanup’
./extref/libsqlcipher_bin/X86/release/libsqlcipher.a(sqlite3.o): In function sqlcipher_openssl_hmac': sqlite3.c:(.text+0x40a7): undefined reference toHMAC_CTX_init’
sqlite3.c:(.text+0x4139): undefined reference to HMAC_CTX_cleanup' ./extref/libsqlcipher_bin/X86/release/libsqlcipher.a(sqlite3.o): In functionsqlcipher_openssl_cipher’:
sqlite3.c:(.text+0x426f): undefined eference to `EVP_CIPHER_CTX_cleanup’.

After searching the internet, I’ve tried to compile SQLCipher by indicating the locatioin of the include files by configuring it like:

./configure --enable-tempstore=yes
CFLAGS="-DSQLITE_HAS_CODEC -I…/…/extref/libopenssl_bin/include"

But them I got these errors compiling SQLCypher:
sqlite3.c: In function ‘sqlcipher_openssl_hmac’:
sqlite3.c:18401: error: storage size of ‘hctx’ isn’t known
sqlite3.c: In function ‘sqlcipher_openssl_cipher’:
sqlite3.c:18418: error: storage size of ‘ectx’ isn’t known

Can someone help me solving these errors?


Hi @Rui_Goncalves

What steps are you performing to build OpenSSL, and also what version are you attempting to build?


The OpenSSL version stated in the RAEDME file is “OpenSSL 1.1.0-pre6-dev”

My steps for building are
./ make
make test make install

The file file is:

Thanks for your interest.


Hi @Rui_Goncalves

OpenSSL 1.1.0 is still in beta, have you tried the current 1.0.2h release instead?


I tried OpenSSL 1.0.2h as you sugested and it works fine.
Thanks for the help.


Hi @Rui_Goncalves

I’m glad to hear that worked, thanks for letting us know!