Re: Problem compiling PostgreSQL 7.2.1 on RedHat 7.2 - Mailing list pgsql-admin

From Luca Zancan
Subject Re: Problem compiling PostgreSQL 7.2.1 on RedHat 7.2
Date
Msg-id 3D350EE0.B5B98BF1@logica.mail
Whole thread Raw
In response to Problem compiling PostgreSQL 7.2.1 on RedHat 7.2  (Luca Zancan <l.zancan@logica.mail>)
List pgsql-admin
Thank you very much for the clarification (I've discovered something similar looking at
"http://archives.postgresql.org" after posting my message to this newsgroup...)

Only another question:
is there the possibility of downloading a "precompiled" version (a "jar" file) of "jdbc for
postgressql" that run with Postgresql 7.2.1 and J2SDK 1.4.0?????
Where can I find such a file?

Thank you again for your help.

Luca


Luca Zancan wrote:

> Hi all,
>
> I'm trying to compile PostgreSQL ver. 7.2.1 on a Linux RedHat 7.2
> (kernel ver. 2.4.7-10), unixODBC ver 2.2.2, J2SDK ver. 1.4.0 and Jakarta
> Ant ver. 1.4.1.
> I run configure with the following switches:
> ./configure --with-perl --with-tcl --enable-odbc --with-unixodbc
> --with-java --with-pam --enable-syslog --enable-debug
> and everything goes smooth...
> When I launch "gmake" I obtain the following error  (you can find it at
> the end of this e-mail...) and "gmake" exit.
> It seems something concerning the use of deprecated Java classes or
> something similar...
>
> Any suggestion???
>
> Thank you very much.
>
> Luca Zancan
>
> _________________________________
>
> prepare:
>     [mkdir] Created dir:
> /usr/local/src/postgresql-7.2.1/src/interfaces/jdbc/build
>     [mkdir] Created dir:
> /usr/local/src/postgresql-7.2.1/src/interfaces/jdbc/jars
>
> check_versions:
>
> driver:
>      [copy] Copying 1 file to
> /usr/local/src/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql
>      [echo] Configured build for the JDBC2 Enterprise edition driver
>
> compile:
>     [javac] Compiling 53 source files to
> /usr/local/src/postgresql-7.2.1/src/interfaces/jdbc/build
>     [javac]
> /usr/local/src/postgresql-7.2.1/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]
> /usr/local/src/postgresql-7.2.1/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]
> /usr/local/src/postgresql-7.2.1/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]
> /usr/local/src/postgresql-7.2.1/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]
> /usr/local/src/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java:40:
> 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]
> /usr/local/src/postgresql-7.2.1/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]
> /usr/local/src/postgresql-7.2.1/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]
> /usr/local/src/postgresql-7.2.1/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]
> /usr/local/src/postgresql-7.2.1/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]
> /usr/local/src/postgresql-7.2.1/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] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -deprecation for details.
>     [javac] 10 errors
>
> BUILD FAILED
>
> /usr/local/src/postgresql-7.2.1/src/interfaces/jdbc/build.xml:72:
> Compile failed, messages should have been provided.
>
> Total time: 1 minute 7 seconds
> gmake[3]: *** [all] Error 1
> gmake[3]: Leaving directory
> `/usr/local/src/postgresql-7.2.1/src/interfaces/jdbc'
> gmake[2]: *** [all] Error 2
> gmake[2]: Leaving directory
> `/usr/local/src/postgresql-7.2.1/src/interfaces'
> gmake[1]: *** [all] Error 2
> gmake[1]: Leaving directory `/usr/local/src/postgresql-7.2.1/src'
> gmake: *** [all] Error 2
>
> __________________________________________________
>
> Luca Zancan
> Logica S.r.l.
> e-mail l.zancan@logicaonline.com
> URL http://www.logicaonline.com
> __________________________________________________

--
__________________________________________________

Luca Zancan
Logica S.r.l.
e-mail l.zancan@logicaonline.com
URL http://www.logicaonline.com
__________________________________________________



pgsql-admin by date:

Previous
From: "Fouad Fezzi"
Date:
Subject: Re: User's managing
Next
From: Luca Zancan
Date:
Subject: Re: Problem compiling PostgreSQL 7.2.1 on RedHat 7.2