From owner-freebsd-java@FreeBSD.ORG Sun Dec 4 12:08:59 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4147016A41F for ; Sun, 4 Dec 2005 12:08:59 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AD6043D78 for ; Sun, 4 Dec 2005 12:08:45 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id jB4C8fZm066244; Sun, 4 Dec 2005 14:08:41 +0200 (EET) (envelope-from past@ebs.gr) Received: from [10.1.1.200] (pptp.ebs.gr [10.1.1.200]) by ebs.gr (8.13.3/8.12.11) with ESMTP id jB4C8xXq034444; Sun, 4 Dec 2005 14:09:00 +0200 (EET) (envelope-from past@ebs.gr) Message-ID: <4392DC45.50402@ebs.gr> Date: Sun, 04 Dec 2005 14:08:37 +0200 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051106) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Fr=E9d=E9ric_de_la_Goublaye?= References: <001801c5f8c6$b89b3680$0400a8c0@iava> In-Reply-To: <001801c5f8c6$b89b3680$0400a8c0@iava> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-java@freebsd.org Subject: Re: java sqlite on FreeBSD 6.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 12:08:59 -0000 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.