Bootstrap bug

I did an anonymous CVS checkout of libwww today (our time) as described in 
the w3 pages into ~/w3library; the checkout created the subdirectory 
libwww.

I created a script:
#!/bin/bash -x
export PATH=/opt/egcs3/bin:$PATH
cd libwww
perl config/winConfigure.pl || exit $?
aclocal || exit $?
autoheader || exit $?
automake || exit $?
autoconf || exit $?
rm -rf build
mkdir build
cd build
../configure --prefix=/usr --with-gnu-ld  --with-regex --with-zlib
sleep 40
make || exit $?

(the sleep overcomes a mismatch in times between my NFS server and my 
workstation; it has no relevant effect on the build process).
The final make fails:
Making all in User
make[3]: Entering directory `/u02/summer/w3library/libwww/build/Library/Use
r'
(cd ../../../Library/User && \
perl ../../../config/makeindx.pl ../src/ ../src/WWW*.html > 
../../../Library/User/Extrnals.html)
/bin/sh: ../../../Library/User/Extrnals.html: No such file or directory
make[3]: *** [Extrnals.html] Error 1
make[3]: Leaving directory `/u02/summer/w3library/libwww/build/Library/User
'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/u02/summer/w3library/libwww/build/Library'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/u02/summer/w3library/libwww/build'
make: *** [all-recursive-am] Error 2
+ exit 2

After some head-scratching and assorted stuffing around, I find that ite 
build process is running the perl script in the wrong directory:
(cd ../../../Library/User &&pwd&& perl ../../../config/makeindx.pl ../src/ 
../src/WWW*.html > ../../../Library/User/Extrnals.html)

I copied the failing command and added 'pwd' to see what it's doing.


This fails on Red Hat Linux 5.x and 6.1 (and I expect, on every other 
platform).

Doubtless it will work if I don't build 'using a different directory.' I 
prefer to use the different directory as it highlights everything that's 
created.



-- 
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.

Received on Monday, 21 February 2000 10:12:14 UTC