Thread

  1. 7.1beta4 jdbc problem on freebsd 4.2 with JSDK 1.1.8.

    Nat Howard <nrh@pupworks.com> — 2001-02-07T05:19:58Z

    Using java SDK 1.1.8, which is the current "real" java in the 
    freebsd ports tree, one can't compile the jdbc driver.  The Implementation
    file mentions that "ant" has not been tested with 1.1.X, and suggests
    that the deprecated makefile will work.
    
    The errors below are from a java file, and occur whether one uses
    "gmake jdbc1" or "ant" to attempt to build the driver.
    
    spot% ant
    Searching for build.xml ...
    Buildfile: /usr/home/nrh/postgresql/postgresql-7.1beta4/build.xml
    
    jar:
    
    call:
    
    prepare:
    
    check_versions:
    
    driver:
    Configured build for the JDBC1 edition driver.
    
    compile:
        [javac] Compiling 1 source file to /usr/home/nrh/postgresql/postgresql-7.1beta4/src/interfaces/jdbc/build
        [javac] /usr/home/nrh/postgresql/postgresql-7.1beta4/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:284: Missing term.
        [javac]           if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet())
        [javac]                              ^
        [javac] /usr/home/nrh/postgresql/postgresql-7.1beta4/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:284: Invalid expression statement.
        [javac]           if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet())
        [javac]                               ^
        [javac] /usr/home/nrh/postgresql/postgresql-7.1beta4/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:284: ';' expected.
        [javac]           if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet())
        [javac]                                                                                      ^
        [javac] 3 errors
    
    BUILD FAILED
    
    /usr/home/nrh/postgresql/postgresql-7.1beta4/src/interfaces/jdbc/build.xml:82: Compile failed, messages should have been provided.
    
    Total time: 4 seconds
    
    
  2. Re: 7.1beta4 jdbc problem on freebsd 4.2 with JSDK 1.1.8.

    Peter T Mount <peter@retep.org.uk> — 2001-02-07T09:02:20Z

    Quoting Nat Howard <nrh@pupworks.com>:
    
    > Using java SDK 1.1.8, which is the current "real" java in the 
    > freebsd ports tree, one can't compile the jdbc driver.  The Implementation
    > file mentions that "ant" has not been tested with 1.1.X, and suggests
    > that the deprecated makefile will work.
    
    I'm targetting this weekend to test the 1.1.x drivers (should have the test 
    suite ready by then).
    
    > The errors below are from a java file, and occur whether one uses
    > "gmake jdbc1" or "ant" to attempt to build the driver.
    
    [snip]
    
    > /usr/home/nrh/postgresql/postgresql-
    7.1beta4/src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java:284:
    > Missing term.
    >     [javac]           if (result != null) &&
    > ((org.postgresql.ResultSet)result.reallyResultSet())
    
    Hmmm, I'll look at it shortly, although I've only got 1.3.0 here. Looks like 
    something under the common source has broke. I'll compare the JDBC1 & JDBC2 
    sources to see how they differ here.
    
    This problem has nothing to do with make or ant.
    
    One thing useful from this report is that ant does run under 1.1.x - the main 
    reason I wrote that it's not been tested, I didn't know if it would even work.
    
    Thanks, for the report - a useful one.
    
    Peter
    
    -- 
    Peter Mount peter@retep.org.uk
    PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
    RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/