L.S.

Probably the unified headers in NDK are to blame as well, but:

* when using ndk r16b to build sqlite for api-22 then the resulting library 
has no issues

* when using ndk r16b to build sqlite for api-24 then the resulting library 
has __gnu_strerror_r unresolved


Relevant info on building:

export CC=clang 
export CPPFLAGS="-DSQLITE_OMIT_DEPRECATED -DSQLITE_ENABLE_STAT4 -
DSQLITE_DEFAULT_FOREIGN_KEYS=1 -DSQLITE_ENABLE_JSON1=1 -
DSQLITE_ENABLE_COLUMN_METADATA=1" 

$SQLITESRCDIR/configure --host=arm-linux-androideabi --enable-threadsafe



The relevant part of <toolchain>/sysroot/usr/include/string.h:129

#if defined(__USE_GNU) && __ANDROID_API__ >= 23 
char* strerror_r(int __errno_value, char* __buf, size_t __n) 
__RENAME(__gnu_strerror_r) __INTRODUCED_IN(23); 
#else /* POSIX */ 
int strerror_r(int __errno_value, char* __buf, size_t __n); 
#endif


The relevant parts in sqlite.c can be found by looking for strerror_r



Obviously it'd be nice to be able to build and use sqlite in serialized mode 
for Android api-24 and up 'just like that' ;)



-- 

Best,




Frank.

_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to