# Error in configure for creating encripted sqlite 3.11.0

**URL:** <https://discuss.zetetic.net/t/error-in-configure-for-creating-encripted-sqlite-3-11-0/1723>\
**Category:** Issues\
**Created:** [September 29, 2016, 3:47pm UTC](https://discuss.zetetic.net/t/error-in-configure-for-creating-encripted-sqlite-3-11-0/1723 "2016-09-29T15:47:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jocaro](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@jocaro](https://discuss.zetetic.net/u/jocaro)\
**Post date:** [September 29, 2016, 3:47pm UTC](https://discuss.zetetic.net/t/error-in-configure-for-creating-encripted-sqlite-3-11-0/1723/1 "2016-09-29T15:47:10Z")

</div>

Hi

I´m trying next configuration through MinGW, with OpenSSL ver 1.1.0, 32 bits

./configure --disable-tcl --disable-amalgamation CFLAGS="-DSQLITE\_HAS\_CODEC -I/c/OpenSSL-Win32/include" LDFLAGS="-L/c/OpenSSL-Win32/bin -l/c/OpenSSL-Win32/lib/MinGW"

The execution return next error. How avoid it?

checking for crypto library to use… openssl  
checking for HMAC\_Init\_ex in -lcrypto… no  
configure: error: Library crypto not found. Install openssl!"

Thanks for your attention

---

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [September 29, 2016, 4:26pm UTC](https://discuss.zetetic.net/t/error-in-configure-for-creating-encripted-sqlite-3-11-0/1723/2 "2016-09-29T16:26:28Z")

</div>

Hi @jocaro

You will want to include in your `./configure` phase: `--with-crypto-lib=none`. With your `CFLAGS`, you will want to include `-DSQLCIPHER_CRYPTO_OPENSSL`.

---

<div class="post-metadata">

**Author:** ![jocaro](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@jocaro](https://discuss.zetetic.net/u/jocaro)\
**Post date:** [September 29, 2016, 5:15pm UTC](https://discuss.zetetic.net/t/error-in-configure-for-creating-encripted-sqlite-3-11-0/1723/3 "2016-09-29T17:15:43Z")

</div>

Hi

Configure completed successfully, but make with errors

$ ./configure --disable-tcl --disable-amalgamation --with-crypto-lib=none CFLAGS="-DSQLITE\_HAS\_CODEC -DSQLCIPHER\_CRYPTO\_OPENSSL -I/c/OpenSSL-Win32/include" LDFLAGS="-L/c/OpenSSL-Win32/bin"

$ make

After many compiled files, fails

./libtool --mode=compile --tag=CC gcc -DSQLITE\_HAS\_CODEC -DSQLCIPHER\_CRYPTO\_OPEN  
SSL -I/c/OpenSSL-Win32/include -DSQLITE\_OS\_WIN=1 -I. -I/c/PruebaCifrado/src -I/c  
/PruebaCifrado/ext/rtree -I/c/PruebaCifrado/ext/fts3 -D\_HAVE\_SQLITE\_CONFIG\_H -DB  
UILD\_sqlite -DNDEBUG -DSQLITE\_THREADSAFE=1 -c /c/PruebaCifrado/src/crypto.c  
libtool: compile: gcc -DSQLITE\_HAS\_CODEC -DSQLCIPHER\_CRYPTO\_OPENSSL -I/c/OpenSS  
L-Win32/include -DSQLITE\_OS\_WIN=1 -I. -I/c/PruebaCifrado/src -I/c/PruebaCifrado/  
ext/rtree -I/c/PruebaCifrado/ext/fts3 -D\_HAVE\_SQLITE\_CONFIG\_H -DBUILD\_sqlite -DN  
DEBUG -DSQLITE\_THREADSAFE=1 -c /c/PruebaCifrado/src/crypto.c -DDLL\_EXPORT -DPIC  
-o .libs/crypto.o  
In file included from c:/PruebaCifrado/src/crypto.c:37:0:  
c:/PruebaCifrado/src/crypto.h:239:12: warning: 'sqlcipher\_codec\_get\_store\_pass’  
used but never defined  
static int sqlcipher\_codec\_get\_store\_pass(codec\_ctx \*ctx);  
^  
c:/PruebaCifrado/src/crypto.h:240:13: warning: ‘sqlcipher\_codec\_get\_pass’ used b  
ut never defined  
static void sqlcipher\_codec\_get\_pass(codec\_ctx \*ctx, void \*\*zKey, int _nKey);  
^  
c:/PruebaCifrado/src/crypto.h:241:13: warning: 'sqlcipher\_codec\_set\_store\_pass’  
used but never defined  
static void sqlcipher\_codec\_set\_store\_pass(codec\_ctx ctx, int value);  
^  
libtool: compile: gcc -DSQLITE\_HAS\_CODEC -DSQLCIPHER\_CRYPTO\_OPENSSL -I/c/OpenSS  
L-Win32/include -DSQLITE\_OS\_WIN=1 -I. -I/c/PruebaCifrado/src -I/c/PruebaCifrado/  
ext/rtree -I/c/PruebaCifrado/ext/fts3 -D\_HAVE\_SQLITE\_CONFIG\_H -DBUILD\_sqlite -DN  
DEBUG -DSQLITE\_THREADSAFE=1 -c /c/PruebaCifrado/src/crypto.c -o crypto.o \>/dev/n  
ull 2\>&1  
./libtool --mode=compile --tag=CC gcc -DSQLITE\_HAS\_CODEC -DSQLCIPHER\_CRYPTO\_OPEN  
SSL -I/c/OpenSSL-Win32/include -DSQLITE\_OS\_WIN=1 -I. -I/c/PruebaCifrado/src -I/c  
/PruebaCifrado/ext/rtree -I/c/PruebaCifrado/ext/fts3 -D\_HAVE\_SQLITE\_CONFIG\_H -DB  
UILD\_sqlite -DNDEBUG -DSQLITE\_THREADSAFE=1 -c /c/PruebaCifrado/src/crypto\_im  
pl.c  
libtool: compile: gcc -DSQLITE\_HAS\_CODEC -DSQLCIPHER\_CRYPTO\_OPENSSL -I/c/OpenSS  
L-Win32/include -DSQLITE\_OS\_WIN=1 -I. -I/c/PruebaCifrado/src -I/c/PruebaCifrado/  
ext/rtree -I/c/PruebaCifrado/ext/fts3 -D\_HAVE\_SQLITE\_CONFIG\_H -DBUILD\_sqlite -DN  
DEBUG -DSQLITE\_THREADSAFE=1 -c /c/PruebaCifrado/src/crypto\_impl.c -DDLL\_EXPORT  
-DPIC -o .libs/crypto\_impl.o  
c:/PruebaCifrado/src/crypto\_impl.c: In function ‘sqlcipher\_codec\_ctx\_migrate’:  
c:/PruebaCifrado/src/crypto\_impl.c:1141:7: warning: implicit declaration of func  
tion ‘sqlite3CodecGetKey’ [-Wimplicit-function-declaration]  
sqlite3CodecGetKey(db, db-\>nDb - 1, (void_)&key, &password\_sz);  
^  
c:/PruebaCifrado/src/crypto\_impl.c:1142:7: warning: implicit declaration of func  
tion ‘sqlite3CodecAttach’ [-Wimplicit-function-declaration]  
sqlite3CodecAttach(db, 0, key, password\_sz);  
^  
libtool: compile: gcc -DSQLITE\_HAS\_CODEC -DSQLCIPHER\_CRYPTO\_OPENSSL -I/c/OpenSS  
L-Win32/include -DSQLITE\_OS\_WIN=1 -I. -I/c/PruebaCifrado/src -I/c/PruebaCifrado/  
ext/rtree -I/c/PruebaCifrado/ext/fts3 -D\_HAVE\_SQLITE\_CONFIG\_H -DBUILD\_sqlite -DN  
DEBUG -DSQLITE\_THREADSAFE=1 -c /c/PruebaCifrado/src/crypto\_impl.c -o crypto\_impl  
.o \>/dev/null 2\>&1  
./libtool --mode=compile --tag=CC gcc -DSQLITE\_HAS\_CODEC -DSQLCIPHER\_CRYPTO\_OPEN  
SSL -I/c/OpenSSL-Win32/include -DSQLITE\_OS\_WIN=1 -I. -I/c/PruebaCifrado/src -I/c  
/PruebaCifrado/ext/rtree -I/c/PruebaCifrado/ext/fts3 -D\_HAVE\_SQLITE\_CONFIG\_H -DB  
UILD\_sqlite -DNDEBUG -DSQLITE\_THREADSAFE=1 -c /c/PruebaCifrado/src/crypto\_op  
enssl.c  
libtool: compile: gcc -DSQLITE\_HAS\_CODEC -DSQLCIPHER\_CRYPTO\_OPENSSL -I/c/OpenSS  
L-Win32/include -DSQLITE\_OS\_WIN=1 -I. -I/c/PruebaCifrado/src -I/c/PruebaCifrado/  
ext/rtree -I/c/PruebaCifrado/ext/fts3 -D\_HAVE\_SQLITE\_CONFIG\_H -DBUILD\_sqlite -DN  
DEBUG -DSQLITE\_THREADSAFE=1 -c /c/PruebaCifrado/src/crypto\_openssl.c -DDLL\_EXPO  
RT -DPIC -o .libs/crypto\_openssl.o  
c:/PruebaCifrado/src/crypto\_openssl.c: In function ‘sqlcipher\_openssl\_hmac’:  
c:/PruebaCifrado/src/crypto\_openssl.c:158:12: error: storage size of ‘hctx’ isn’  
t known  
HMAC\_CTX hctx;  
^  
c:/PruebaCifrado/src/crypto\_openssl.c:160:3: warning: implicit declaration of fu  
nction ‘HMAC\_CTX\_init’ [-Wimplicit-function-declaration]  
HMAC\_CTX\_init(&hctx);  
^  
c:/PruebaCifrado/src/crypto\_openssl.c:165:3: warning: implicit declaration of fu  
nction ‘HMAC\_CTX\_cleanup’ [-Wimplicit-function-declaration]  
HMAC\_CTX\_cleanup(&hctx);  
^  
c:/PruebaCifrado/src/crypto\_openssl.c: In function ‘sqlcipher\_openssl\_cipher’:  
c:/PruebaCifrado/src/crypto\_openssl.c:175:18: error: storage size of ‘ectx’ isn’  
t known  
EVP\_CIPHER\_CTX ectx;  
^  
make: \*\*\* [crypto\_openssl.lo] Error 1

Usr@PC-Usr /c/PruebaCifrado  
$
