gmake compile fails using JDBC source.

From: "Stapleton, Mike" <Mike(dot)Stapleton(at)echostar(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: gmake compile fails using JDBC source.
Date: 2004-12-01 21:54:30
Message-ID: 200412011454.30564.mike.stapleton@echostar.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2004-12-01 22:34:34 Re: gmake compile fails using JDBC source.
Previous Message Nicolas Modrzyk 2004-12-01 08:31:56 Postgresql driver Question