Problem building from CVS

From: John Summerfield <pgtest(at)os2(dot)ami(dot)com(dot)au>
To: <pgsql-bugs(at)postgresql(dot)org>
Subject: Problem building from CVS
Date: 2001-10-06 12:24:35
Message-ID: Pine.LNX.4.33.0110061922150.26861-100000@numbat.os2.ami.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


This has me foxed.

I can build the source on one machine, Numbat.

On another, Dugite it fails. I'm using the same script (copied from Numbat
to Dugite for the occasion).

Both systems are running Red Hat Linux; Dugite was upgraded from RHL 6.2,
Numbat was a fresh install.

I'm building from a tarball I created from my most recent CVS update. The
tarball is on an NFS-shared filesystem, so it's the same tarball in both
instances.

I built the same source tree on Numbat a short while before I set about
building it on Dugite.

Here is the script:
[pgtest(at)numbat pgtest]$ cat bin/pg.build
#!/bin/bash
PREFIX=${HOME}/postgresql
export JAVA_HOME=/opt/IBMJava2-13
set -e
cd /tmp/
JAVA=--with-java
#JAVA=
rm -rf pgsql
tar xf ~summer/cvs/pgsql.tar.bz2 --bzip2
cd pgsql/
./configure --prefix=${PREFIX} \
--with-perl \
--with-tcl \
--with-odbc \
--with-python \
--with-pgport=5433 \
--with-CXX \
--enable-syslog \
--enable-debug \
--enable-cassert \
${JAVA} \
--sysconfdir=${HOME}/postgresql/pgsql/etc \
--datadir=${HOME}/postgresql/pgsql
make -s
make -s -C doc
make -s check
rm -rf ${PREFIX}
make -s install
make -s install-all-headers
# ake -s dist
ls -l
cd ..
#rm -rf pgsql
[pgtest(at)numbat pgtest]$

It fails like this:
configure:1946: checking for jakarta-ant
configure:1946: checking for ant
configure:1983: checking whether /usr/bin/ant works
configure:2006: /usr/bin/ant -buildfile conftest.xml 1>&2
Buildfile: conftest.xml
Project base dir set to: /tmp/pgsql
Executing Target: conftest
BUILD FATAL ERROR: destdir attribute must be set!
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>
~
~
~
I've not checked closely, but to the point of this line
Buildfile: conftest.xml

the config.log files seem identical. At least, there's no failure to that
point.

Both systems have the same version of ant - I already fixed that problem.
[pgtest(at)numbat pgtest]$ rpm -q ant; ssh dugite rpm -q ant
ant-1.3-4
ant-1.3-4
[pgtest(at)numbat pgtest]$

They have different versions of IBM Java2:
[pgtest(at)numbat pgtest]$ ssh dugite rpm -qa | grep IBM
IBMJava2-SDK-1.3-7.0
[pgtest(at)numbat pgtest]$ rpm -qa | grep IBM
IBMJava2-SDK-1.3-5.0
[pgtest(at)numbat pgtest]$

Note that on Dugite, where the build fails, I have the newer Java.

In desperation, and because it's all I can see, I updated Dugite to the
older Java.

Still the build fails in the same way.

fwiw the rpm postgresql-7.1.3-1PGDG.src.rpm builds just fine on
Dugite - the software set is adequate for that task.

Browse pgsql-bugs by date

  From Date Subject
Next Message Jason Spence 2001-10-06 22:22:52 [tim@perdue.net: Re: mysql2pgsql tool]
Previous Message Siim Valgeväli 2001-10-06 07:48:08 Small bug report ...