unsuccessful compiling of port postgresql-jdbc with openjdk7

Jan jurak yan.jurak at gmail.com
Mon Oct 17 08:28:38 UTC 2011


Thank you for response/informations Ronald,

Compiling with OpenJDK6 works, but maintaner of runing application do
not recommend this JDK.

Regards
Yan Jurak

On 10/14/2011 09:56 PM, Ronald Klop wrote:
> On Wed, 12 Oct 2011 21:25:23 +0200, Jan Jurak <yan.jurak at gmail.com>
> wrote:
>
>> 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 <T>getObject(String,Class<T>) 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
>> <T>getObject(String,Class<T>)
>>      [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 at 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.
> Changes are big that jdk7 defines some new methods in the interface of
> ResultSet. That happened with previous versions also.
>
> Ronald.
> _______________________________________________
> freebsd-java at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe at freebsd.org"


More information about the freebsd-java mailing list