Thread: Compiling 7.2.1 with JDBC-Support fails - help needed

Compiling 7.2.1 with JDBC-Support fails - help needed

From
Ralph Graulich
Date:
Hi,


after successfully setting up Apache httpd with Jakarta Tomcat JSP-Server,
I want to dive into database access with JDBC. Therefore I need to
recompile postgreSQL. As the compiler run fails, I need help or helpful
hints... if you need any more data, please let me know. TIA

Available
---------
- Jakarta Ant 1.5
- Java 2 SDK 1.4.0-01
- postgreSQL 7.2.1
Intel 586 platform

Configure-Line
--------------
./configure \
--prefix=/home/postgres \
--mandir=/usr/man \
--with-pgport=5432 \
--with-perl \
--with-openssl=/usr/local/ssl \
--enable-odbc \
--enable-syslog \
--enable-locale \
--with-java

make fails with
---------------
make[3]: Entering directory
`/usr/src/postgresql-7.2.1/src/interfaces/jdbc'
/usr/local/jakarta-ant-1.5/bin/ant -buildfile ./build.xml all \
  -Dmajor=7 -Dminor=2 -Dfullversion=7.2.1 -Ddef_pgport=5432
Buildfile: ./build.xml

all:

prepare:

check_versions:

driver:
[available] DEPRECATED - <available> used to override an existing
property.
[available]   Build file should not reuse the same property name for
different values.
[available] DEPRECATED - <available> used to override an existing
property.
[available]   Build file should not reuse the same property name for
different values.
[available] DEPRECATED - <available> used to override an existing
property.
[available]   Build file should not reuse the same property name for
different values.
[available] DEPRECATED - <available> used to override an existing
property.
[available]   Build file should not reuse the same property name for
different values.
     [echo] Configured build for the JDBC2 Enterprise edition driver

compile:
    [javac] Compiling 53 source files to
/usr/src/postgresql-7.2.1/src/interfaces/jdbc/build
    [javac]
/usr/src/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/xa/XAConnectionImpl.java:57: cannot
resolve symbol
    [javac] symbol  : class RollbackException
    [javac] location: package transaction
    [javac] import javax.transaction.RollbackException;
    [javac]                          ^


[...]

    [javac]
/usr/src/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/xa/ClientConnection.java:70:
org.postgresql.xa.ClientConnection
should be declared abstract; it does not define setHoldability(int) in
org.postgresql.xa.ClientConnection
    [javac] final class ClientConnection
    [javac]       ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] 10 errors

BUILD FAILED
file:/usr/src/postgresql-7.2.1/src/interfaces/jdbc/build.xml:72: Compile
failed; see the compiler error output for details.

Total time: 7 seconds
make[3]: *** [all] Error 1
make[3]: Leaving directory `/usr/src/postgresql-7.2.1/src/interfaces/jdbc'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/postgresql-7.2.1/src/interfaces'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/postgresql-7.2.1/src'
make: *** [all] Error 2


Kind regards
... Ralph ...


Re: Compiling 7.2.1 with JDBC-Support fails - help needed

From
Gregory Seidman
Date:
Ralph Graulich sez:
} after successfully setting up Apache httpd with Jakarta Tomcat JSP-Server,
} I want to dive into database access with JDBC. Therefore I need to
} recompile postgreSQL. As the compiler run fails, I need help or helpful
} hints... if you need any more data, please let me know. TIA
[...]

I have the same setup, and had similar problems compiling the JDBC
driver. As it turns out, however, there is no need to configure/compile
PostgreSQL with Java support. The JDBC driver simply uses TCP to talk to
the server (must make sure that the postmaster is listening to its TCP
port), and since Write Once Run Anywhere is actually valid for non-GUI
things (mostly...), you can just grab the JDBC driver precompiled from
jdbc.postgresql.org

} Kind regards
} ... Ralph ...
--Greg


Re: Compiling 7.2.1 with JDBC-Support fails - help needed

From
snpe
Date:
You don't compile jdbc with jdk 1.4.0 in 7.2 release
Tahat is possible in 7.3dev release
regards
haris peco
On Thursday 29 August 2002 04:49 pm, Ralph Graulich wrote:
> Hi,
>
>
> after successfully setting up Apache httpd with Jakarta Tomcat JSP-Server,
> I want to dive into database access with JDBC. Therefore I need to
> recompile postgreSQL. As the compiler run fails, I need help or helpful
> hints... if you need any more data, please let me know. TIA
>
> Available
> ---------
> - Jakarta Ant 1.5
> - Java 2 SDK 1.4.0-01
> - postgreSQL 7.2.1
> Intel 586 platform
>
> Configure-Line
> --------------
> ./configure \
> --prefix=/home/postgres \
> --mandir=/usr/man \
> --with-pgport=5432 \
> --with-perl \
> --with-openssl=/usr/local/ssl \
> --enable-odbc \
> --enable-syslog \
> --enable-locale \
> --with-java
>
> make fails with
> ---------------
> make[3]: Entering directory
> `/usr/src/postgresql-7.2.1/src/interfaces/jdbc'
> /usr/local/jakarta-ant-1.5/bin/ant -buildfile ./build.xml all \
>   -Dmajor=7 -Dminor=2 -Dfullversion=7.2.1 -Ddef_pgport=5432
> Buildfile: ./build.xml
>
> all:
>
> prepare:
>
> check_versions:
>
> driver:
> [available] DEPRECATED - <available> used to override an existing
> property.
> [available]   Build file should not reuse the same property name for
> different values.
> [available] DEPRECATED - <available> used to override an existing
> property.
> [available]   Build file should not reuse the same property name for
> different values.
> [available] DEPRECATED - <available> used to override an existing
> property.
> [available]   Build file should not reuse the same property name for
> different values.
> [available] DEPRECATED - <available> used to override an existing
> property.
> [available]   Build file should not reuse the same property name for
> different values.
>      [echo] Configured build for the JDBC2 Enterprise edition driver
>
> compile:
>     [javac] Compiling 53 source files to
> /usr/src/postgresql-7.2.1/src/interfaces/jdbc/build
>     [javac]
> /usr/src/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/xa/XAConnectio
>nImpl.java:57: cannot resolve symbol
>     [javac] symbol  : class RollbackException
>     [javac] location: package transaction
>     [javac] import javax.transaction.RollbackException;
>     [javac]                          ^
>
>
> [...]
>
>     [javac]
> /usr/src/postgresql-7.2.1/src/interfaces/jdbc/org/postgresql/xa/ClientConne
>ction.java:70: org.postgresql.xa.ClientConnection should be declared
> abstract; it does not define setHoldability(int) in
> org.postgresql.xa.ClientConnection
>     [javac] final class ClientConnection
>     [javac]       ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -deprecation for details.
>     [javac] 10 errors
>
> BUILD FAILED
> file:/usr/src/postgresql-7.2.1/src/interfaces/jdbc/build.xml:72: Compile
> failed; see the compiler error output for details.
>
> Total time: 7 seconds
> make[3]: *** [all] Error 1
> make[3]: Leaving directory `/usr/src/postgresql-7.2.1/src/interfaces/jdbc'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/usr/src/postgresql-7.2.1/src/interfaces'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/src/postgresql-7.2.1/src'
> make: *** [all] Error 2
>
>
> Kind regards
> ... Ralph ...
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)