Thread: 8.3 build 603 build error on Fedora 8

8.3 build 603 build error on Fedora 8

From
Devrim GÜNDÜZ
Date:
Hi,

Attached is the build error of build 603 on Fedora 8. I'm not a JDBC
guy. How can it be fixed?

Regards,
--
Devrim GÜNDÜZ , RHCE
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/

Attachment

Re: 8.3 build 603 build error on Fedora 8

From
Kris Jurka
Date:

On Thu, 31 Jan 2008, Devrim G�ND�Z wrote:

> Attached is the build error of build 603 on Fedora 8. I'm not a JDBC
> guy. How can it be fixed?
>

It appears that the replace processing that's used to transform
Driver.java.in to Driver.java is not working.  What's your version of ant
and the JDK?

Could you send "ant -verbose" output?

Kris Jurka

Re: 8.3 build 603 build error on Fedora 8

From
Devrim GÜNDÜZ
Date:
Hi,

On Thu, 2008-01-31 at 13:39 -0500, Kris Jurka wrote:

> What's your version of ant and the JDK?

$ rpm -qv ant
ant-1.7.0-1jpp.2.fc8

I'm using IcedTea, the Java Platform that Fedora ships.

> Could you send "ant -verbose" output?

Attached.

Just a FYI: I could compile build 602 on the same environment...

Regards,
--
Devrim GÜNDÜZ , RHCE
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/

Attachment

Re: 8.3 build 603 build error on Fedora 8

From
Devrim GÜNDÜZ
Date:
Hi,

On Thu, 2008-01-31 at 10:51 -0800, Devrim GÜNDÜZ wrote:
> Just a FYI: I could compile build 602 on the same environment...

I just remembered that Java environment on my laptop is broken. I tested
this release on another Fedora 8, and it worked well.

Sorry for the noise.

Regards,
--
Devrim GÜNDÜZ , RHCE
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/

Attachment

Re: 8.3 build 603 build error on Fedora 8

From
Kris Jurka
Date:

On Thu, 31 Jan 2008, Devrim G�ND�Z wrote:

> On Thu, 2008-01-31 at 13:39 -0500, Kris Jurka wrote:
>
>> What's your version of ant and the JDK?
>
> $ rpm -qv ant
> ant-1.7.0-1jpp.2.fc8
>
> I'm using IcedTea, the Java Platform that Fedora ships.
>

We determine which version of the driver to build based on the JVM we're
running in, so when I see this
"/usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0/jre", I'm guessing it's reporting
itself as a 1.7 JVM while we only know about 1.6 and less.  Perhaps this
patch will help?

Kris Jurka
Attachment

Re: 8.3 build 603 build error on Fedora 8

From
Tom Lane
Date:
Kris Jurka <books@ejurka.com> writes:
> We determine which version of the driver to build based on the JVM we're
> running in, so when I see this
> "/usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0/jre", I'm guessing it's reporting
> itself as a 1.7 JVM while we only know about 1.6 and less.  Perhaps this
> patch will help?

I'm not sure how Devrim got around it, but on my Fedora 8 machine this
patch is in fact necessary.  The 8.2 driver doesn't build without it
anymore, either (probably true all the way back, but 8.2 and 8.3 are
the only ones I tested).

            regards, tom lane

Re: 8.3 build 603 build error on Fedora 8

From
Devrim GÜNDÜZ
Date:
Hi,

On Tue, 2008-02-12 at 12:07 -0500, Tom Lane wrote:
> I'm not sure how Devrim got around it, but on my Fedora 8 machine this
> patch is in fact necessary.  The 8.2 driver doesn't build without it
> anymore, either

I did not add any patch. This build can be built cleanly on my boxes
without any patches:

http://yum.pgsqlrpms.org/8.3/fedora/fedora-8-i386/repoview/postgresql-jdbc.html

Same is valid for 8.2:

http://yum.pgsqlrpms.org/8.2/fedora/fedora-8-i386/repoview/postgresql-jdbc.html


(The failed box is my laptop, and is broken on Java builds, which I'm
aware...)

Regards,
--
Devrim GÜNDÜZ , RHCE
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/

Attachment

Re: 8.3 build 603 build error on Fedora 8

From
Tom Lane
Date:
Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= <devrim@CommandPrompt.com> writes:
> (The failed box is my laptop, and is broken on Java builds, which I'm
> aware...)

Well, if "broken" means "out-of-the-box Fedora 8 Java installation",
then that accords with my results ;-).  Anyway I suggest Kris apply
that patch; it's certainly not going to break any machine where JDBC
builds now.

            regards, tom lane

Re: 8.3 build 603 build error on Fedora 8

From
Devrim GÜNDÜZ
Date:
Hi,

On Tue, 2008-02-12 at 12:41 -0500, Tom Lane wrote:
> Well, if "broken" means "out-of-the-box Fedora 8 Java installation",
> then that accords with my results ;-)

:-) No, actually "out-of-the-box Fedora 8 Java installation" is not
broken, at least in my buildfarm instances. What happens when you do a
scratch build at koji?

Regards,
--
Devrim GÜNDÜZ , RHCE
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/

Attachment

Re: 8.3 build 603 build error on Fedora 8

From
Kris Jurka
Date:

On Tue, 12 Feb 2008, Tom Lane wrote:

> I'm not sure how Devrim got around it, but on my Fedora 8 machine this
> patch is in fact necessary.  The 8.2 driver doesn't build without it
> anymore, either (probably true all the way back, but 8.2 and 8.3 are
> the only ones I tested).
>

I've applied this patch to 8.2+.  8.1 and earlier won't build with this
version of Java, but I've now made it report a useful error message rather
than strange errors all over the place.  To all driver versions I've added
an explicit check to bail out if it finds a Java version that it doesn't
know what to do with.

Kris Jurka