# Errors compiling in Fedora 13

**URL:** <https://discuss.zetetic.net/t/errors-compiling-in-fedora-13/1448>\
**Category:** SQLCipher\
**Created:** [June 17, 2016, 8:23am UTC](https://discuss.zetetic.net/t/errors-compiling-in-fedora-13/1448 "2016-06-17T08:23:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rui\_Goncalves](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@Rui\_Goncalves](https://discuss.zetetic.net/u/Rui_Goncalves)\
**Post date:** [June 17, 2016, 8:23am UTC](https://discuss.zetetic.net/t/errors-compiling-in-fedora-13/1448/1 "2016-06-17T08:23:45Z")

</div>

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   
CFLAGS="-DSQLITE\_HAS\_CODEC"   
LDFLAGS="…/…/extref/libopenssl\_bin/X86/release/libcrypto.a"

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 to`OPENSSL\_add\_all\_algorithms\_noconf’  
./extref/libsqlcipher\_bin/X86/release/libsqlcipher.a(sqlite3.o): In function `sqlcipher_openssl_deactivate': sqlite3.c:(.text+0x4002): undefined reference to`EVP\_cleanup’  
./extref/libsqlcipher\_bin/X86/release/libsqlcipher.a(sqlite3.o): In function `sqlcipher_openssl_hmac': sqlite3.c:(.text+0x40a7): undefined reference to`HMAC\_CTX\_init’  
sqlite3.c:(.text+0x4139): undefined reference to `HMAC_CTX_cleanup' ./extref/libsqlcipher_bin/X86/release/libsqlcipher.a(sqlite3.o): In function`sqlcipher\_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"   
LDFLAGS="…/…/extref/libopenssl\_bin/X86/release/libcrypto.a"

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?  
Thanks

---

<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:** [June 17, 2016, 8:48pm UTC](https://discuss.zetetic.net/t/errors-compiling-in-fedora-13/1448/2 "2016-06-17T20:48:24Z")

</div>

Hi @Rui_Goncalves

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

---

<div class="post-metadata">

**Author:** ![Rui\_Goncalves](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@Rui\_Goncalves](https://discuss.zetetic.net/u/Rui_Goncalves)\
**Post date:** [June 20, 2016, 9:36am UTC](https://discuss.zetetic.net/t/errors-compiling-in-fedora-13/1448/3 "2016-06-20T09:36:43Z")

</div>

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

My steps for building are  
 ./configures\_x86.sh make  
 make test make install

The file configure\_x86.sh file is:  
./config   
–prefix=/home/geral/work/projects/lib\_openssl/compilation/build/X86   
–openssldir=/home/geral/work/projects/lib\_openssl/compilation/build/X86/ssl

Thanks for your interest.

---

<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:** [June 20, 2016, 3:34pm UTC](https://discuss.zetetic.net/t/errors-compiling-in-fedora-13/1448/4 "2016-06-20T15:34:26Z")

</div>

Hi @Rui_Goncalves

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

---

<div class="post-metadata">

**Author:** ![Rui\_Goncalves](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@Rui\_Goncalves](https://discuss.zetetic.net/u/Rui_Goncalves)\
**Post date:** [June 21, 2016, 10:15am UTC](https://discuss.zetetic.net/t/errors-compiling-in-fedora-13/1448/5 "2016-06-21T10:15:55Z")

</div>

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

---

<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:** [June 21, 2016, 12:57pm UTC](https://discuss.zetetic.net/t/errors-compiling-in-fedora-13/1448/6 "2016-06-21T12:57:33Z")

</div>

Hi @Rui_Goncalves

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