Re: compiling pg from src --with-java and new build.xml

Lists: pgsql-jdbc
From: "Luke (Terry) Vanderfluit" <luke(at)chipcity(dot)com(dot)au>
To: "pgsql-jdbc (at) postgresql (dot) org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: compiling postgres from source --with-java
Date: 2004-08-13 15:20:15
Message-ID: 1092410415.1415.118.camel@bench.chipcity.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Hi,

I'm installing postgres with perl, python and java support.
That's postgres 7.4.3
I've done the following:

installing postgres using
./configure --with-perl --with-python --with-java
the configure script complains that it needs ant,

so.... I download ant
build ant according to
http://ant.apache.org/manual/index.html
with
'build.sh -Ddist.dir=/usr/local/ant'
then set the environment variables
export ANT_HOME=/usr/local/ant
export JAVA_HOME=/usr/local/java
export PATH=$PATH:/usr/local/ant/bin

but... it didn't work,
on looking in the configure script for postgres, I see I could set the
$ANT variable to directly point to /usr/local/ant/bin/ant
then the './configure --with-perl --with-python --with-java' for
postgresql worked.

however now I execute the 'make' command and get the following error:

Array.java:35: org.postgresql.jdbc2.Array is not abstract and does not
override abstract method
getResultSet(long,int,java.util.Map<java.lang.String,java.lang.Class<?>>) in java.sql.Array

Anyone have any hints?

kind regards,
Luke

--
========================
Luke (Terry) Vanderfluit
Mobile: 0421 276 282
========================


From: Jan de Visser <jdevisser(at)digitalfairway(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: compiling postgres from source --with-java
Date: 2004-08-13 16:37:20
Message-ID: 200408131237.21013.jdevisser@digitalfairway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

On August 13, 2004 11:20 am, Luke (Terry) Vanderfluit wrote:
> Array.java:35: org.postgresql.jdbc2.Array is not abstract and does not
> override abstract method
> getResultSet(long,int,java.util.Map<java.lang.String,java.lang.Class<?>>)
> in java.sql.Array
>
> Anyone have any hints?

You're compiling w/ JDK1.5. I don't think that's supported yet.

JdV!!

--
--------------------------------------------------------------
Jan de Visser jdevisser(at)digitalfairway(dot)com

Baruk Khazad! Khazad ai-menu!
--------------------------------------------------------------


From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: luke(at)chipcity(dot)com(dot)au
Cc: "pgsql-jdbc (at) postgresql (dot) org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: compiling postgres from source --with-java
Date: 2004-08-13 18:12:05
Message-ID: 1092420725.1544.27.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Looks to me like you are building on jdk 1.5, the current driver in the
postgresql source tree cannot be built on that platform.

The current driver (which can be built) is on gborg
http://gborg.postgresql.org/project/pgjdbc/projdisplay.php

Dave
On Fri, 2004-08-13 at 11:20, Luke (Terry) Vanderfluit wrote:
> Hi,
>
> I'm installing postgres with perl, python and java support.
> That's postgres 7.4.3
> I've done the following:
>
>
> installing postgres using
> ./configure --with-perl --with-python --with-java
> the configure script complains that it needs ant,
>
> so.... I download ant
> build ant according to
> http://ant.apache.org/manual/index.html
> with
> 'build.sh -Ddist.dir=/usr/local/ant'
> then set the environment variables
> export ANT_HOME=/usr/local/ant
> export JAVA_HOME=/usr/local/java
> export PATH=$PATH:/usr/local/ant/bin
>
> but... it didn't work,
> on looking in the configure script for postgres, I see I could set the
> $ANT variable to directly point to /usr/local/ant/bin/ant
> then the './configure --with-perl --with-python --with-java' for
> postgresql worked.
>
> however now I execute the 'make' command and get the following error:
>
> Array.java:35: org.postgresql.jdbc2.Array is not abstract and does not
> override abstract method
> getResultSet(long,int,java.util.Map<java.lang.String,java.lang.Class<?>>) in java.sql.Array
>
> Anyone have any hints?
>
> kind regards,
> Luke
--
Dave Cramer
519 939 0336
ICQ # 14675561
http://www.postgresintl.com/


From: "Luke (Terry) Vanderfluit" <luke(at)chipcity(dot)com(dot)au>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: compiling pg from src --with-java and new build.xml
Date: 2004-08-14 02:08:50
Message-ID: 1092449330.1415.125.camel@bench.chipcity.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Hi,

I got the new build.xml from the gborg site and ran make again, this
time I still got errors, though different ones:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: Entering directory
`/store/archiveFiles/postgresql-7.4.3/src/interfaces/jdbc'
/usr/local/ant/bin/ant -buildfile ./build.xml all
Buildfile: ./build.xml

all:

prepare:

check_versions:

check_driver:

driver:
[copy] Copying 1 file to
/store/archiveFiles/postgresql-7.4.3/src/interfaces/jdbc/org/postgresql

BUILD FAILED
/store/archiveFiles/postgresql-7.4.3/src/interfaces/jdbc/build.xml:106:
The following error occurred while executing this line:
/store/archiveFiles/postgresql-7.4.3/src/interfaces/jdbc/build.xml:298:
Warning: Could not find file
/store/archiveFiles/postgresql-7.4.3/src/interfaces/jdbc/org/postgresql/util/PSQLException.java.in to copy.

Total time: 2 seconds
make[3]: *** [all] Error 1
make[3]: Leaving directory
`/store/archiveFiles/postgresql-7.4.3/src/interfaces/jdbc'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/store/archiveFiles/postgresql-7.4.3/src/interfaces'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/store/archiveFiles/postgresql-7.4.3/src'
make: *** [all] Error 2

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

unfortunately I don't know enough about what is going on to be able to
troubleshoot, so I may install jdk1.4.2 and try with that,

does anyone have a clue?

kind regards,
Luke

On Sat, 2004-08-14 at 03:42, Dave Cramer wrote:
> Looks to me like you are building on jdk 1.5, the current driver in the
> postgresql source tree cannot be built on that platform.
>
> The current driver (which can be built) is on gborg
> http://gborg.postgresql.org/project/pgjdbc/projdisplay.php
>
> Dave
> On Fri, 2004-08-13 at 11:20, Luke (Terry) Vanderfluit wrote:
> > Hi,
> >
> > I'm installing postgres with perl, python and java support.
> > That's postgres 7.4.3
> > I've done the following:
> >
> >
> > installing postgres using
> > ./configure --with-perl --with-python --with-java
> > the configure script complains that it needs ant,
> >
> > so.... I download ant
> > build ant according to
> > http://ant.apache.org/manual/index.html
> > with
> > 'build.sh -Ddist.dir=/usr/local/ant'
> > then set the environment variables
> > export ANT_HOME=/usr/local/ant
> > export JAVA_HOME=/usr/local/java
> > export PATH=$PATH:/usr/local/ant/bin
> >
> > but... it didn't work,
> > on looking in the configure script for postgres, I see I could set the
> > $ANT variable to directly point to /usr/local/ant/bin/ant
> > then the './configure --with-perl --with-python --with-java' for
> > postgresql worked.
> >
> > however now I execute the 'make' command and get the following error:
> >
> > Array.java:35: org.postgresql.jdbc2.Array is not abstract and does not
> > override abstract method
> > getResultSet(long,int,java.util.Map<java.lang.String,java.lang.Class<?>>) in java.sql.Array
> >
> > Anyone have any hints?
> >
> > kind regards,
> > Luke
--
========================
Luke (Terry) Vanderfluit
Mobile: 0421 276 282
========================


From: "Luke (Terry) Vanderfluit" <luke(at)chipcity(dot)com(dot)au>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: compiling pg from src --with-java and new build.xml
Date: 2004-08-14 03:10:39
Message-ID: 1092453039.1415.131.camel@bench.chipcity.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Hi,

I got some help from the irc.freenode.net#postgresql chat room and
recompiled with jdk1.4.2, that worked,

kr,
Luke

On Sat, 2004-08-14 at 11:38, Luke (Terry) Vanderfluit wrote:
> Hi,
>
> I got the new build.xml from the gborg site and ran make again, this
> time I still got errors, though different ones:
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> make[3]: Entering directory
> `/store/archiveFiles/postgresql-7.4.3/src/interfaces/jdbc'
> /usr/local/ant/bin/ant -buildfile ./build.xml all
> Buildfile: ./build.xml
>
> all:
>
> prepare:
>
> check_versions:
>
> check_driver:
>
> driver:
> [copy] Copying 1 file to
> /store/archiveFiles/postgresql-7.4.3/src/interfaces/jdbc/org/postgresql
>
> BUILD FAILED
> /store/archiveFiles/postgresql-7.4.3/src/interfaces/jdbc/build.xml:106:
> The following error occurred while executing this line:
> /store/archiveFiles/postgresql-7.4.3/src/interfaces/jdbc/build.xml:298:
> Warning: Could not find file
> /store/archiveFiles/postgresql-7.4.3/src/interfaces/jdbc/org/postgresql/util/PSQLException.java.in to copy.
>
> Total time: 2 seconds
> make[3]: *** [all] Error 1
> make[3]: Leaving directory
> `/store/archiveFiles/postgresql-7.4.3/src/interfaces/jdbc'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/store/archiveFiles/postgresql-7.4.3/src/interfaces'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/store/archiveFiles/postgresql-7.4.3/src'
> make: *** [all] Error 2
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> unfortunately I don't know enough about what is going on to be able to
> troubleshoot, so I may install jdk1.4.2 and try with that,
>
> does anyone have a clue?
>
> kind regards,
> Luke
>
>
> On Sat, 2004-08-14 at 03:42, Dave Cramer wrote:
> > Looks to me like you are building on jdk 1.5, the current driver in the
> > postgresql source tree cannot be built on that platform.
> >
> > The current driver (which can be built) is on gborg
> > http://gborg.postgresql.org/project/pgjdbc/projdisplay.php
> >
> > Dave
> > On Fri, 2004-08-13 at 11:20, Luke (Terry) Vanderfluit wrote:
> > > Hi,
> > >
> > > I'm installing postgres with perl, python and java support.
> > > That's postgres 7.4.3
> > > I've done the following:
> > >
> > >
> > > installing postgres using
> > > ./configure --with-perl --with-python --with-java
> > > the configure script complains that it needs ant,
> > >
> > > so.... I download ant
> > > build ant according to
> > > http://ant.apache.org/manual/index.html
> > > with
> > > 'build.sh -Ddist.dir=/usr/local/ant'
> > > then set the environment variables
> > > export ANT_HOME=/usr/local/ant
> > > export JAVA_HOME=/usr/local/java
> > > export PATH=$PATH:/usr/local/ant/bin
> > >
> > > but... it didn't work,
> > > on looking in the configure script for postgres, I see I could set the
> > > $ANT variable to directly point to /usr/local/ant/bin/ant
> > > then the './configure --with-perl --with-python --with-java' for
> > > postgresql worked.
> > >
> > > however now I execute the 'make' command and get the following error:
> > >
> > > Array.java:35: org.postgresql.jdbc2.Array is not abstract and does not
> > > override abstract method
> > > getResultSet(long,int,java.util.Map<java.lang.String,java.lang.Class<?>>) in java.sql.Array
> > >
> > > Anyone have any hints?
> > >
> > > kind regards,
> > > Luke
--
========================
Luke (Terry) Vanderfluit
Mobile: 0421 276 282
========================


From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: luke(at)chipcity(dot)com(dot)au
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: compiling pg from src --with-java and new build.xml
Date: 2004-08-14 08:03:13
Message-ID: 411DC741.3040306@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Luke (Terry) Vanderfluit wrote:
> Hi,
>
> I got the new build.xml from the gborg site and ran make again, this
> time I still got errors, though different ones:

You cannot replace just the build.xml and expect it to work -- you need
to replace all the JDBC code too at a minimum.

-O