Compilation errors.

167 views
Skip to first unread message

Ted Rolle Jr.

unread,
Sep 11, 2010, 9:34:54 PM9/11/10
to SQLCipher Users
I downloaded the 'sjlombardo-sqlcipher-9b9dbc0' version of SQLCipher.

Compiling SQLCipher produces these errors:
./libtool --mode=compile --tag=CC gcc -g -O2 -DSQLITE_OS_UNIX=1 -I.
-I./src -D_HAVE_SQLITE_CONFIG_H -DNDEBUG -DSQLITE_THREADSAFE=1
-DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1
-DSQLITE_TEMP_STORE=1 -c sqlite3.c
libtool: compile: gcc -g -O2 -DSQLITE_OS_UNIX=1 -I. -I./src
-D_HAVE_SQLITE_CONFIG_H -DNDEBUG -DSQLITE_THREADSAFE=1
-DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1
-DSQLITE_TEMP_STORE=1 -c sqlite3.c -fPIC -DPIC -o .libs/sqlite3.o
sqlite3.c: In function �lockBtreeMutex�:

sqlite3.c:44901: error: dereferencing pointer to incomplete type

There are 2,914 lines of these and other errors. I hope there's a
simple, but elusive fix.

Ted
--
+-----------------------------------------------------------------+
| 3.14159 26535 89793 23846 26433 83279 50288 May the Spirit |
| 41971 69399 37510 58209 74944 59230 78164 of pi spread |
| 06286 20899 86280 34825 32411 70679 82148 around the world. |
| 08651 32823 06647 09384 46095 50582 ... PI VOBISCUM! |
+-----------------------------------------------------------------+

Stephen Lombardo

unread,
Sep 12, 2010, 10:38:05 PM9/12/10
to sqlc...@googlegroups.com
Hi Ted,

Given the number of errors you're seeing, the most likely cause is that one of your previous compile attempts failed to properly build sqlite3.h. This often happens due to the tcl dependency. Unfortunately the SQlite makefile will not even attempt to rebuild 
sqlite3.h if it is present, but the file is probably empty, thus causing the errors you are seeing. 

To verify this is the case just take a peek in sqlite3.h, and if it is indeed empty, execute 

rm sqlite3.h 

Then run make again. Keep a close eye on the other stages of the build process for any other errors. Please let us know if this fixes the problem for you. Thanks!

Cheers, 
Stephen 

On Sat, Sep 11, 2010 at 9:34 PM, Ted Rolle Jr. <ste...@gmail.com> wrote:
I downloaded the 'sjlombardo-sqlcipher-9b9dbc0' version of SQLCipher.

Compiling SQLCipher produces these errors:
./libtool --mode=compile --tag=CC gcc   -g -O2 -DSQLITE_OS_UNIX=1 -I.
-I./src -D_HAVE_SQLITE_CONFIG_H -DNDEBUG   -DSQLITE_THREADSAFE=1
-DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1
-DSQLITE_TEMP_STORE=1 -c sqlite3.c
libtool: compile:  gcc -g -O2 -DSQLITE_OS_UNIX=1 -I. -I./src
-D_HAVE_SQLITE_CONFIG_H -DNDEBUG -DSQLITE_THREADSAFE=1
-DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1
-DSQLITE_TEMP_STORE=1 -c sqlite3.c  -fPIC -DPIC -o .libs/sqlite3.o
sqlite3.c: In function ‘lockBtreeMutex’:
Reply all
Reply to author
Forward
0 new messages