X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 86CA13A3B5B for ; Tue, 26 Oct 2004 16:24:06 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 02443-09 for ; Tue, 26 Oct 2004 15:23:58 +0000 (GMT) Received: from mx12.micropat.com (mx12.micropat.com [204.17.221.77]) by svr1.postgresql.org (Postfix) with ESMTP id 9CC023A3B22 for ; Tue, 26 Oct 2004 16:23:57 +0100 (BST) Received: from micropat.com ([204.17.221.91]) by ehmail01.micropat.com (Sun ONE Messaging Server 6.0 (built Oct 29 2003)) with ESMTPA id <0I6700CSS6RVTV50@ehmail01.micropat.com> for pgsql-admin@postgresql.org; Tue, 26 Oct 2004 11:23:55 -0400 (EDT) Date: Tue, 26 Oct 2004 11:26:22 -0400 From: Rob Long Subject: postgres make fails with java option To: pgsql-admin@postgresql.org Message-id: <417E6C9E.5000805@micropat.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/348 X-Sequence-Number: 15341 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