pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pginfo <pginfo@t1.unisoftbg.com>
To: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: compiling 7.4 --with-java
Date: Tue, 02 Dec 2003 16:33:36 +0100
Message-ID: <3FCCB0D0.CB27E228@t1.unisoftbg.com> (raw)

Hi,
I try to rebuild my pg 7.4 to get generated jdbc driver.

If I run gmake it stops with error (without --with-java option I do not
have any problems to complite it).

I send the error message (one part from message):
gmake[5]: Nothing to be done for `all'.
gmake[5]: Leaving directory `/pginst/postgresql-7.4/src/port'
gmake[4]: Leaving directory
`/pginst/postgresql-7.4/src/interfaces/ecpg/preproc'
gmake[3]: Leaving directory `/pginst/postgresql-7.4/src/interfaces/ecpg'

gmake[3]: Entering directory
`/pginst/postgresql-7.4/src/interfaces/jdbc'
/usr/bin/ant -buildfile ./build.xml all
Buildfile: ./build.xml

all:

prepare:

check_versions:

check_driver:

driver:
     [copy] Copying 1 file to
/pginst/postgresql-7.4/src/interfaces/jdbc/org/postgresql
     [echo] Configured build for the JDBC3 edition driver with NO SSL

compile:
    [javac] Compiling 77 source files to
/pginst/postgresql-7.4/src/interfaces/jdbc/build
    [javac]
/pginst/postgresql-7.4/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3Statement.java:28:
error: Invalid checked exception class `java.sql.SQLException' in
`throws' clause. The exception must be a subclass of an exception thrown
by
`org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.lang.String)'
from class `org.postgresql.jdbc1.AbstractJdbc1Statement'.
    [javac]             public PGRefCursorResultSet
createRefCursorResultSet (String cursorName) throws SQLException
    [javac]                                          ^
    [javac]
/pginst/postgresql-7.4/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3PreparedStatement.java:23:
error: Invalid checked exception class `java.sql.SQLException' in
`throws' clause. The exception must be a subclass of an exception thrown
by
`org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.lang.String)'
from class `org.postgresql.jdbc1.AbstractJdbc1Statement'.
    [javac]             public PGRefCursorResultSet
createRefCursorResultSet (String cursorName) throws SQLException
    [javac]                                          ^
    [javac]
/pginst/postgresql-7.4/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3PoolingDataSource.java:29:
error: Method
`org.postgresql.jdbc2.optional.PoolingDataSource.getDataSource(java.lang.String)'
was defined with return type
`org.postgresql.jdbc2.optional.PoolingDataSource' in class
`org.postgresql.jdbc2.optional.PoolingDataSource'.
    [javac]        static Jdbc3PoolingDataSource getDataSource(String
name)
    [javac]                                      ^
    [javac]
/pginst/postgresql-7.4/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3CallableStatement.java:23:
error: Invalid checked exception class `java.sql.SQLException' in
`throws' clause. The exception must be a subclass of an exception thrown
by
`org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.lang.String)'
from class `org.postgresql.jdbc1.AbstractJdbc1Statement'.
    [javac]             public PGRefCursorResultSet
createRefCursorResultSet (String cursorName) throws SQLException
    [javac]                                          ^
    [javac] 4 errors

BUILD FAILED
file:/pginst/postgresql-7.4/src/interfaces/jdbc/build.xml:116: Compile
failed; see the compiler error output for details.

Total time: 2 seconds
gmake[3]: *** [all] Error 1
gmake[3]: Leaving directory `/pginst/postgresql-7.4/src/interfaces/jdbc'

gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/pginst/postgresql-7.4/src/interfaces'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/pginst/postgresql-7.4/src'
gmake: *** [all] Error 2



I have ant installed.
My platform is linux redhat AS 3.0. with standart installation and sun
java 1.4.2.

Any idea for this problem?

regards,
ivan.





Message-ID: <3FCCB0D0.CB27E228@t1.unisoftbg.com>
Permalink:  ../3FCCB0D0.CB27E228@t1.unisoftbg.com/
Also on:    postgresql.org/message-id/3FCCB0D0.CB27E228@t1.unisoftbg.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: pginfo@t1.unisoftbg.com
  Subject: Re: compiling 7.4 --with-java
  In-Reply-To: <3FCCB0D0.CB27E228@t1.unisoftbg.com>
  References: <3FCCB0D0.CB27E228@t1.unisoftbg.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox