1. Hey Guest Did you know you can win an Honor 10 phone worth ₹33,000 and an additional ₹70,000 in paytm vouchers, just by replying to some threads and taking part in the discussions happening in the Honor Hub?

    What are you waiting for? Start commenting and start winning! Remember to read the instructions posted here.

    Dismiss Notice

problem with system date in FC4

Discussion in 'Open Source' started by legolas, Feb 28, 2006.

Thread Status:
Not open for further replies.
  1. legolas

    legolas New Member

    Joined:
    Feb 8, 2005
    Messages:
    959
    Likes Received:
    0
    Trophy Points:
    0
    hi guys,

    I use FC4 and while installing, i forgot to set the date.... by mistake, it has been set to 2007!!! and i hav been working on it for arnd a week... after that i noticed the date problem and reverted back to the original date. now that, this is done, when i try to install some software with the commands say,

    ./configure
    make
    make install

    i get this error....

    pls help me with this... its really important... should i change the dates of the already installed directories(which have dates 2007) ??? if so how to? any alternatives?

    /legolas
     
  2. ujjwal

    ujjwal New Member

    Joined:
    Dec 1, 2003
    Messages:
    780
    Likes Received:
    0
    Trophy Points:
    0
    First, you should try restarting once and trying to compile the program again, as restarting will recreate all files in /dev ...

    Else, you can change dates of files in your system using the "touch" command. Running 'touch *' in a directory will set all files in the current directory to have the current system date as their modificaction date.

    As you need to change the dates of all files in the system, you will need a simple loop to do it, something like running

    Code:
    for i in `find` ; do touch $i ; done
    
    In the / directory.

    But be careful, running this changes all dates and may have a bad affect on some applications/processes. Also you should unmount all drives before running this.
     
  3. GNUrag

    GNUrag FooBar Guy

    Joined:
    Jun 22, 2004
    Messages:
    1,246
    Likes Received:
    5
    Trophy Points:
    0
    Location:
    Interwebs
    Ujjwal, why go into a for loop when find itself can execute commands upon its output?

    Code:
     $ find . -exec touch {} \; 
     
  4. ujjwal

    ujjwal New Member

    Joined:
    Dec 1, 2003
    Messages:
    780
    Likes Received:
    0
    Trophy Points:
    0
    I wasn't aware of that, thanks for the info :)
     
  5. OP
    OP
    legolas

    legolas New Member

    Joined:
    Feb 8, 2005
    Messages:
    959
    Likes Received:
    0
    Trophy Points:
    0
    i restarted and recompiled... but stil it says... WARNING: <filename> is upated 1.1e 03 seconds in future... or something... and at the end it says

    warning: clock skew detected: your build may be incomplete

    can i use that command u gave to reset the dates? wil that be of any real harm? y should i unmount the drives?

    /legolas
     
  6. GNUrag

    GNUrag FooBar Guy

    Joined:
    Jun 22, 2004
    Messages:
    1,246
    Likes Received:
    5
    Trophy Points:
    0
    Location:
    Interwebs
    Note: True programmers never worry about WARNINGS ... Then only worry if its an ERROR

    GCC/Makefile uses source file's timestamp to determine which files need to be recompiled, and which have been edited. I guess Ujjwal's trick might just work!
     
  7. OP
    OP
    legolas

    legolas New Member

    Joined:
    Feb 8, 2005
    Messages:
    959
    Likes Received:
    0
    Trophy Points:
    0
    I worry coz i dont get it compiled!!! and after trying many times. that makes me think there is some prob with this only. thks anyway.

    /legolas
     
Thread Status:
Not open for further replies.

Share This Page