Postgresql 7.3.1 + JDBC Build from Source

From: Alan Searles <alien(at)attglobal(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Postgresql 7.3.1 + JDBC Build from Source
Date: 2003-01-18 03:02:44
Message-ID: 1042858965.3199.2.camel@aurora
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Daniel Bruce Lynes 2003-01-18 04:01:48 Re: Are XA datasources supported?
Previous Message Barry Lind 2003-01-18 01:49:21 Re: insertRow and updateable resultset