Re: Installation problems

From: Dmitry Tkach <dmitry(at)openratings(dot)com>
To: Jeffrey Babb <jcbabb(at)nap(dot)edu>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Installation problems
Date: 2003-06-06 14:59:35
Message-ID: 3EE0AC57.2040705@openratings.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Don't you have old jdbc drivers in the classpath by any chance?

Dima

Jeffrey Babb wrote:

> Hello,
>
> I am trying to install PostgreSQL 7.3.3 from source on Mac OS X and
> having some difficulty.
>
> My configure command is as follows:
>
> ./configure --enable-multibyte --enable-unicode --enable-odbc
> --with-java
>
> Everything seems to go fine upon running gmake until reaching the ant
> build. At that point I get the following errors:
>
> Buildfile: ./build.xml
>
> all:
>
> prepare:
>
> check_versions:
>
> driver:
> [copy] Copying 1 file to
> /usr/local/postgresql-7.3.3/src/interfaces/jdbc/org/postgresql
> [echo] Configured build for the JDBC3 edition driver
>
> compile:
> [javac] Compiling 27 source files to
> /usr/local/postgresql-7.3.3/src/interfaces/jdbc/build
> [javac]
> /usr/local/postgresql-7.3.3/src/interfaces/jdbc/org/postgresql/jdbc2/
> AbstractJdbc2ResultSet.java:244: 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] ^
> [javac]
> /usr/local/postgresql-7.3.3/src/interfaces/jdbc/org/postgresql/jdbc2/
> AbstractJdbc2ResultSet.java:424: incompatible types
> [javac] found : java.sql.Statement
> [javac] required: org.postgresql.jdbc2.Statement
> [javac] return statement;
> [javac] ^
> [javac]
> /usr/local/postgresql-7.3.3/src/interfaces/jdbc/org/postgresql/jdbc2/
> AbstractJdbc2ResultSet.java:564: incompatible types
> [javac] found : java.sql.PreparedStatement
> [javac] required: org.postgresql.jdbc2.PreparedStatement
> [javac] deleteStatement =
> ((java.sql.Connection)
> connection).prepareStatement(deleteSQL.toString());
>
> [javac]
> ^
> [javac]
> /usr/local/postgresql-7.3.3/src/interfaces/jdbc/org/postgresql/jdbc2/
> AbstractJdbc2ResultSet.java:623: incompatible types
> [javac] found : java.sql.PreparedStatement
> [javac] required: org.postgresql.jdbc2.PreparedStatement
> [javac] insertStatement =
> ((java.sql.Connection)
> connection).prepareStatement(insertSQL.toString());
>
> [javac]
> ^
> [javac]
> /usr/local/postgresql-7.3.3/src/interfaces/jdbc/org/postgresql/jdbc2/
> AbstractJdbc2ResultSet.java:643: inconvertible types
> [javac] found : org.postgresql.jdbc2.PreparedStatement
> [javac] required: org.postgresql.jdbc2.AbstractJdbc2Statement
> [javac] long insertedOID =
> ((AbstractJdbc2Statement) insertStatement).getLastOID();
>
> [javac]
> ^
> [javac]
> /usr/local/postgresql-7.3.3/src/interfaces/jdbc/org/postgresql/jdbc2/
> AbstractJdbc2ResultSet.java:959: incompatible types
> [javac] found : java.sql.PreparedStatement
> [javac] required: org.postgresql.jdbc2.PreparedStatement
> [javac] selectStatement =
> ((java.sql.Connection)
> connection).prepareStatement(selectSQL.toString());
>
> [javac]
> ^
> [javac]
> /usr/local/postgresql-7.3.3/src/interfaces/jdbc/org/postgresql/jdbc2/
> AbstractJdbc2ResultSet.java:1042: incompatible types
> [javac] found : java.sql.PreparedStatement
> [javac] required: org.postgresql.jdbc2.PreparedStatement
> [javac] updateStatement =
> ((java.sql.Connection)
> connection).prepareStatement(updateSQL.toString());
>
> [javac]
> ^
> [javac]
> /usr/local/postgresql-7.3.3/src/interfaces/jdbc/org/postgresql/jdbc3/
> AbstractJdbc3ResultSet.java:17: cannot resolve symbol
> [javac] symbol : constructor AbstractJdbc2ResultSet
> (org.postgresql.PGConnection,java.sql.Statement,org.postgresql.Field[],j
> ava.util.Vector,java.lang.String,int,long,boolean)
> [javac] location: class org.postgresql.jdbc2.AbstractJdbc2ResultSet
> [javac] super (conn, statement, fields, tuples,
> status, updateCount, insertOID, binaryCursor);
> [javac] ^
> [javac]
> /usr/local/postgresql-7.3.3/src/interfaces/jdbc/org/postgresql/jdbc2/
> AbstractJdbc2Statement.java:51: inconvertible types
> [javac] found : org.postgresql.jdbc2.AbstractJdbc2Statement
> [javac] required: org.postgresql.jdbc2.Statement
> [javac]
> ((AbstractJdbc2ResultSet)result).setStatement((Statement)this);
>
> [javac]
> ^
> [javac]
> /usr/local/postgresql-7.3.3/src/interfaces/jdbc/org/postgresql/jdbc3/
> Jdbc3ResultSet.java:13: getStatement() in
> org.postgresql.jdbc2.AbstractJdbc2ResultSet cannot implement
> getStatement() in java.sql.ResultSet; attempting to use incompatible
> return type
> [javac] found : org.postgresql.jdbc2.Statement
> [javac] required: java.sql.Statement
> [javac] public class Jdbc3ResultSet extends
> org.postgresql.jdbc3.AbstractJdbc3ResultSet implements
> java.sql.ResultSet
> [javac] ^
> [javac]
> /usr/local/postgresql-7.3.3/src/interfaces/jdbc/org/postgresql/jdbc2/
> Array.java:49: inconvertible types
> [javac] found : org.postgresql.jdbc2.ResultSet
> [javac] required: org.postgresql.jdbc2.AbstractJdbc2ResultSet
> [javac] this.rawString =
> ((AbstractJdbc2ResultSet)rs).getFixedString(idx);
> [javac] ^
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -deprecation for details.
> [javac] 11 errors
>
> BUILD FAILED
> ails.
>
> Total time: 6 seconds
> gmake[3]: *** [all] Error 1
> gmake[3]: Leaving directory
> `/usr/local/postgresql-7.3.3/src/interfaces/jdbc'
> gmake[2]: *** [all] Error 2
> gmake[2]: Leaving directory `/usr/local/postgresql-7.3.3/src/interfaces'
> gmake[1]: *** [all] Error 2
> gmake[1]: Leaving directory `/usr/local/postgresql-7.3.3/src'
> gmake: *** [all] Error 2
>
>
> I am at a loss of what could be wrong, and have not been able to fidn
> the source of this problem. Any help would be greatly appreciated.
>
> Thanks,
> Jeffrey Babb
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message t-ishii 2003-06-06 15:37:03 Approved
Previous Message Peter Eisentraut 2003-06-05 18:59:41 Re: Detecting proper bison version before make