Related to this issue,
http://www.sqlite.org/src/info/0fac2c045f47c7735af4eb68ced81d8b43622a1f,
sqlite 3.8.7 fails to compile on Android by default, plus there is a
suspicious warning. The compiled code is the amalgamation:

jni/sqlite/sqlite3.c: In function 'sqlite3VXPrintf':
jni/sqlite/sqlite3.c:20980:11: warning: assignment makes pointer from
integer without a cast [enabled by default]
[armeabi-v7a] SharedLibrary  : mylib-sqlite.so
c:/Android/NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../.
./arm-linux-androideabi/bin/ld.exe:
./obj/local/armeabi-v7a/objs/jsonstore-sqlite/sqlite/sqlite3.o: in function
sqlite3V
XPrintf:jni/sqlite/sqlite3.c:20980: error: undefined reference to
'strchrnul'
collect2: ld returned 1 exit status

Defining HAVE_STRCHRNUL 0 made it compile. The warning also disappears when
the flag is set to '0'.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to