Thread: Bug-report (was: JDBC driver in pgsql 7.1 build problem)

Bug-report (was: JDBC driver in pgsql 7.1 build problem)

From
Rolf Schillinger
Date:
Hi again,
it`s now offical, I found a bug in JDBC driver in pgsql 7.1 ;)
I had the following problems:
/usr/local/jakarta-ant-1.3/bin//ant -buildfile ../../../build.xml
-Dmajor=7 -Dminor=1 -Dfullversion=7.1 -Ddef_pgport=5432
Buildfile: ../../../build.xml

jar:

call:

prepare:

check_versions:

driver:
     [echo] Configured build for the JDBC2 edition driver.

compile:
    [javac] Compiling 41 source files to
/usr/src/postgresql-7.1/src/interfaces/jdbc/build
    [javac]
/usr/src/postgresql-7.1/src/interfaces/jdbc/org/postgresql/Driver.java:199: ';'
expected
    [javac]     return ${major};
    [javac]             ^
    [javac]
/usr/src/postgresql-7.1/src/interfaces/jdbc/org/postgresql/Driver.java:209: ';'
expected
    [javac]     return ${minor};
    [javac]             ^
    [javac]
/usr/src/postgresql-7.1/src/interfaces/jdbc/org/postgresql/Driver.java:199: cannot
resolve symbol
    [javac] symbol  : variable $
    [javac] location: class org.postgresql.Driver
    [javac]     return ${major};
    [javac]            ^
    [javac]
/usr/src/postgresql-7.1/src/interfaces/jdbc/org/postgresql/Driver.java:209: cannot
resolve symbol
    [javac] symbol  : variable $
    [javac] location: class org.postgresql.Driver
    [javac]     return ${minor};
    [javac]            ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] 4 errors

BUILD FAILED

/usr/src/postgresql-7.1/src/interfaces/jdbc/build.xml:99: Compile failed,
messages should have been provided.

Total time: 9 seconds
make: *** [all] Error 1

when using
JDK:
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build
Blackdown-1.3.0-RC1)
Java HotSpot(TM) Client VM (build Blackdown-1.3.0-RC1, mixed mode)

Ant:
Ant version 1.3 compiled on March 2 2001

Postgresql:
As stated above: 7.1

the following patch by Marko Kreen <marko@l-t.ee> solved that problem:
http://www.l-t.ee/marko/pgsql/ant12.diff

Again thanks for all the help on this friendly list :)
bis bald, Rolf



Re: Bug-report (was: JDBC driver in pgsql 7.1 build problem)

From
Marko Kreen
Date:
On Thu, May 03, 2001 at 11:48:34PM +0200, Rolf Schillinger wrote:
> Hi again,
> it`s now offical, I found a bug in JDBC driver in pgsql 7.1 ;)

:)

> I had the following problems:
> /usr/local/jakarta-ant-1.3/bin//ant -buildfile ../../../build.xml

...

> expected
>     [javac]     return ${major};

...

> when using
> JDK:
> java version "1.3.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build
> Blackdown-1.3.0-RC1)
> Java HotSpot(TM) Client VM (build Blackdown-1.3.0-RC1, mixed mode)
>
> Ant:
> Ant version 1.3 compiled on March 2 2001
>
> Postgresql:
> As stated above: 7.1

To narrow the problem...

Has anybody had success compiling unpatched 7.1 JDBC driver
with JDK1.3 and Ant 1.2/1.3?  If not, could this patch be
applied?  Ant 1.4 betas seem to be ok.

--
marko


Re: Bug-report (was: JDBC driver in pgsql 7.1 build problem)

From
Ned Wolpert
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Date: Fri, 4 May 2001 19:26:48 +0200
> From: Marko Kreen <marko@l-t.ee>

> Has anybody had success compiling unpatched 7.1 JDBC driver
> with JDK1.3 and Ant 1.2/1.3?  If not, could this patch be
> applied?  Ant 1.4 betas seem to be ok.

Yes.  I could compile 7.1 with ant 1.3 without a problem.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Public key at http://www.keyserver.net

iD8DBQE68vCUiysnOdCML0URAhaFAJwPk4muzSP6c5b+HCfZL/3N+KBv/ACdGke9
eFvhpOC1sWEeXmw9ozLfCR8=
=rg36
-----END PGP SIGNATURE-----

--
Virtually,
Ned Wolpert <ned.wolpert@knowledgenet.com>

D08C2F45:  28E7 56CB 58AC C622 5A51  3C42 8B2B 2739 D08C 2F45


Re: Bug-report (was: JDBC driver in pgsql 7.1 build problem)

From
Marko Kreen
Date:
On Fri, May 04, 2001 at 09:16:38PM +0300, Ned Wolpert wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> > Date: Fri, 4 May 2001 19:26:48 +0200
> > From: Marko Kreen <marko@l-t.ee>
>
> > Has anybody had success compiling unpatched 7.1 JDBC driver
> > with JDK1.3 and Ant 1.2/1.3?  If not, could this patch be
> > applied?  Ant 1.4 betas seem to be ok.
>
> Yes.  I could compile 7.1 with ant 1.3 without a problem.

And Sun's JDK 1.3?

--
marko


Re: Bug-report (was: JDBC driver in pgsql 7.1 build problem)

From
Peter Eisentraut
Date:
Marko Kreen writes:

> Has anybody had success compiling unpatched 7.1 JDBC driver
> with JDK1.3 and Ant 1.2/1.3?

Yes.  I have

$ java -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)

(downloaded from Sun)

$ ant -version
Ant version 1.3 compiled on March 22 2001

(RPM from the Ant site)

and it's been working ever since.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


Re: Bug-report (was: JDBC driver in pgsql 7.1 build problem)

From
Marko Kreen
Date:
On Fri, May 04, 2001 at 11:14:07PM +0300, Ned Wolpert wrote:
> > > Yes.  I could compile 7.1 with ant 1.3 without a problem.
> >
> > And Sun's JDK 1.3?
> >
>
> Yes.

Fun.  Back on square one.  So: on some unknown cases Ant 1.2/1.3
with combination of JDK1.3 will have following problems:

* Ant cannot parse '-option' after target name.
* Ant cannot create .jar without manifest file.  (This one
  was a pain to find out as the error message was very
  confusing.)

One bad Ant in Debian's package.  First I thought it is only
Debian specific, but seems its not the case.

My patch does following:

* rearranges ant command line
* specifies manifest file

Is it too much asked to include this upstream?  I can ofcourse
continue to spam this list with link to patch.

My conclusion: Ant is nice concept, but still too unstable for
relying on it.  *shrug*

--
marko


Re: Bug-report (was: JDBC driver in pgsql 7.1 build problem)

From
Ned Wolpert
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



> Date: Fri, 4 May 2001 20:56:04 +0200
> From: Marko Kreen <marko@l-t.ee>

> > Yes.  I could compile 7.1 with ant 1.3 without a problem.
>
> And Sun's JDK 1.3?
>

Yes.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Public key at http://www.keyserver.net

iD8DBQE68wwniysnOdCML0URAlskAJ9p9quLxDZlJkYeWC5UA47g/AlwtgCeM1rT
Go5+B+sL+VdjnHPBOMvDOfM=
=tXDn
-----END PGP SIGNATURE-----

--
Virtually,
Ned Wolpert <ned.wolpert@knowledgenet.com>

D08C2F45:  28E7 56CB 58AC C622 5A51  3C42 8B2B 2739 D08C 2F45