cyfred Retired Dev
Joined: 23 Aug 2002 Posts: 596
|
Posted: Wed Feb 05, 2003 10:58 pm Post subject: ./configure dies with ls -t errors |
|
|
Hello
Ive been re-compiling things on my old P 75 laptop running Slack 8.1 (I know its not gentoo, but im using optimisations, etc so am thinking that here is just a good a place to ask as it is more a bash error anyways). Everything seemed to be going ok until after I recompiled fileutils now every ./configure script that I run dies complaining that the time stamp of various files are wrong.
Ive been reading through the configure scripts and found that this section
Code: |
if (
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
if test "$*" = "X"; then
# -L didn't work.
set X `ls -t $srcdir/configure conftestfile`
fi
if test "$*" != "X $srcdir/configure conftestfile" \
&& test "$*" != "X conftestfile $srcdir/configure"; then
# If neither matched, then we have a broken ls. This can happen
# if, for instance, CONFIG_SHELL is bash and it inherits a
# broken ls alias from the environment. This has actually
# happened. Such a system could not be considered "sane".
{ echo "configure: error: ls -t appears to fail. Make sure there is
not a broken alias in your environment" 1>&2; exit 1; }
fi
test "$2" = conftestfile
)
then
# Ok.
:
else
{ echo "configure: error: newly created file is older than distributed
files! Check your system clock" 1>&2; exit 1; }
fi
|
Is what is responsible for the errors, and that the actual problem lies in the fact that when the second if is evaluated
Code: |
if test "$*" != "X $srcdir/configure conftestfile" \
&& test "$*" != "X conftestfile $srcdir/configure"; then
|
The $srcdir variable is not actually evaluated as a variable, but as pure straight text. As there is no file in the current path labeled "$srcdir/configure" the if statements evaluate false and configure dies.
Now I can manually go through and remove the $srcdir references, but for
every configure file in every package on my system that may be a little
tedious. So does anyone know why these experesions succeeded before I built fileutils again, and why they do not succeed now? And what do I do to allow the configure scripts to finish again? |
|