Re: Compile Error on 7.1.3

From: Dave Cramer <Dave(at)micro-automation(dot)net>
To: James Kelty <jamesk(at)everbase(dot)net>
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Compile Error on 7.1.3
Date: 2002-04-22 16:41:39
Message-ID: 1019493700.1678.24.camel@inspiron.cramers
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

James,

The latest code will work fine with postgres 7.1.3, or get a compiled
jar from the download site. There's no advantage to compiling it.

The current sources compile clean, and given the above, there's no real
incentive to fix a compile error from an old tarball.

Dave

On Mon, 2002-04-22 at 12:28, James Kelty wrote:
> Hello!
>
> Sorry if this post is REALLY stale. I looked around in Google, and the
> pgsql-jdbc archives, but I couldn't find an
> answer to my problem. Here is my system environment:
>
> RedHat 7.2
> PostgreSQL 7.1.3
> Sun JDK 1.3.1_01
> Jakarta Ant 1.4.1
>
>
> Here is the compile error I am getting...
>
> make[3]: Entering directory `/var/tmp/postgresql-7.1.3/src/interfaces/jdbc'
> /usr/local/ant/bin//ant -buildfile
> ../../../build.xml -Dmajor=7 -Dminor=1 -Dfullversion=7.1.3 -Ddef_pgport=5432
> Buildfile: ../../../build.xml
>
> jar:
>
> call:
>
> prepare:
> [mkdir] Created dir: /var/tmp/postgresql-7.1.3/src/interfaces/jdbc/build
> [mkdir] Created dir: /var/tmp/postgresql-7.1.3/src/interfaces/jdbc/jars
>
> check_versions:
>
> driver:
> [copy] Copying 1 file to
> /var/tmp/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql
> [echo] Configured build for the JDBC2 Enterprise edition driver.
>
> compile:
> [javac] Compiling 58 source files to
> /var/tmp/postgresql-7.1.3/src/interfaces/jdbc/build
> [javac]
> /var/tmp/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2/PreparedS
> tatement.java:32: org.postgresql.jdbc2.PreparedStatement should be declared
> abstract; it does not define setArray(int,java.sql.Array) in
> org.postgresql.jdbc2.PreparedStatement
> [javac] public class PreparedStatement extends Statement implements
> java.sql.PreparedStatement
> [javac] ^
> [javac]
> /var/tmp/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2/CallableS
> tatement.java:42: getArray(int) in org.postgresql.jdbc2.CallableStatement
> cannot implement getArray(int) in java.sql.CallableStatement; attempting to
> use incompatible return type
> [javac] found : org.postgresql.jdbc2.Array
> [javac] required: java.sql.Array
> [javac] public class CallableStatement extends
> org.postgresql.jdbc2.PreparedStatement implements java.sql.CallableStatement
> [javac] ^
> [javac]
> /var/tmp/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet
> .java:60: getArray(java.lang.String) in org.postgresql.jdbc2.ResultSet
> cannot implement getArray(java.lang.String) in java.sql.ResultSet;
> attempting to use incompatible return type
> [javac] found : org.postgresql.jdbc2.Array
> [javac] required: java.sql.Array
> [javac] public class ResultSet extends org.postgresql.ResultSet
> implements java.sql.ResultSet
> [javac] ^
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -deprecation for details.
> [javac] 3 errors
>
> BUILD FAILED
>
> /var/tmp/postgresql-7.1.3/src/interfaces/jdbc/build.xml:99: Compile failed,
> messages should have been provided.
>
> Total time: 6 seconds
> make[3]: *** [all] Error 1
> make[3]: Leaving directory `/var/tmp/postgresql-7.1.3/src/interfaces/jdbc'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/var/tmp/postgresql-7.1.3/src/interfaces'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/var/tmp/postgresql-7.1.3/src'
> make: *** [all] Error 2
>
>
> Any and all help is very much welcome! Thank you!
>
> -James
>
> James Kelty
> Sr. Unix Systems Administrator
> Everbase Systems
> 541.488.0801
> jamesk(at)everbase(dot)net
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message James Kelty 2002-04-22 16:51:04 Re: Compile Error on 7.1.3
Previous Message James Kelty 2002-04-22 16:28:28 Compile Error on 7.1.3