Compile problem postgresql-7.3rc1 and Mac OS X 10.2.2

From: Rickard Annell <Rickard(dot)Annell(at)udac(dot)se>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Compile problem postgresql-7.3rc1 and Mac OS X 10.2.2
Date: 2002-11-23 15:07:02
Message-ID: p05111a00ba0548866b00@[193.44.77.126]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

system info:
Mac OS X v 10.2.2 (Darwin Kernel Version 6.2: Tue Nov 5 22:00:03 PST
2002; root:xnu/xnu-344.12.2.obj~1/RELEASE_PPC)
Java build 1.3.1_03-69, mixed mode
Ant version 1.5
gcc Apple Computer, Inc. GCC version 1161, based on gcc version 3.1
20020420 (prerelease)
postgres 7.3rc1

./configure --prefix=/service/database/postgres --with-java

make

last rows from make command

....
make[5]: Nothing to be done for `all'.
/service/www/jakarta/ant/bin/ant -buildfile ./build.xml all \
-Dmajor=7 -Dminor=3 -Dfullversion=7.3rc1 -Ddef_pgport=5432 -Denable_debug=no
Buildfile: ./build.xml

all:

prepare:

check_versions:

driver:
[copy] Copying 1 file to
/usr/local/src/postgresql-7.3rc1/src/interfaces/jdbc/org/postgresql
[echo] Configured build for the JDBC2 edition driver

compile:
[javac] Compiling 25 source files to
/usr/local/src/postgresql-7.3rc1/src/interfaces/jdbc/build
[javac]
/usr/local/src/postgresql-7.3rc1/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] ^
[javac]
/usr/local/src/postgresql-7.3rc1/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/local/src/postgresql-7.3rc1/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());
[javac]
^
[javac]
/usr/local/src/postgresql-7.3rc1/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:619:
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/src/postgresql-7.3rc1/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:639:
inconvertible types
[javac] found : org.postgresql.jdbc2.PreparedStatement
[javac] required: org.postgresql.jdbc2.AbstractJdbc2Statement
[javac] long insertedOID =
((AbstractJdbc2Statement) insertStatement).getLastOID();
[javac]
^
[javac]
/usr/local/src/postgresql-7.3rc1/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:955:
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/src/postgresql-7.3rc1/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:1038:
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/src/postgresql-7.3rc1/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/src/postgresql-7.3rc1/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]
/usr/local/src/postgresql-7.3rc1/src/interfaces/jdbc/org/postgresql/jdbc2/Jdbc2Connection.java:14:
org.postgresql.jdbc2.Jdbc2Connection should be declared abstract; it
does not define
getResultSet(java.sql.Statement,org.postgresql.Field[],java.util.Vector,java.lang.String,int)
in org.postgresql.jdbc1.AbstractJdbc1Connection
[javac] public class Jdbc2Connection extends
org.postgresql.jdbc2.AbstractJdbc2Connection implements
java.sql.Connection
[javac] ^
[javac]
/usr/local/src/postgresql-7.3rc1/src/interfaces/jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.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 Jdbc2ResultSet extends
org.postgresql.jdbc2.AbstractJdbc2ResultSet implements
java.sql.ResultSet
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[javac] 11 errors

BUILD FAILED
file:/usr/local/src/postgresql-7.3rc1/src/interfaces/jdbc/build.xml:104:
Compile failed; see the compiler error output for details.

Total time: 11 seconds
make[3]: *** [all] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

Browse pgsql-bugs by date

  From Date Subject
Next Message pgsql-bugs 2002-11-24 00:56:28 Bug #822: Condition on rule is not respected.
Previous Message andrzej 2002-11-23 08:27:43 Re: like not using indexes in 7.3b5?