Thread: BitPim
View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#18
Originally Posted by josiahg777 View Post
Source is available for APSW here: Debian APSW
APSW looks like it'll build if I can find the sqlite3.h header, I haven't tried that yet.
I tried in scratchbox:

creating build/temp.linux-armv5tel-2.5
gcc -pthread -fno-strict-aliasing -DNDEBUG -Os -mthumb -mfloat-abi=softfp -Wall -Wstrict-prototypes -DNDEBUG -fPIC -DSQLITE_THREADSAFE=1 -DNDEBUG=1 -DEXPERIMENTAL=1 -I/usr/include/python2.5 -c apsw.c -o build/temp.linux-armv5tel-2.5/apsw.o
sem_post: Function not implemented
apsw.c:62:2: #error Your SQLite version is too old. It must be at least 3.5.9
apsw.c: In function `Connection_init':
apsw.c:948: error: `SQLITE_OPEN_READWRITE' undeclared (first use in this function)
apsw.c:948: error: (Each undeclared identifier is reported only once
apsw.c:948: error: for each function it appears in.)
apsw.c:948: error: `SQLITE_OPEN_CREATE' undeclared (first use in this function)
apsw.c:959: warning: implicit declaration of function `sqlite3_open_v2'
apsw.c: In function `Connection_limit':
apsw.c:1192: warning: implicit declaration of function `sqlite3_limit'
apsw.c: In function `set_context_result':
apsw.c:1939: warning: implicit declaration of function `sqlite3_result_error_code'
apsw.c: In function `initapsw':
apsw.c:5420: error: `SQLITE_IOERR_NOMEM' undeclared (first use in this function)
apsw.c:5459: error: `SQLITE_OPEN_READONLY' undeclared (first use in this function)
apsw.c:5460: error: `SQLITE_OPEN_READWRITE' undeclared (first use in this function)
apsw.c:5461: error: `SQLITE_OPEN_CREATE' undeclared (first use in this function)
apsw.c:5462: error: `SQLITE_OPEN_DELETEONCLOSE' undeclared (first use in this function)
apsw.c:5463: error: `SQLITE_OPEN_EXCLUSIVE' undeclared (first use in this function)
apsw.c:5464: error: `SQLITE_OPEN_MAIN_DB' undeclared (first use in this function)
apsw.c:5465: error: `SQLITE_OPEN_TEMP_DB' undeclared (first use in this function)
apsw.c:5466: error: `SQLITE_OPEN_TRANSIENT_DB' undeclared (first use in this function)
apsw.c:5467: error: `SQLITE_OPEN_MAIN_JOURNAL' undeclared (first use in this function)
apsw.c:5468: error: `SQLITE_OPEN_TEMP_JOURNAL' undeclared (first use in this function)
apsw.c:5469: error: `SQLITE_OPEN_SUBJOURNAL' undeclared (first use in this function)
apsw.c:5470: error: `SQLITE_OPEN_MASTER_JOURNAL' undeclared (first use in this function)
error: command 'gcc' failed with exit status 1
sem_post: Function not implemented
sem_post: Function not implemented
sem_post: Function not implemented
sem_post: Function not implemented
The version of sqlite carried by Nokia is too old. Ignore the sem_post errors, it always happens with python programs in scratchbox. I haven't got round to patching the scratchbox qemu yet...

If sqlite isn't too timeconsuming to build, I'll see if I can update to 3.5.9 with nokia patches against the current old version. If that works, I'll modify setup.py to let me package this python thing.
 

The Following User Says Thank You to qwerty12 For This Useful Post: