我正在尝试构建Oracle Berkeley DB的Android JDBC驱动程序,以便使用android-ndk替换SQLite。
Oracle Berkeley DB参考链接:
http://docs.oracle.com/cd/E17076_05/html/installation/BDB_Installation.pdf
转到第21页
我在构建以下时遇到以下错误:
make: Entering directory `/usr/local/durgesh_oracle/db-6.2.23/build_android/jdbc/jni'
[armeabi] Compile arm : db_archive <= db_archive.c
In file included from /usr/local/durgesh_oracle/db-6.2.23/build_android/jdbc/jni/../../../src/dbinc/mutex_int.h:12:0,
from /usr/local/durgesh_oracle/db-6.2.23/build_android/jdbc/jni/../../../src/dbinc/mutex.h:15,
from /usr/local/durgesh_oracle/db-6.2.23/build_android/jdbc/jni/../../../build_android/db_int.h:1216,
from /usr/local/durgesh_oracle/db-6.2.23/build_android/jdbc/jni/../../../util/db_archive.c:11:
/usr/local/durgesh_oracle/db-6.2.23/build_android/jdbc/jni/../../../src/dbinc/atomic.h: In function '__atomic_compare_exchange_int':
/usr/local/durgesh_oracle/db-6.2.23/build_android/jdbc/jni/../../../src/dbinc/atomic.h:155:2: warning: implicit declaration of function '__atomic_compare_exchange_n' [-Wimplicit-function-declaration]
/usr/local/durgesh_oracle/db-6.2.23/build_android/jdbc/jni/../../../src/dbinc/atomic.h:156:17: error: '__ATOMIC_SEQ_CST' undeclared (first use in this function)
/usr/local/durgesh_oracle/db-6.2.23/build_android/jdbc/jni/../../../src/dbinc/atomic.h:156:17: note: each undeclared identifier is reported only once for each function it appears in
/usr/local/durgesh_oracle/db-6.2.23/build_android/jdbc/jni/../../../util/db_archive.c: In function 'main':
/usr/local/durgesh_oracle/db-6.2.23/build_android/jdbc/jni/../../../util/db_archive.c:33:24: warning: variable 'verbose' set but not used [-Wunused-but-set-variable]
make: *** [/usr/local/durgesh_oracle/db-6.2.23/build_android/jdbc/obj/local/armeabi/objs/db_archive/__/__/__/util/db_archive.o] Error 1
make: Leaving directory `/usr/local/durgesh_oracle/db-6.2.23/build_android/jdbc/jni'