Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Dec 2005 12:34:42 +0100
From:      =?iso-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= <fredericdelagoublaye@free.fr>
To:        <freebsd-java@FreeBSD.org>
Subject:   java sqlite on FreeBSD 6.0
Message-ID:  <001801c5f8c6$b89b3680$0400a8c0@iava>

next in thread | raw e-mail | index | archive | help
Hello,


I want to use Java/Tomcat with Sqlite.
But I cannot compile the driver under FreeBSD 6.0.

Can you give some small help ?
Or some web link to compile it under FreeBSD ?

Many Thanks in advance
Fr=E9d=E9ric

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

javasqlite-20050608 from =
http://www.ch-werner.de/javasqlite/overview-summary.html
This is the website for the sqlite driver in Java
It use in OpenOffice ...

./configure

checking build system type... i386-unknown-freebsd6.0
checking host system type... i386-unknown-freebsd6.0
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... =
yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... freebsd6.0 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... yes
creating libtool
checking for a BSD-compatible install... /usr/bin/install -c
checking for SQLite header and library... no
configure: WARNING: SQLite2 header files and/or library not found
checking for sqlite_function_type in -lsqlite... no
checking for sqlite_open_aux_file in -lsqlite... no
checking for sqlite_set_authorizer in -lsqlite... no
checking for sqlite_trace in -lsqlite... no
checking for sqlite_compile in -lsqlite... no
checking for sqlite_progress_handler in -lsqlite... no
checking for SQLite3 header and library... yes
checking for usable SQLite... yes
configure: WARNING: setting generic JNI include file directives!
setting JNI include file directives: -I/usr/local/include =
-I/usr/local/include/freebsd6.0
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=3D0 =
-DHAVE_SQLITE3=3D1  -o native/mkconst native/mkconst.c =
/usr/local/lib/libsqlite3.la
mkdir native/.libs
gcc -I/usr/local/include -DHAVE_SQLITE2=3D0 -DHAVE_SQLITE3=3D1 -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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001801c5f8c6$b89b3680$0400a8c0>