postgres make fails with java option

From: Rob Long <RLong(at)micropat(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: postgres make fails with java option
Date: 2004-10-26 15:26:22
Message-ID: 417E6C9E.5000805@micropat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2004-10-26 16:27:19 Re: Limiting postmaster to listen in a particular ip address only
Previous Message Rajesh Kumar Mallah 2004-10-26 15:18:38 Limiting postmaster to listen in a particular ip address only