java sqlite on FreeBSD 6.0
Panagiotis Astithas
past at ebs.gr
Sun Dec 4 12:08:59 GMT 2005
Frédéric de la Goublaye wrote:
[...]
> install jdk1.4.10: working good (from ports jdk14 after refresh with
cvsup)
> install tomcat 5.5.12: working good
>
> installed sqlite-3.2.7 from www.sqlite.org: (re-compile src): working
good
Note that you can find a port for this in databases/sqlite3.
[...]
> configure: WARNING: setting generic JNI include file directives!
> setting JNI include file directives: -I/usr/local/include -I/usr/local/include/freebsd6.0
This must be your problem. The configure script does not find the jdk
header files. For jdk14 you should have -I/usr/local/jdk1.4.2/include
-I/usr/local/jdk1.4.2/include/freebsd.
> using JDBC driver from JDBC2x directory
> configure: creating ./config.status
> config.status: creating Makefile
>
> make
>
> /usr/local/bin/javac SQLite/Authorizer.java
> /usr/local/bin/javac SQLite/BusyHandler.java
> /usr/local/bin/javac SQLite/Callback.java
> /usr/local/bin/javac SQLite/Database.java
> /usr/local/bin/javac SQLite/Shell.java
> ./libtool gcc -I/usr/local/include -DHAVE_SQLITE2=0 -DHAVE_SQLITE3=1 -o native/mkconst native/mkconst.c /usr/local/lib/libsqlite3.la
> mkdir native/.libs
> gcc -I/usr/local/include -DHAVE_SQLITE2=0 -DHAVE_SQLITE3=1 -o native/mkconst native/mkconst.c /usr/local/lib/libsqlite3.so -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
> native/mkconst > SQLite/Constants.java
> /usr/local/bin/javac SQLite/Constants.java
> /usr/local/bin/javac SQLite/StringEncoder.java
> /usr/local/bin/javac SQLite/JDBCDriver.java
> /usr/local/bin/javac SQLite/JDBC2x/JDBCConnection.java
> /usr/local/bin/jar cmf manifest sqlite.jar SQLite/Authorizer.class SQLite/BusyHandler.class SQLite/Callback.class SQLite/Database.class SQLite/Exception.class SQLite/Shell.class SQLite/TableResult.class SQLite/Function.class SQLite/FunctionContext.class SQLite/Constants.class SQLite/Trace.class SQLite/Vm.class SQLite/ProgressHandler.class SQLite/StringEncoder.class SQLite/DBDump.class SQLite/JDBCDriver.class SQLite/JDBC2x/JDBCConnection.class SQLite/JDBC2x/JDBCStatement.class SQLite/JDBC2x/JDBCResultSet.class SQLite/JDBC2x/JDBCResultSetMetaData.class SQLite/JDBC2x/JDBCDatabaseMetaData.class SQLite/JDBC2x/JDBCPreparedStatement.class SQLite/JDBC2x/TableResultX.class SQLite/JDBC2x/DatabaseX.class
> /usr/local/bin/javah -jni -o native/sqlite_jni.h SQLite.Database SQLite.Vm SQLite.FunctionContext
> ....
> ....
>
> native/sqlite_jni.h:111: error: syntax error before "jstring"
> native/sqlite_jni.h:112: error: syntax error before '*' token
> native/sqlite_jni.h:112: warning: type defaults to `int' in declaration of `Java_SQLite_Database_version'
> native/sqlite_jni.h:112: warning: data definition has no type or storage class
> native/sqlite_jni.h:119: error: syntax error before "jstring"
> native/sqlite_jni.h:120: error: syntax error before '*' token
> native/sqlite_jni.h:120: warning: type defaults to `int' in declaration of `Java_SQLite_Database_dbversion'
> native/sqlite_jni.h:120: warning: data definition has no type or storage class
> native/sqlite_jni.h:127: error: syntax error before "void"
> native/sqlite_jni.h:135: error: syntax error before "void"
> native/sqlite_jni.h:143: error: syntax error before "void"
> native/sqlite_jni.h:152: error: syntax error before '*' token
> native/sqlite_jni.h:152: warning: type defaults to `int' in declaration of `Java_SQLite_Database_error_1string'
> native/sqlite_jni.h:152: warning: data definition has no type or storage class
> native/sqlite_jni.h:159: error: syntax error before "void"
> native/sqlite_jni.h:167: error: syntax error before "void"
> native/sqlite_jni.h:175: error: syntax error before "void"
> native/sqlite_jni.h:184: error: syntax error before '*' token
> native/sqlite_jni.h:184: warning: type defaults to `int' in declaration of `Java_SQLite_Database_is3'
> native/sqlite_jni.h:184: warning: data definition has no type or storage class
> native/sqlite_jni.h:191: error: syntax error before "void"
> native/sqlite_jni.h:199: error: syntax error before "void"
> native/sqlite_jni.h:207: error: syntax error before "void"
> native/sqlite_jni.h:215: error: syntax error before "void"
> native/sqlite_jni.h:235: error: syntax error before '*' token
> native/sqlite_jni.h:235: warning: type defaults to `int' in declaration of `Java_SQLite_Vm_step'
> native/sqlite_jni.h:235: warning: data definition has no type or storage class
> native/sqlite_jni.h:242: error: syntax error before "jboolean"
> native/sqlite_jni.h:243: error: syntax error before '*' token
> native/sqlite_jni.h:243: warning: type defaults to `int' in declaration of `Java_SQLite_Vm_compile'
> native/sqlite_jni.h:243: warning: data definition has no type or storage class
> native/sqlite_jni.h:250: error: syntax error before "void"
> native/sqlite_jni.h:258: error: syntax error before "void"
> native/sqlite_jni.h:266: error: syntax error before "void"
> native/sqlite_jni.h:285: error: syntax error before "void"
> native/sqlite_jni.h:293: error: syntax error before "void"
> native/sqlite_jni.h:301: error: syntax error before "void"
> native/sqlite_jni.h:309: error: syntax error before "void"
> ....
> native/sqlite_jni.c: At top level:
> native/sqlite_jni.c:702: error: syntax error before "void"
> native/sqlite_jni.c:110: warning: 'seterr' defined but not used
> native/sqlite_jni.c:120: warning: 'setvmerr' defined but not used
> native/sqlite_jni.c:165: warning: 'globrefset' defined but not used
> native/sqlite_jni.c:214: warning: 'transfree' defined but not used
> native/sqlite_jni.c:222: warning: 'trans2iso' defined but not used
> native/sqlite_jni.c:331: warning: 'busyhandler3' defined but not used
> native/sqlite_jni.c:353: warning: 'progresshandler' defined but not used
> native/sqlite_jni.c:372: warning: 'callback' defined but not used
> native/sqlite_jni.c:625: warning: 'doclose' defined but not used
> *** Error code 1
>
> Stop in /usr/local/sqlite/javasqlite-20050608.
More information about the freebsd-java
mailing list