Skip site navigation (1) Skip section navigation (2)

HowTo configure and compile with openssl and jdbc on RedHat Enterprise 3?

From: chris(at)goforit(dot)de
To: pgsql-novice(at)postgresql(dot)org
Subject: HowTo configure and compile with openssl and jdbc on RedHat Enterprise 3?
Date: 2004-01-22 22:27:35
Message-ID: 35019.24.130.69.156.1074810455.squirrel@mail.vote4ad.com (view raw or flat)
Thread:
Lists: pgsql-novice
Hi,

yesterday I got a new server running RH ES and now I try to get postgresql
up and running with no success ...

RH ES 3.2.3-20
PostgreSQL 7.4.1 .tgz package from postgresql.org
openssl 0.9.7a with openssl-devel package installed
j2sdk-1.4.2_03 RPM from SUN installed

If I try to run configure with the "--with-openssl=/usr" option, having
the openssl-devel package installed and files verified to be there
(/usr/include/openssl/ssl.h ...) configure will break saying openssl/ssl.h
needs to be available.

Then, having tried without openssl, but with "--with-java" enabled ...
configure suceeds, but compile will fail:

driver:
     [copy] Copying 1 file to
/usr/local/src/postgresql-7.4.1/src/interfaces/jdbc/org/postgresql
     [echo] Configured build for the JDBC3 edition driver with NO SSL

compile:
    [javac] Compiling 77 source files to
/usr/local/src/postgresql-7.4.1/src/interfaces/jdbc/build
    [javac]
/usr/local/src/postgresql-7.4.1/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3Statement.java:28:
error: Invalid checked exception class `java.sql.SQLException' in
`throws' clause. The exception must be a subclass of an exception
thrown by
`org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.lang.String)'
from class `org.postgresql.jdbc1.AbstractJdbc1Statement'.
    [javac]             public PGRefCursorResultSet
createRefCursorResultSet (String cursorName) throws SQLException
    [javac]                                          ^
    [javac]
/usr/local/src/postgresql-7.4.1/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3PreparedStatement.java:23:
error: Invalid checked exception class `java.sql.SQLException' in
`throws' clause. The exception must be a subclass of an exception
thrown by
`org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.lang.String)'
from class `org.postgresql.jdbc1.AbstractJdbc1Statement'.
    [javac]             public PGRefCursorResultSet
createRefCursorResultSet (String cursorName) throws SQLException
    [javac]                                          ^
    [javac]
/usr/local/src/postgresql-7.4.1/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3PoolingDataSource.java:29:
error: Method
`org.postgresql.jdbc2.optional.PoolingDataSource.getDataSource(java.lang.String)'
was defined with return type
`org.postgresql.jdbc2.optional.PoolingDataSource' in class
`org.postgresql.jdbc2.optional.PoolingDataSource'.
    [javac]        static Jdbc3PoolingDataSource getDataSource(String name)
    [javac]                                      ^
    [javac]
/usr/local/src/postgresql-7.4.1/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3CallableStatement.java:23:
error: Invalid checked exception class `java.sql.SQLException' in
`throws' clause. The exception must be a subclass of an exception
thrown by
`org.postgresql.jdbc1.AbstractJdbc1Statement.createRefCursorResultSet(java.lang.String)'
from class `org.postgresql.jdbc1.AbstractJdbc1Statement'.
    [javac]             public PGRefCursorResultSet
createRefCursorResultSet (String cursorName) throws SQLException
    [javac]                                          ^
    [javac] 4 errors

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

Total time: 1 second
gmake[3]: *** [all] Error 1
gmake[3]: Leaving directory
`/usr/local/src/postgresql-7.4.1/src/interfaces/jdbc'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/local/src/postgresql-7.4.1/src/interfaces'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/local/src/postgresql-7.4.1/src'
gmake: *** [all] Error 2

What do I do wrong?

Thanks
Chris


Responses

pgsql-novice by date

Next:From: Bruno LEVEQUEDate: 2004-01-22 23:11:48
Subject: Re: HowTo configure and compile with openssl and jdbc on
Previous:From: Tom LaneDate: 2004-01-22 15:49:02
Subject: Re: executing backup remotly

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group