Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
./configure dies with ls -t errors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cyfred
Retired Dev
Retired Dev


Joined: 23 Aug 2002
Posts: 596

PostPosted: Wed Feb 05, 2003 10:58 pm    Post subject: ./configure dies with ls -t errors Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum