pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Long <RLong@micropat.com>
To: pgsql-admin@postgresql.org
Subject: postgres make fails with java option
Date: Tue, 26 Oct 2004 11:26:22 -0400
Message-ID: <417E6C9E.5000805@micropat.com> (raw)

Trying to configure --with-java but make is failing with:  (see below 
for other details)

Any ideas?

Thanks,
Rob

-->./configure --enable-shared --with-maxbackend-connections=256 
--with-perl --with-java
-->make
.
.
.
make[3]: Entering directory 
`/home/postgres/postgresql-7.4.5/src/interfaces/jdbc'
/usr/bin/ant -buildfile ./build.xml all
Buildfile: ./build.xml

all:

prepare:
    [mkdir] Created dir: 
/home/postgres/postgresql-7.4.5/src/interfaces/jdbc/build
    [mkdir] Created dir: 
/home/postgres/postgresql-7.4.5/src/interfaces/jdbc/jars

check_versions:

check_driver:

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

compile:
    [javac] Compiling 77 source files to 
/home/postgres/postgresql-7.4.5/src/interfaces/jdbc/build
    [javac] 
/home/postgres/postgresql-7.4.5/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] 
/home/postgres/postgresql-7.4.5/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] 
/home/postgres/postgresql-7.4.5/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] 
/home/postgres/postgresql-7.4.5/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
java.lang.ExceptionInInitializerError
   at java.lang.Class.initializeClass() (/lib/ssa/libgcj.so.4.0.0)
   at _Jv_InitClass (/lib/ssa/libgcj.so.4.0.0)
   at java.util.TimeZone.getDefault() (/lib/ssa/libgcj.so.4.0.0)
   at java.util.GregorianCalendar.GregorianCalendar(java.util.Locale) 
(/lib/ssa/libgcj.so.4.0.0)
   at java.text.SimpleDateFormat.SimpleDateFormat(java.lang.String, 
java.util.Locale) (/lib/ssa/libgcj.so.4.0.0)
   at org.apache.tools.ant.util.DateUtils.__U3c_clinit__U3e_() 
(/usr/lib/lib-org-apache-tools-1.5.2.so)
   at java.lang.Class.initializeClass() (/lib/ssa/libgcj.so.4.0.0)
   at _Jv_InitClass (/lib/ssa/libgcj.so.4.0.0)
   at org.apache.tools.ant.util.DateUtils.formatElapsedTime(long) 
(/usr/lib/lib-org-apache-tools-1.5.2.so)
   at org.apache.tools.ant.DefaultLogger.formatTime(long) 
(/usr/lib/lib-org-apache-tools-1.5.2.so)
   at 
org.apache.tools.ant.DefaultLogger.buildFinished(org.apache.tools.ant.BuildEvent) 
(/usr/lib/lib-org-apache-tools-1.5.2.so)
   at 
org.apache.tools.ant.Project.fireBuildFinished(java.lang.Throwable) 
(/usr/lib/lib-org-apache-tools-1.5.2.so)
   at org.apache.tools.ant.Main.runBuild(java.lang.ClassLoader) 
(/usr/lib/lib-org-apache-tools-1.5.2.so)
   at org.apache.tools.ant.Main.start(java.lang.String[], 
java.util.Properties, java.lang.ClassLoader) 
(/usr/lib/lib-org-apache-tools-1.5.2.so)
   at org.apache.tools.ant.Main.main(java.lang.String[]) 
(/usr/lib/lib-org-apache-tools-1.5.2.so)
Caused by: java.lang.NumberFormatException
   at java.lang.Integer.parseInt(java.lang.String, int, boolean) 
(/lib/ssa/libgcj.so.4.0.0)
   at java.lang.Integer.parseInt(java.lang.String) 
(/lib/ssa/libgcj.so.4.0.0)
   at java.util.TimeZone.getDefaultTimeZoneId() (/lib/ssa/libgcj.so.4.0.0)
   at java.util.TimeZone.__U3c_clinit__U3e_() (/lib/ssa/libgcj.so.4.0.0)
   at java.lang.Class.initializeClass() (/lib/ssa/libgcj.so.4.0.0)
   ...14 more
make[3]: *** [all] Error 1
make[3]: Leaving directory 
`/home/postgres/postgresql-7.4.5/src/interfaces/jdbc'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/postgres/postgresql-7.4.5/src/interfaces'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/postgres/postgresql-7.4.5/src'
make: *** [all] Error 2


****
system info:

postgresql 7.4.5
red hat enterprise 3.0 --> 2.4.21-4.ELsmp
gcc version 3.2.3 20030502
Apache Ant version 1.5.2-20
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
perl v5.8.0








Message-ID: <417E6C9E.5000805@micropat.com>
Permalink:  ../417E6C9E.5000805@micropat.com/
Also on:    postgresql.org/message-id/417E6C9E.5000805@micropat.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: RLong@micropat.com
  Subject: Re: postgres make fails with java option
  In-Reply-To: <417E6C9E.5000805@micropat.com>
  References: <417E6C9E.5000805@micropat.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