X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5A9553A5441 for ; Wed, 1 Dec 2004 21:57:34 +0000 (GMT) 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 76537-09 for ; Wed, 1 Dec 2004 21:57:23 +0000 (GMT) Received: from mailout1.echostar.com (mailout1.echostar.com [204.76.128.101]) by svr1.postgresql.org (Postfix) with ESMTP id B11B43A5423 for ; Wed, 1 Dec 2004 21:57:22 +0000 (GMT) Received: by riv-exchgp1.echostar.com with Internet Mail Service (5.5.2653.19) id ; Wed, 1 Dec 2004 14:57:21 -0700 Received: from ultra.echostar.com (ultra1.echostar.com [172.20.240.95]) by riv-exchcon.echostar.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id XYZWSAT1; Wed, 1 Dec 2004 14:57:15 -0700 Received: from dhcp17-gr.dev.uplink (fw-casewall01.echostar.com [172.20.240.209]) by ultra.echostar.com (8.9.3/8.9.3) with ESMTP id QAA30350 for ; Wed, 1 Dec 2004 16:57:15 -0500 From: "Stapleton, Mike" To: pgsql-jdbc@postgresql.org Organization: Echostar Corp. Subject: gmake compile fails using JDBC source. Date: Wed, 1 Dec 2004 14:54:30 -0700 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200412011454.30564.mike.stapleton@echostar.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200412/3 X-Sequence-Number: 11669 Hi all, I'm new to using postgress and download version 7.4.6 from your site and started reading the documentation. Installed in /usr/local which is the default. I installed ant because I am developing in java and want to use the JDBC interface and added it to my CLASSPATH at /usr/local. Ran the configure file as such: ./configure --with-pgport 9009 --with-java Which seemed to work fine, the port number is an internal network thing I have to use. Then I ran gmake which seemed to be working for awhile until it got into compiling the java files in /usr/local/postgresql-7.4.6/src/interfaces/jdbc/org/postgresql/jdbc3 in which I get the following compile error: /usr/bin/ant -buildfile ./build.xml all Buildfile: ./build.xml all: prepare: check_versions: check_driver: driver: compile: [javac] Compiling 77 source files to /usr/local/postgresql-7.4.6/src/interfaces/jdbc/build [javac] /usr/local/postgresql-7.4.6/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] 1 error BUILD FAILED file:/usr/local/postgresql-7.4.6/src/interfaces/jdbc/build.xml:119: Compile failed; see the compiler error output for details. Total time: 0 seconds gmake: *** [all] Error 1 It looks to me like the driver code that determines and compiles the correct driver for my JVM based on my JDK doesn't compile as intended. As a result, I never get the postgresql.jar and installed in the share/java directory. Did I leave a step out or is this a bug. Any help with this would be appreciated. Thanks in advance, Michael. -- Michael P. Stapleton Sr. Software Engineer Echostar Corp. (307) 633-5448