From: Stapleton, Mike <Mike.Stapleton@echostar.com>
To: pgsql-jdbc@postgresql.org
Subject: gmake compile fails using JDBC source.
Date: Wed, 1 Dec 2004 14:54:30 -0700
Message-ID: <200412011454.30564.mike.stapleton@echostar.com> (raw)
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
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-jdbc@postgresql.org
Cc: Mike.Stapleton@echostar.com
Subject: Re: gmake compile fails using JDBC source.
In-Reply-To: <200412011454.30564.mike.stapleton@echostar.com>
References: <200412011454.30564.mike.stapleton@echostar.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