I am getting the same error on 2 different machines. There appears to be a problem with a configure file associated with xrootd (a recent change since I could compile before).
Both machines are running Ubuntu 7.10
The error I am getting is:
==> lib/libHbook.so done
Options to Xrootd-configure: i386_linux --ccflavour=gcc --use-xrd-strlcpy --disable-krb5 --with-ssl-shared=yes --enable-shadowpw --disable-krb4 --enable-echo --no-arch-subdirs --disable-mon --with-cxx=g++ --with-ld=g++
./configure.classic: 580: Syntax error: Bad substitution
*** Error condition reported by Xrootd-configure (rc = 2): rm -f net/xrootd/src/xrootd/GNUmakefile exit 1
*** Building xrootd ... topdir= /usr/local/root
make[1]: Entering directory `/usr/local/root/net/xrootd/src/xrootd'
make[1]: *** No targets specified and no makefile found. Stop.
make[1]: Leaving directory `/usr/local/root/net/xrootd/src/xrootd'
*** Error condition reported by make (rc = 2):
make: *** [net/xrootd/src/xrootd/LastBuild.d] Error 1
However, if compile on a machine running Ubuntu 9.04, it works fine. Any ideas of what I can do to compile on the older ubuntu??
What command did you run to check out?
The Xrootd in the SVN trunk is not the same as in 5.24 .
Line 580 of configure.classic is inside a case switch did not really change recently. And there is no substitution in there, as far as I can see. If you are not able to find the version, could you post your ‘configure.classic’ ?
Also, which past version of ROOT did you succeed to build successfully on Ubuntu 7.04?
I do get the same message from
So whatever version comes from issuing such a command.
Also, with (most recent) source from the xrootd website, I tried to compile it and I get the same thing. Seems like a dependency issue with configure???
I was using … ROOT 5.18/00 but 5.20/00 builds fine too.
However 5.22 gives the same errors as 5.24 ( both from source tar file )
I was able to reproduce the problem on 7.04 but unable to understand it, except for the fact that ubuntu 7.04 links /bin/sh to /bin/dash instead of /bin/bash, and when I change the sym link link /bin/sh to /bin/bash the problem disappears.
So the problem may be due to some old version of ‘dash’.
I am afraid this is the only advise we can give you, until the problem appears of some current platform.