Postgresql 7.3.1 + JDBC Build from Source - Mailing list pgsql-jdbc

From Alan Searles
Subject Postgresql 7.3.1 + JDBC Build from Source
Date
Msg-id 1042858965.3199.2.camel@aurora
Whole thread Raw
Responses Re: Postgresql 7.3.1 + JDBC Build from Source
List pgsql-jdbc
I am currently running Mandrake Linux 8.2.  uname -r ==> 2.4.18-6mdk. I
have recently installed Sun Java 1.4.1, GNU GCC 3.2.1, as well as
Jakarta ANT 1.5.1

Now I want to install the latest version of PostgreSQL (7.3.1) from
source... but I have having some problems getting the JDBC code to
compile properly.

After I downloaded the source code... and un-compressed it...

1) I ran the  ./configure  command     (all went well)
2) I ran the gmake   command

... and all went well with the  'gmake' until it came to the JDBC code.
I am getting the following messages:

=================================================================================================
[javac]
/usr/src/postgresql-7.3.1/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:240: cannot resolve
symbol 
    [javac] symbol  : constructor Array
(org.postgresql.PGConnection,int,org.postgresql.Field,java.sql.ResultSet)
    [javac] location: class org.postgresql.jdbc2.Array
    [javac] return (java.sql.Array) new org.postgresql.jdbc2.Array(
connection, i, fields[i - 1], (java.sql.ResultSet) this );
    [javac]
/usr/src/postgresql-7.3.1/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:420: incompatible types
    [javac] found   : java.sql.Statement
    [javac] required: org.postgresql.jdbc2.Statement
    [javac] return statement;
    [javac]                        ^
    [javac]
/usr/src/postgresql-7.3.1/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:560: incompatible types
    [javac] found   : java.sql.PreparedStatement
    [javac] required: org.postgresql.jdbc2.PreparedStatement
    [javac] deleteStatement = ((java.sql.Connection)
connection).prepareStatement(deleteSQL.toString());
::  ::  ::  ::  ::  ::  ::  ::  ::  ::  ::  ::  ::  ::  ::  ::  ::  ::
==============================================================================================

These are a sampling of the messages; there are others.

What am I doing wrong ?????  I very much want to get the Java interface
into PostgreSQL working.

/Alan


pgsql-jdbc by date:

Previous
From: "Mushran, Vrinda"
Date:
Subject: Re: Control characters in sql statements close db connecti
Next
From: Daniel Bruce Lynes
Date:
Subject: Re: Are XA datasources supported?