From owner-freebsd-java@FreeBSD.ORG Fri Oct 14 19:56:11 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 BD7A91065670 for ; Fri, 14 Oct 2011 19:56:11 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out3.tiscali.nl (smtp-out3.tiscali.nl [195.241.79.178]) by mx1.freebsd.org (Postfix) with ESMTP id 7F4298FC18 for ; Fri, 14 Oct 2011 19:56:11 +0000 (UTC) Received: from [212.182.167.131] (helo=sjakie.klop.ws) by smtp-out3.tiscali.nl with esmtp (Exim) (envelope-from ) id 1REnrW-0003Qo-Aq for freebsd-java@freebsd.org; Fri, 14 Oct 2011 21:56:10 +0200 Received: from 212-182-167-131.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id 643F2E124 for ; Fri, 14 Oct 2011 21:56:06 +0200 (CEST) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-java@freebsd.org References: <4E95E9A3.2090905@gmail.com> Date: Fri, 14 Oct 2011 21:56:06 +0200 MIME-Version: 1.0 From: "Ronald Klop" Message-ID: In-Reply-To: <4E95E9A3.2090905@gmail.com> User-Agent: Opera Mail/11.51 (FreeBSD) Content-Transfer-Encoding: quoted-printable Subject: Re: unsuccessful compiling of port postgresql-jdbc with openjdk7 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: Fri, 14 Oct 2011 19:56:11 -0000 On Wed, 12 Oct 2011 21:25:23 +0200, Jan Jurak wrote= : > Dear All, > > I tried compile postgresql-jdbc port, but without luck: > > # make install clean > ... > [javac] =20 > /usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603.src/o= rg/postgresql/jdbc4/Jdbc4ResultSet.java:23: =20 > error: Jdbc4ResultSet is not abstract and does not override abs > tract method getObject(String,Class) in ResultSet > [javac] public class Jdbc4ResultSet extends AbstractJdbc4ResultSet= =20 > implements java.sql.ResultSet > [javac] ^ > [javac] where T is a type-variable: > [javac] T extends Object declared in method =20 > getObject(String,Class) > [javac] =20 > /usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603.src/o= rg/postgresql/xa/PGXADataSource.java:19: =20 > error: PGXADataSource is not abstract and does not override abstra > ct method getParentLogger() in CommonDataSource > [javac] public class PGXADataSource extends BaseDataSource =20 > 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/b= uild.xml:101: =20 > The following error occurred while executing this line: > /usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603.src/b= uild.xml:124: =20 > 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=3DZ89UjxMD > > # uname -a > FreeBSD fbsdBuilder.wheel.cz 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Fe= b =20 > 17 02:41:51 UTC 2011 =20 > 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. Try openjdk6. Ask the postgresql-jdbc community if it compiles with jdk7 at all. Change= s =20 are big that jdk7 defines some new methods in the interface of ResultSet.= =20 That happened with previous versions also. Ronald.