Re: gcj has a lot of complaints about 8.1-405 release

Lists: pgsql-jdbc
From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-jdbc(at)postgreSQL(dot)org
Subject: gcj has a lot of complaints about 8.1-405 release
Date: 2006-03-27 21:58:30
Message-ID: 17770.1143496710@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

So I tried to build the current release using latest gcj, and it blew up
real good: 27 hard errors and 60 warnings. My java-fu is not that
strong, but a lot of these look like problems to me. Comments?

regards, tom lane

Attachment Content-Type Size
ant.log.gz application/octet-stream 3.1 KB

From: Kris Jurka <books(at)ejurka(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-jdbc(at)postgreSQL(dot)org
Subject: Re: gcj has a lot of complaints about 8.1-405 release
Date: 2006-03-27 22:12:36
Message-ID: Pine.BSO.4.63.0603271704310.8552@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

On Mon, 27 Mar 2006, Tom Lane wrote:

> So I tried to build the current release using latest gcj, and it blew up
> real good: 27 hard errors and 60 warnings. My java-fu is not that
> strong, but a lot of these look like problems to me. Comments?
>

The source of the problem is that ant is being run in a 1.5 JVM, but the
java compiler is defaulting to 1.4 source code and fails to recognize the
1.5 syntax. Currently ant must be run in the same JVM version as the
compiler expects. A workaround for you would be to add source="1.5" to
the javac tag in build.xml.

Kris Jurka


From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-jdbc(at)postgreSQL(dot)org
Subject: Re: gcj has a lot of complaints about 8.1-405 release
Date: 2006-03-27 22:15:41
Message-ID: 3A950B86-4142-4705-9436-E7FE43631FB1@fastcrypt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Looks like the real errors is that it is trying to compile java 1.5
code and doesn't have the ability.

What level of java does gjc support ?

Dave
On 27-Mar-06, at 4:58 PM, Tom Lane wrote:

> <mime-attachment.gz>


From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-jdbc(at)postgreSQL(dot)org
Subject: Re: gcj has a lot of complaints about 8.1-405 release
Date: 2006-03-27 22:17:27
Message-ID: 3FCF10DA-5DCD-402A-8148-9B559A02D9FB@fastcrypt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Tom,

Can you give me the output of ant -verbose on that platform ?

Dave
On 27-Mar-06, at 4:58 PM, Tom Lane wrote:

> <mime-attachment.gz>


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dave Cramer <pg(at)fastcrypt(dot)com>
Cc: pgsql-jdbc(at)postgreSQL(dot)org
Subject: Re: gcj has a lot of complaints about 8.1-405 release
Date: 2006-03-27 22:34:14
Message-ID: 24454.1143498854@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Dave Cramer <pg(at)fastcrypt(dot)com> writes:
> Can you give me the output of ant -verbose on that platform ?

I sent Dave the full output off-list, but the critical part seems to be
right at the start:

Apache Ant version 1.6.5 compiled on March 6 2006
Buildfile: build.xml
Detected Java version: 1.5 in: /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
Detected OS: Linux

If the java package version means what I think it means, then this is
misdetecting the version. Is this our fault, or is something screwy
in Red Hat's build environment?

regards, tom lane


From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-jdbc(at)postgreSQL(dot)org
Subject: Re: gcj has a lot of complaints about 8.1-405 release
Date: 2006-03-27 23:16:27
Message-ID: 7DCB285B-3F71-4F4D-9B44-E672B71796D3@fastcrypt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Tom,

Yeah, you read it right.... one more thing please

output of java -version

Dave
On 27-Mar-06, at 5:34 PM, Tom Lane wrote:

> Dave Cramer <pg(at)fastcrypt(dot)com> writes:
>> Can you give me the output of ant -verbose on that platform ?
>
> I sent Dave the full output off-list, but the critical part seems
> to be
> right at the start:
>
> Apache Ant version 1.6.5 compiled on March 6 2006
> Buildfile: build.xml
> Detected Java version: 1.5 in: /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
> Detected OS: Linux
>
> If the java package version means what I think it means, then this is
> misdetecting the version. Is this our fault, or is something screwy
> in Red Hat's build environment?
>
> regards, tom lane
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: explain analyze is your friend
>


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dave Cramer <pg(at)fastcrypt(dot)com>
Cc: pgsql-jdbc(at)postgreSQL(dot)org
Subject: Re: gcj has a lot of complaints about 8.1-405 release
Date: 2006-03-27 23:18:07
Message-ID: 24801.1143501487@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Dave Cramer <pg(at)fastcrypt(dot)com> writes:
> Yeah, you read it right.... one more thing please
> output of java -version

java version "1.4.2"
gij (GNU libgcj) version 4.1.0 20060304 (Red Hat 4.1.0-3)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

regards, tom lane


From: Kris Jurka <books(at)ejurka(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Dave Cramer <pg(at)fastcrypt(dot)com>, pgsql-jdbc(at)postgreSQL(dot)org
Subject: Re: gcj has a lot of complaints about 8.1-405 release
Date: 2006-03-27 23:24:39
Message-ID: Pine.BSO.4.63.0603271756001.21311@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

On Mon, 27 Mar 2006, Tom Lane wrote:

> Apache Ant version 1.6.5 compiled on March 6 2006
> Detected Java version: 1.5 in: /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
>
> If the java package version means what I think it means, then this is
> misdetecting the version. Is this our fault, or is something screwy
> in Red Hat's build environment?
>

Your version of ant determines it is a 1.5 JVM by being able to load the
java.lang.Readable interface which shouldn't exist in a 1.4 JVM. Newer
versions of ant (2 days old) check for java.net.Proxy instead.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39027

Kris Jurka


From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-jdbc(at)postgreSQL(dot)org
Subject: Re: gcj has a lot of complaints about 8.1-405 release
Date: 2006-03-27 23:30:25
Message-ID: C6D6CFFB-8FFD-42CD-896F-C4AACAB93B33@fastcrypt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Hmmm.... wierd.... you'd think that should be enough information to
figure out that it's version 1.4.2

Other than Kris's suggestion, I'm not sure how to help, unless I
could get access to a similiarly configured box.

I'm thinking the java config files must be setup to tell it that it's
java 1.5 somewhere

Dave
On 27-Mar-06, at 6:18 PM, Tom Lane wrote:

> Dave Cramer <pg(at)fastcrypt(dot)com> writes:
>> Yeah, you read it right.... one more thing please
>> output of java -version
>
> java version "1.4.2"
> gij (GNU libgcj) version 4.1.0 20060304 (Red Hat 4.1.0-3)
>
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
> regards, tom lane
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: Dave Cramer <pg(at)fastcrypt(dot)com>, pgsql-jdbc(at)postgreSQL(dot)org
Subject: Re: gcj has a lot of complaints about 8.1-405 release
Date: 2006-03-27 23:32:19
Message-ID: 24982.1143502339@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Kris Jurka <books(at)ejurka(dot)com> writes:
> http://issues.apache.org/bugzilla/show_bug.cgi?id=39027

Ah-hah. I'll twist some arms to get this into Red Hat's build system ASAP.
Many thanks for the clue!

regards, tom lane


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kris Jurka <books(at)ejurka(dot)com>, Dave Cramer <pg(at)fastcrypt(dot)com>, pgsql-jdbc(at)postgreSQL(dot)org
Subject: Re: gcj has a lot of complaints about 8.1-405 release
Date: 2006-03-28 03:09:54
Message-ID: 26389.1143515394@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

BTW, one Red Hatter had this to say:

> Yeah, AFAIAC this is a bug in ant. Really, the build file should be using
> ${java.version} instead of ${ant.java.version} to avoid this problem, IMHO.
> I ran into a similar issue with the Eclipse SDK.

Comments?

regards, tom lane


From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Kris Jurka <books(at)ejurka(dot)com>, pgsql-jdbc(at)postgreSQL(dot)org
Subject: Re: gcj has a lot of complaints about 8.1-405 release
Date: 2006-03-28 03:32:28
Message-ID: C66200E2-37E7-4C6D-8400-FB3D17F4366C@fastcrypt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

Certainly from Kris's post this is a bug in Ant which has been
corrected in the latest versions.

Dave
On 27-Mar-06, at 10:09 PM, Tom Lane wrote:

> BTW, one Red Hatter had this to say:
>
>> Yeah, AFAIAC this is a bug in ant. Really, the build file should
>> be using
>> ${java.version} instead of ${ant.java.version} to avoid this
>> problem, IMHO.
>> I ran into a similar issue with the Eclipse SDK.
>
> Comments?
>
> regards, tom lane
>


From: Kris Jurka <books(at)ejurka(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Dave Cramer <pg(at)fastcrypt(dot)com>, pgsql-jdbc(at)postgreSQL(dot)org
Subject: Re: gcj has a lot of complaints about 8.1-405 release
Date: 2006-03-28 20:47:25
Message-ID: Pine.BSO.4.63.0603281529550.189@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

On Mon, 27 Mar 2006, Tom Lane wrote:

> BTW, one Red Hatter had this to say:
>
>> Yeah, AFAIAC this is a bug in ant. Really, the build file should be using
>> ${java.version} instead of ${ant.java.version} to avoid this problem, IMHO.
>> I ran into a similar issue with the Eclipse SDK.
>

The difference is that java.version will return things like 1.4.2_08
instead of just 1.4, so they are not equivalent. ant doesn't offer a lot
of tools to parse such a string, the best you could do would be a global
substring match. Trying to find 1.4 would match 1.1.4 as well as 1.4.2
though. Since we don't support 1.1 builds we could do this, but it seems
a little fragile with perhaps other vendors using different format
strings. The best solution for older ant users might be to duplicate the
checks ant makes for ant.java.version in our own build file. That way we
can put in the latest updates and not require an upgrade.

Kris Jurka


From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: Dave Cramer <pg(at)fastcrypt(dot)com>, pgsql-jdbc(at)postgreSQL(dot)org
Subject: Re: gcj has a lot of complaints about 8.1-405 release
Date: 2006-03-30 18:06:44
Message-ID: Pine.OSF.4.61.0603302102480.228269@kosh.hut.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

On Tue, 28 Mar 2006, Kris Jurka wrote:

>
>
> On Mon, 27 Mar 2006, Tom Lane wrote:
>
>> BTW, one Red Hatter had this to say:
>>
>>> Yeah, AFAIAC this is a bug in ant. Really, the build file should be using
>>> ${java.version} instead of ${ant.java.version} to avoid this problem,
>>> IMHO.
>>> I ran into a similar issue with the Eclipse SDK.
>>
>
> The difference is that java.version will return things like 1.4.2_08 instead
> of just 1.4, so they are not equivalent. ant doesn't offer a lot of tools to
> parse such a string, the best you could do would be a global substring match.
> Trying to find 1.4 would match 1.1.4 as well as 1.4.2 though. Since we don't
> support 1.1 builds we could do this, but it seems a little fragile with
> perhaps other vendors using different format strings. The best solution for
> older ant users might be to duplicate the checks ant makes for
> ant.java.version in our own build file. That way we can put in the latest
> updates and not require an upgrade.

How about java.specification.version? AFAIK, it should do just what we
need.

- Heikki


From: Kris Jurka <books(at)ejurka(dot)com>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Cc: Dave Cramer <pg(at)fastcrypt(dot)com>, pgsql-jdbc(at)postgreSQL(dot)org
Subject: Re: gcj has a lot of complaints about 8.1-405 release
Date: 2006-04-29 02:20:05
Message-ID: Pine.BSO.4.63.0604282119010.21839@leary2.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

On Thu, 30 Mar 2006, Heikki Linnakangas wrote:

> How about java.specification.version? AFAIK, it should do just what we
> need.
>

Indeed it does, I've put this into our build.xml along with an explicit
failure message when someone tries a JDK1.6 compile.

Kris Jurka


From: "Clemens Eisserer" <linuxhippy(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: gcj has a lot of complaints about 8.1-405 release
Date: 2006-05-07 15:54:46
Message-ID: 194f62550605070854v203623a0w3161695e34858245@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-jdbc

I am also really excited about GCJ/Classpath support, since this would
allow users to use postgres from java applications without relying on
proprietary software.

Just because of interrest, has anybody successfully used the jdbc
driver with gnu-classpath based JVMs?

Thanks, lg Clemens

2006/4/29, Kris Jurka <books(at)ejurka(dot)com>:
>
>
> On Thu, 30 Mar 2006, Heikki Linnakangas wrote:
>
> > How about java.specification.version? AFAIK, it should do just what we
> > need.
> >
>
> Indeed it does, I've put this into our build.xml along with an explicit
> failure message when someone tries a JDK1.6 compile.
>
> Kris Jurka
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>