help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


From: Paul D. Smith
Subject: Re: (no subject)
Date: Fri, 4 Oct 2002 09:27:27 -0400

%% "Janney Mark-P26816" <address@hidden> writes:

  jm> It appears that the file system uses a different time source than
  jm> that used by GNU make and 'date' (which appears to be the library
  jm> routine, 'clock_gettime').

  jm> Do you have any idea how to get these two sources synchronized?

The problem is you're using a networked filesystem (most probably NFS).

On a networked filesystem, the time-last-modified timestamp is set by
the _server_, not the client [1].  But commands like date(1), etc. show
the system clock of the machine they're run on (the client), of course.

Thus, if your server and your client have two different ideas about the
time then you'll see these errors.

The only solution is to synchronize the clocks between your servers and
clients so all their system clocks are the same.  You can use simple
commands like rdate (probably you'll need to do this in a cron job to
keep the clocks in sync), or you can use a more accurate protocol like
NTP (Network Time Protocol); the software to implement both the server
and client sides of NTP is freely available.



[1] Note you can't duplicate this behavior with touch(1) on an existing
    file, because touch on an existing file explicitly _sets_ the time,
    so it's set according to the client's clock.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]