Error on compile and few newbie questions

678 views
Skip to first unread message

Dragon Negro

unread,
Dec 28, 2011, 1:57:14 PM12/28/11
to SQLCipher Users
Hi everybody, I'm new here and with SQLCipher. And first of all, I'm
Spanish so sorry for my mistakes ;)

I tried to compile the source code on linux, I solved some problems
with configure but now in the step "make" I get this error:
./.libs/libsqlite3.so: undefined reference to `EVP_CipherInit'
./.libs/libsqlite3.so: undefined reference to `EVP_CIPHER_iv_length'
./.libs/libsqlite3.so: undefined reference to
`OPENSSL_add_all_algorithms_noconf'
./.libs/libsqlite3.so: undefined reference to
`EVP_CIPHER_CTX_set_padding'
./.libs/libsqlite3.so: undefined reference to `PKCS5_PBKDF2_HMAC_SHA1'
./.libs/libsqlite3.so: undefined reference to `RAND_pseudo_bytes'
./.libs/libsqlite3.so: undefined reference to `EVP_get_cipherbyname'
./.libs/libsqlite3.so: undefined reference to `EVP_CIPHER_key_length'
./.libs/libsqlite3.so: undefined reference to `EVP_CipherFinal'
./.libs/libsqlite3.so: undefined reference to `EVP_CIPHER_CTX_cleanup'
./.libs/libsqlite3.so: undefined reference to `EVP_CipherUpdate'
collect2: ld returned 1 exit status
make: *** [sqlite3] Error 1

How I can fix that?
Another questions...
Is SQLCipher a substitute or I need SQLite with SQLCipher in my
proyect?
When I compile that, Is it work for all platform? I mean... I include
that in my proyect and all done, isn't it?

Again, sorry for my mistakes, I hope you understand me.
See you!

Nick Parker

unread,
Dec 28, 2011, 2:40:16 PM12/28/11
to sqlc...@googlegroups.com, Dragon Negro
Hello Dragon Negro,

It appears that it can not find the OpenSSL libcrypto, can you share how
you ran .configure? Additional information on building from source is
available here (http://sqlcipher.net/introduction/). SQLCipher includes
SQLite, but also contains page level encryption.

--
Nick Parker

Dragon Negro

unread,
Dec 28, 2011, 3:19:24 PM12/28/11
to SQLCipher Users
Thanks for the answer.

I use this command: ../sqlite/configure CFLAGS="-DSQLITE_HAS_CODEC"
LDFLAGS="/usr/lib/i386-linux-gnu/libcrypto.so.1.0.0" --with-
tclconfig='/usr/lib/tcl8.4'
I see in examples libcrypto.a, -lcrypto and another path, but none
works for me, libcrypto.so.1.0.0 is the only one i found.

Nick Parker

unread,
Dec 28, 2011, 5:33:12 PM12/28/11
to sqlc...@googlegroups.com, Dragon Negro
Hi Dragon Negro,

Could you try installing the dev package for OpenSSL? I don't know what
package manager you are using, on Ubuntu it would look like this:

sudo apt-get install libssl-dev

This should allow you to perform a ./configure with dynamic linking
against libcrypto.

--
Nick Parker

Dragon Negro

unread,
Dec 28, 2011, 6:22:41 PM12/28/11
to SQLCipher Users
I have libssl-dev installed, but i tried again with dynamic linking
and it works (an error typing /-lcrypto instead of -lcrypto after
install the package). Now all see rigth, no errors' messages. I feel
stupid, however, thanks for your time, Nick!!
See you!

Nick Parker

unread,
Dec 29, 2011, 8:55:49 AM12/29/11
to sqlc...@googlegroups.com, Dragon Negro
Hi Dragon Negro,

Glad to hear you got everything working!

--
Nick Parker

Reply all
Reply to author
Forward
0 new messages