Thread: Some config issues

Some config issues

From
Grant Edwards
Date:
Hi,

My environment is as follows :

RedHat 7.2
JDK 1.4
ANT 1.4.1
Postgres 7.1.3

I have run the configure script with the --with-java option. When running
gmake I get the errors below, what have i missed ?

Any help will be appreciated.

Regards

Grant E




/home/gedwards/usr/local/jakarta-ant-1.4.1/bin/ant -buildfile
../../../build.xml -Dmajor=7 -Dminor=1 -Dfullversion=7.1.3 -Ddef_pgport=5432
Buildfile: ../../../build.xml

jar:

call:

prepare:

check_versions:

driver:
     [echo] Configured build for the JDBC2 Enterprise edition driver.

compile:
    [javac] Compiling 47 source files to
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/build
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql
/xa/XAConnectionImpl.java:57: cannot resolve symbol
    [javac] symbol  : class RollbackException
    [javac] location: package transaction
    [javac] import javax.transaction.RollbackException;
    [javac]                          ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql
/xa/ClientConnection.java:70: org.postgresql.xa.ClientConnection should be
declared abstract; it does not define setHoldability(int) in
org.postgresql.xa.ClientConnection
    [javac] final class ClientConnection
    [javac]       ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql
/jdbc2/Statement.java:25: org.postgresql.jdbc2.Statement should be declared
abstract; it does not define getMoreResults(int) in
org.postgresql.jdbc2.Statement
    [javac] public class Statement extends org.postgresql.Statement
implements java.sql.Statement
    [javac]        ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql
/jdbc2/PreparedStatement.java:32: org.postgresql.jdbc2.PreparedStatement
should be declared abstract; it does not define setURL(int,java.net.URL) in
org.postgresql.jdbc2.PreparedStatement
    [javac] public class PreparedStatement extends Statement implements
java.sql.PreparedStatement
    [javac]        ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql
/jdbc2/CallableStatement.java:42: org.postgresql.jdbc2.CallableStatement
should be declared abstract; it does not define
registerOutParameter(java.lang.String,int) in
org.postgresql.jdbc2.CallableStatement
    [javac] public class CallableStatement extends
org.postgresql.jdbc2.PreparedStatement implements java.sql.CallableStatement
    [javac]        ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql
/jdbc2/Connection.java:37: org.postgresql.jdbc2.Connection should be
declared abstract; it does not define setHoldability(int) in
org.postgresql.jdbc2.Connection
    [javac] public class Connection extends org.postgresql.Connection
implements java.sql.Connection
    [javac]        ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql
/jdbc2/DatabaseMetaData.java:35: org.postgresql.jdbc2.DatabaseMetaData
should be declared abstract; it does not define supportsSavepoints() in
org.postgresql.jdbc2.DatabaseMetaData
    [javac] public class DatabaseMetaData implements
java.sql.DatabaseMetaData
    [javac]        ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql
/jdbc2/ResultSet.java:60: org.postgresql.jdbc2.ResultSet should be declared
abstract; it does not define getURL(int) in org.postgresql.jdbc2.ResultSet
    [javac] public class ResultSet extends org.postgresql.ResultSet
implements java.sql.ResultSet
    [javac]        ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql
/largeobject/PGblob.java:26: org.postgresql.largeobject.PGblob should be
declared abstract; it does not define setBytes(long,byte[]) in
org.postgresql.largeobject.PGblob
    [javac] public class PGblob implements java.sql.Blob
    [javac]        ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgresql
/largeobject/PGclob.java:26: org.postgresql.largeobject.PGclob should be
declared abstract; it does not define setString(long,java.lang.String) in
org.postgresql.largeobject.PGclob
    [javac] public class PGclob implements java.sql.Clob
    [javac]        ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] 10 errors

BUILD FAILED

/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/build.xml:99:
Compile failed, messages should have been provided.

Total time: 4 seconds
gmake[3]: *** [all] Error 1
gmake[3]: Leaving directory
`/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/gedwards/usr/local/postgresql-7.1.3/src'
gmake: *** [all] Error 2
>         App Developer / Informix DBA
>         address: 4 Buckingham Gate, London SW1E 6JP
>         tel: +44 (0)20 7802 4348   fax: +44 (0)20 7802 9420
>         email: gedwards@lastminute.com
> internet:http://www.lastminute.com/
>         do something lastminute.com
>
>


------------------------------

This e-mail is intended for the named addressee only.  It may contain confidential and/or privileged information.  If
youhave received this message in error, please let us know and then delete this message from your system.  You should
notcopy the message, use it for any purpose or disclose its contents to anyone. 

Re: Some config issues

From
"Dave Cramer"
Date:
Grant,

Currently the driver will not build under jdk 1.4, if you go in to the
source and add stubs for all the methods that it is complaining about,
it will build.

Dave

-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Grant Edwards
Sent: Thursday, December 06, 2001 6:35 AM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] Some config issues


Hi,

My environment is as follows :

RedHat 7.2
JDK 1.4
ANT 1.4.1
Postgres 7.1.3

I have run the configure script with the --with-java option. When
running gmake I get the errors below, what have i missed ?

Any help will be appreciated.

Regards

Grant E




/home/gedwards/usr/local/jakarta-ant-1.4.1/bin/ant -buildfile
../../../build.xml -Dmajor=7 -Dminor=1 -Dfullversion=7.1.3
-Ddef_pgport=5432
Buildfile: ../../../build.xml

jar:

call:

prepare:

check_versions:

driver:
     [echo] Configured build for the JDBC2 Enterprise edition driver.

compile:
    [javac] Compiling 47 source files to
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/build
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgr
esql
/xa/XAConnectionImpl.java:57: cannot resolve symbol
    [javac] symbol  : class RollbackException
    [javac] location: package transaction
    [javac] import javax.transaction.RollbackException;
    [javac]                          ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgr
esql
/xa/ClientConnection.java:70: org.postgresql.xa.ClientConnection should
be declared abstract; it does not define setHoldability(int) in
org.postgresql.xa.ClientConnection
    [javac] final class ClientConnection
    [javac]       ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgr
esql
/jdbc2/Statement.java:25: org.postgresql.jdbc2.Statement should be
declared abstract; it does not define getMoreResults(int) in
org.postgresql.jdbc2.Statement
    [javac] public class Statement extends org.postgresql.Statement
implements java.sql.Statement
    [javac]        ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgr
esql
/jdbc2/PreparedStatement.java:32: org.postgresql.jdbc2.PreparedStatement
should be declared abstract; it does not define setURL(int,java.net.URL)
in org.postgresql.jdbc2.PreparedStatement
    [javac] public class PreparedStatement extends Statement implements
java.sql.PreparedStatement
    [javac]        ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgr
esql
/jdbc2/CallableStatement.java:42: org.postgresql.jdbc2.CallableStatement
should be declared abstract; it does not define
registerOutParameter(java.lang.String,int) in
org.postgresql.jdbc2.CallableStatement
    [javac] public class CallableStatement extends
org.postgresql.jdbc2.PreparedStatement implements
java.sql.CallableStatement
    [javac]        ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgr
esql
/jdbc2/Connection.java:37: org.postgresql.jdbc2.Connection should be
declared abstract; it does not define setHoldability(int) in
org.postgresql.jdbc2.Connection
    [javac] public class Connection extends org.postgresql.Connection
implements java.sql.Connection
    [javac]        ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgr
esql
/jdbc2/DatabaseMetaData.java:35: org.postgresql.jdbc2.DatabaseMetaData
should be declared abstract; it does not define supportsSavepoints() in
org.postgresql.jdbc2.DatabaseMetaData
    [javac] public class DatabaseMetaData implements
java.sql.DatabaseMetaData
    [javac]        ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgr
esql
/jdbc2/ResultSet.java:60: org.postgresql.jdbc2.ResultSet should be
declared abstract; it does not define getURL(int) in
org.postgresql.jdbc2.ResultSet
    [javac] public class ResultSet extends org.postgresql.ResultSet
implements java.sql.ResultSet
    [javac]        ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgr
esql
/largeobject/PGblob.java:26: org.postgresql.largeobject.PGblob should be
declared abstract; it does not define setBytes(long,byte[]) in
org.postgresql.largeobject.PGblob
    [javac] public class PGblob implements java.sql.Blob
    [javac]        ^
    [javac]
/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/org/postgr
esql
/largeobject/PGclob.java:26: org.postgresql.largeobject.PGclob should be
declared abstract; it does not define setString(long,java.lang.String)
in org.postgresql.largeobject.PGclob
    [javac] public class PGclob implements java.sql.Clob
    [javac]        ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] 10 errors

BUILD FAILED

/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc/build.xml:
99:
Compile failed, messages should have been provided.

Total time: 4 seconds
gmake[3]: *** [all] Error 1
gmake[3]: Leaving directory
`/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces/jdbc'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/home/gedwards/usr/local/postgresql-7.1.3/src/interfaces'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory
`/home/gedwards/usr/local/postgresql-7.1.3/src'
gmake: *** [all] Error 2
>         App Developer / Informix DBA
>         address: 4 Buckingham Gate, London SW1E 6JP
>         tel: +44 (0)20 7802 4348   fax: +44 (0)20 7802 9420
>         email: gedwards@lastminute.com
internet:http://www.lastminute.com/
>         do something lastminute.com
>
>


------------------------------

This e-mail is intended for the named addressee only.  It may contain
confidential and/or privileged information.  If you have received this
message in error, please let us know and then delete this message from
your system.  You should not copy the message, use it for any purpose or
disclose its contents to anyone.

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org