OlivierJG / botansqlite3

Sqlite3 encryption codec to allow full database encryption using the algorithms supported by Botan.
85 stars 28 forks source link

Couldn't compile on Ubuntu #8

Open peeter3 opened 9 years ago

peeter3 commented 9 years ago

botan 1.10 sqlite 3.8.7.2

$ uname -a Linux peeter-GA-78LMT-S2P 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:30:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux $ patch -p0 < sqlite3-amalgamation.patch patching file ./sqlite3.c Hunk #2 succeeded at 151687 (offset 25730 lines). $ gcc -c sqlite3.c -o botansqlite3.o && gcc -c codec.cpp -o codec.o pkg-config --cflags botan-1.10 && ar rcs libbotansqlite3.a botansqlite3.o codec.o In file included from sqlite3.c:151690:0: codecext.c: In function ‘HandleError’: codecext.c:17:9: error: too many arguments to function ‘sqlite3Error’ sqlite3Error((sqlite3)GetDB(pCodec), SQLITE_ERROR, "Botan Error: %s", error); ^ sqlite3.c:22909:21: note: declared here SQLITE_PRIVATE void sqlite3Error(sqlite3 db, int err_code){ ^ In file included from sqlite3.c:151690:0: codecext.c: In function ‘sqlite3_rekey’: codecext.c:214:17: error: too many arguments to function ‘sqlite3Error’ sqlite3Error(db, SQLITE_ERROR, "%s", "Error while rekeying database page. Transaction Canceled."); ^ sqlite3.c:22909:21: note: declared here SQLITE_PRIVATE void sqlite3Error(sqlite3 db, int err_code){ ^ In file included from sqlite3.c:151690:0: codecext.c:218:9: error: too many arguments to function ‘sqlite3Error’ sqlite3Error(db, SQLITE_ERROR, "%s", "Error beginning rekey transaction. Make sure that the current encryption key is correct."); ^ sqlite3.c:22909:21: note: declared here SQLITE_PRIVATE void sqlite3Error(sqlite3 db, int err_code){ ^ In file included from sqlite3.c:151690:0: codecext.c:236:13: error: too many arguments to function ‘sqlite3Error’ sqlite3Error(db, SQLITE_ERROR, "%s", "Could not commit rekey transaction."); ^ sqlite3.c:22909:21: note: declared here SQLITE_PRIVATE void sqlite3Error(sqlite3 db, int err_code){ ^ In file included from sqlite3.c:151690:0: codecext.c:242:9: error: too few arguments to function ‘sqlite3BtreeRollback’ sqlite3BtreeRollback(pbt, SQLITE_ERROR); ^ sqlite3.c:55729:20: note: declared here SQLITE_PRIVATE int sqlite3BtreeRollback(Btree p, int tripCode, int writeOnly){ ^