From owner-freebsd-java@FreeBSD.ORG Sun Oct 16 07:49:13 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F7FA1065672 for ; Sun, 16 Oct 2011 07:49:13 +0000 (UTC) (envelope-from barbara.xxx1975@libero.it) Received: from outrelay02.libero.it (outrelay02.libero.it [212.52.84.102]) by mx1.freebsd.org (Postfix) with ESMTP id 188C78FC08 for ; Sun, 16 Oct 2011 07:49:12 +0000 (UTC) X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A0B020B.4E9A89DD.006E,ss=1,re=0.000,fgs=0 X-libjamoibt: 1821 Received: from wmail10.libero.it (172.31.0.79) by outrelay02.libero.it (8.5.133) (authenticated as barbara.xxx1975@libero.it) id 4E3BF946066803B8; Sun, 16 Oct 2011 09:38:05 +0200 Message-ID: <10362073.634191318750685313.JavaMail.defaultUser@defaultHost> Date: Sun, 16 Oct 2011 09:38:05 +0200 (CEST) From: Barbara To: , MIME-Version: 1.0 Content-Type: text/plain;charset="UTF-8" Content-Transfer-Encoding: 7bit X-SenderIP: 79.35.216.16 Cc: Subject: R: unsuccessful compiling of port postgresql-jdbc with openjdk7 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Barbara List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Oct 2011 07:49:13 -0000 > >Dear All, > >I tried compile postgresql-jdbc port, but without luck: > ># make install clean >... > [javac] >/usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603. src/org/postgresql/jdbc4/Jdbc4ResultSet.java:23: >error: Jdbc4ResultSet is not abstract and does not override abs >tract method getObject(String,Class) in ResultSet > [javac] public class Jdbc4ResultSet extends AbstractJdbc4ResultSet >implements java.sql.ResultSet > [javac] ^ > [javac] where T is a type-variable: > [javac] T extends Object declared in method >getObject(String,Class) > [javac] >/usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603. src/org/postgresql/xa/PGXADataSource.java:19: >error: PGXADataSource is not abstract and does not override abstra >ct method getParentLogger() in CommonDataSource > [javac] public class PGXADataSource extends BaseDataSource >implements Referenceable, XADataSource > [javac] ^ > [javac] Note: Some input files use or override a deprecated API. > [javac] Note: Recompile with -Xlint:deprecation for details. > [javac] Note: Some input files use unchecked or unsafe operations. > [javac] Note: Recompile with -Xlint:unchecked for details. > [javac] 11 errors > >BUILD FAILED >/usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603.src/build. xml:101: >The following error occurred while executing this line: >/usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603.src/build. xml:124: >Compile failed; see the compiler error output for details. > >Total time: 13 seconds >*** Error code 1 > >Stop in /usr/ports/databases/postgresql-jdbc. > >the whole error: http://pastebin.com/raw.php?i=Z89UjxMD > ># uname -a >FreeBSD fbsdBuilder.wheel.cz 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb >17 02:41:51 UTC 2011 >root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 > ># java -version >openjdk version "1.7.0" >OpenJDK Runtime Environment (build 1.7.0-root_2011_10_02_12_16-b00) >OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) > > >Any suggestion would be helpful. > >Thanks in advance >Yan Jurak > I filed a pr containing a patch to update the postgresql jdbc driver in ports about 3 weeks ago. This should build with openjdk7. http://www.freebsd.org/cgi/query-pr.cgi?pr=161040 Barbara