Problem building JDBC in PostgreSQL 7.2devel

From: John Summerfield <pgtest(at)os2(dot)ami(dot)com(dot)au>
To: <pgsql-bugs(at)postgresql(dot)org>
Subject: Problem building JDBC in PostgreSQL 7.2devel
Date: 2001-09-03 01:39:13
Message-ID: Pine.LNX.4.33.0109030931510.28666-100000@possum.os2.ami.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


After much fun building ant (which, at the very least proved I have a
working javac AND that I don't need JAVA_HOME set, I get this failure
building PostgreSQL 7.2devel with Java support:

configure:1499: checking for executable suffix
configure:1509: gcc -o conftest -O2 -g conftest.c 1>&5
configure:1530: checking how to run the C preprocessor
configure:1551: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1611: checking whether gcc needs -traditional
configure:1757: checking whether to build with Tcl
configure:1781: checking whether to build with Tk
configure:1843: checking whether to build with PL/Tcl unknown support
configure:1877: checking whether to build Perl modules
configure:1904: checking whether to build Python modules
configure:1930: checking whether to build Java/JDBC tools
configure:1942: checking for jakarta-ant
configure:1942: checking for ant
configure:1979: checking whether /usr/bin/ant works
configure:2002: /usr/bin/ant -buildfile conftest.xml 1>&2
Buildfile: conftest.xml

conftest:
[javac] Modern compiler is not available - using classic compiler
[javac] Compiling 1 source file

BUILD FAILED

/tmp/pgsql/conftest.xml:3: Cannot use classic compiler, as it is not
available A common solution is to set the environment variable JAVA_HOME
to your jdk directory.

Total time: 1 second
configure: failed java program was:
public class conftest {
int testmethod(int a, int b) {
return a + b;
}
}
configure: failed build file was:
<project name="conftest" default="conftest">
<target name="conftest">
<javac srcdir="." includes="conftest.java">
</javac>
</target>
</project>

The package builds, installs and runs fine (at least to the point of
initialising the database and creating a new user) without java.

JDBC is essential to the testing I'm doing.

Browse pgsql-bugs by date

  From Date Subject
Next Message Tomasz Zielonka 2001-09-03 04:55:57 Error in backend/storage/lmgr/proc.c: ProcSleep()
Previous Message Peter Eisentraut 2001-09-03 00:03:39 Re: Bug #435: Cannot connect to databases if using Capital