[Sablevm-developer] Bug#239452: sablevm: Ant 1.6.1 works on SableVM 1.1.3
Brought to you by:
egagnon
From: Etienne G. <gag...@uq...> - 2004-04-25 16:13:48
|
Package: sablevm Version: 1.1.3-1 Severity: normal Followup-For: Bug #239452 Hi, Seeing this bugreport, I did: $ cvs -d:pserver:ano...@gb...:/usr/local/cvsroot/pgjdbc co pgjdbc $ cd pgjdbc/ $ ##### IMPORTANT ##### $ ## apply patch to build.xml provided below so that jikes finds the bootclasspath $ ##################### $ ant -version Unable to locate tools.jar. Expected to find it in ?/lib/tools.jar Apache Ant version 1.6.1 compiled on March 10 2004 $ java -version SableVM version 1.1.3 - compile date and time: 2004-04-13 01:58:32 UTC - gcc version: 3.3.3 (Debian 20040401) - 'real life brokenness' features enabled - signal based exception detection - copying garbage collection - bidirectional object layout - inline-threaded interpreter $ ant -Dbuild.compiler=jikes Unable to locate tools.jar. Expected to find it in ?/lib/tools.jar Buildfile: build.xml all: prepare: [mkdir] Created dir: /home/egagnon/tmp/pgjdbc/build [mkdir] Created dir: /home/egagnon/tmp/pgjdbc/jars check_versions: check_driver: driver: [copy] Copying 1 file to /home/egagnon/tmp/pgjdbc/org/postgresql [copy] Replacing: @JDBCCONNECTCLASS@ -> org.postgresql.jdbc3.Jdbc3Connection [copy] Replacing: @JDBCCONNECTCLASS@ -> org.postgresql.jdbc3.Jdbc3Connection [copy] Replacing: @JDBCCONNECTCLASS@ -> org.postgresql.jdbc3.Jdbc3Connection [copy] Replacing: @MAJORVERSION@ -> 7 [copy] Replacing: @MINORVERSION@ -> 5 [copy] Replacing: @VERSION@ -> PostgreSQL 7.5devel JDBC3 with NO SSL [copy] Replacing: @DEF_PGPORT@ -> 5432 [copy] Replacing: @SSL@ -> // [copy] Replacing: @SSL@ -> // [copy] Replacing: @SSL@ -> // [copy] Replacing: @SSL@ -> // [copy] Replacing: @SSL@ -> // [copy] Replacing: @SSL@ -> // [copy] Replacing: @SSL@ -> // [copy] Copying 1 file to /home/egagnon/tmp/pgjdbc/org/postgresql/util [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [copy] Replacing: @NOTJDK14@ -> // [echo] Configured build for the JDBC3 edition driver with NO SSL compile: [javac] Compiling 80 source files to /home/egagnon/tmp/pgjdbc/build examples: [javac] Compiling 8 source files to /home/egagnon/tmp/pgjdbc/build jar: [jar] Building jar: /home/egagnon/tmp/pgjdbc/jars/postgresql.jar [jar] Building jar: /home/egagnon/tmp/pgjdbc/jars/postgresql-examples.jar BUILD SUCCESSFUL Total time: 53 seconds $ ##### IMPORTANT ##### $ ##### Patch below must be applied or some other mechanism should be found to provide $ ##### a bootclasspath to Jikes. $ ##################### $ cvs diff Index: build.xml =================================================================== RCS file: /usr/local/cvsroot/pgjdbc/pgjdbc/build.xml,v retrieving revision 1.44 diff -u -r1.44 build.xml --- build.xml 16 Feb 2004 11:35:20 -0000 1.44 +++ build.xml 25 Apr 2004 15:22:18 -0000 @@ -116,7 +116,7 @@ <available classname="org.postgresql.Driver" property="old.driver.present" /> <fail message="Old driver was detected on classpath or in jre/lib/ext, please remove and try again." if="old.driver.present" /> - <javac classpath="{$srcdir}" srcdir="${srcdir}" destdir="${builddir}" debug="${debug}"> + <javac bootclasspath="/usr/share/sablevm/sablevm-classpath/" classpath="{$srcdir}" srcdir="${srcdir}" destdir="${builddir}" debug="${debug}"> <!-- This is the core of the driver. It is common for all three versions. --> <include name="${package}/*.java" /> <include name="${package}/core/**" /> @@ -275,7 +275,7 @@ <!-- This builds the examples --> <target name="examples" depends="compile"> - <javac srcdir="${srcdir}" destdir="${builddir}" debug="${debug}"> + <javac bootclasspath="/usr/share/sablevm/sablevm-classpath/" srcdir="${srcdir}" destdir="${builddir}" debug="${debug}"> <include name="example/**" /> <exclude name="example/corba/**"/> <exclude name="example/blobtest.java" if="jdbc1"/> @@ -289,7 +289,7 @@ <arg value="stock.idl" /> </exec> - <javac srcdir="${srcdir}" destdir="${builddir}" debug="${debug}"> + <javac bootclasspath="/usr/share/sablevm/sablevm-classpath/" srcdir="${srcdir}" destdir="${builddir}" debug="${debug}"> <include name="example/corba/**" /> </javac> </target> @@ -319,7 +319,7 @@ <!-- This compiles and builds the test jarfile. --> <target name="testjar" depends="jar" if="junit"> <mkdir dir="${builddir}/tests"/> - <javac srcdir="${srcdir}" destdir="${builddir}/tests" debug="${debug}"> + <javac bootclasspath="/usr/share/sablevm/sablevm-classpath/" srcdir="${srcdir}" destdir="${builddir}/tests" debug="${debug}"> <include name="${package}/test/**" /> <exclude name="${package}/test/jdbc2/**" unless="jdbc2tests"/> Have fun! Etienne -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: powerpc (ppc) Kernel: Linux 2.4.24-ben1 Locale: LANG=C, LC_CTYPE=C Versions of packages sablevm depends on: ii java-common 0.22 Base of all Java packages ii libc6 2.3.2.ds1-12 GNU C Library: Shared libraries an ii libpopt0 1.7-4 lib for parsing cmdline parameters ii libsablevm1 1.1.3-1 Free implementation of JVM second ii unzip 5.50-3 De-archiver for .zip files -- no debconf information -- Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |