0 Replies Latest reply: Mar 21, 2012 8:20 PM by Jim Connors RSS

    Berkeley DB JDBC Build on Linux/ARM Errors?

    Jim Connors
      Trying to build a version of Berkeley DB 5.3.15 with dbsql and jdnc on a Linux/Arm device.

      From the build_unix directory issued the following configure command:

      ../dist/configure enable-sql  enable-jdbc

      then

      make

      The build fails while trying to compile sqlite_jni.c. The last lines of the build look as follows:

      native/sqlite_jni.c: In function 'Java_SQLite_Database__1exec__Ljava_lang_String_2LSQLite_Callback_2_3Ljava_lang_String_2':
      native/sqlite_jni.c:1622: error: incompatible type for argument 2 of 'sqlite3_vmprintf'
      ../../lang/sql/generated/sqlite3.h:1986: note: expected 'va_list' but argument is of type 'char *'
      native/sqlite_jni.c: In function 'Java_SQLite_Database_vm_1compile_1args':
      native/sqlite_jni.c:3282: error: incompatible type for argument 2 of 'sqlite3_vmprintf'
      ../../lang/sql/generated/sqlite3.h:1986: note: expected 'va_list' but argument is of type 'char *'
      make[1]: *** [sqlite_jni.lo] Error 1
      make[1]: Leaving directory `/root/db-5.3.15/build_unix/jdbc'
      make: *** [jdbc] Error 2

      Also tried including --enable-java in the configure script with the same effect.

      Any suggestions?

      Thanks,
      -- Jim C