pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
gmake compile fails using JDBC source.
2+ messages / 2 participants
[nested] [flat]

* gmake compile fails using JDBC source.
@ 2004-12-01 21:54  Stapleton, Mike <Mike.Stapleton@echostar.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Stapleton, Mike @ 2004-12-01 21:54 UTC (permalink / raw)
  To: 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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: gmake compile fails using JDBC source.
@ 2004-12-01 22:34  Oliver Jowett <oliver@opencloud.com>
  parent: Stapleton, Mike <Mike.Stapleton@echostar.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Oliver Jowett @ 2004-12-01 22:34 UTC (permalink / raw)
  To: Stapleton, Mike <Mike.Stapleton@echostar.com>; +Cc: pgsql-jdbc

Stapleton, Mike wrote:

>         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.

What *is* your JVM/JDK?

You can download precompiled drivers from jdbc.postgresql.org if you prefer.

-O



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-12-01 22:34 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-12-01 21:54 gmake compile fails using JDBC source. Stapleton, Mike <Mike.Stapleton@echostar.com>
2004-12-01 22:34 ` Oliver Jowett <oliver@opencloud.com>

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