Compilation error when I run Bash configuration command

Hi,

I downloaded source code file from The GNU website and changed the source code of ls.c file, added printf command to it. It worked fine. Then, I deleted the printf command, saved the file and ran the command 'make sudo && make install' closed the terminal and printf statement went away.

I tried to repeat above steps but this time when I added printf statement and run 'Bash configuration' command, it gave me this error:

checking for a BSD-compatible install... /usr/local/bin/install -c
checking whether build environment is sane... configure: error: ls -t appears to fail.* Make sure there is not a broken
alias in your environment
configure: error: newly created file is older than distributed files!
Check your system cloc
alias in your environment
configure: error: newly cre</pre>

I tried fixing it with touch command - Touch configuration. It did not work.

Thanks for your help in advance!
Akanksha

Did you do a make clean after you made the changes?

Often, when changes are made, it is good to let make delete all the compiled shared libs, etc. before doing another make .

make clean