On Mon, 3 Jan 2000, Bill Carlson wrote:
> On Mon, 3 Jan 2000, Marcel de Reuver wrote:
>
> > Hi,
> >
> > Since 1 Jan 2000 on a RedHat 5.1 system hwclock aborts with the
> > following error:
> >
> > mktime() failed unexpectedly (rc -1). Aborting.
> >
>
> I have seen this on all my 5.x boxes. I would guess it is a problem in
> hwclock, most likely it is not passing 100 to the mktime for year 2000 (
> the year is supposed to be number of years since 1900). It could be
> problem in glibc, which provides mktime().
>
I have been examining the source for the hwclock that comes with 5.2, one
thing to try is passing hwclock a debug flag to see what it is seeing from
the BIOS:
hwclock --debug -r
I patched the source to correctly get the date as it should be and then
wrote back to the BIOS. At this point my patch failed to reread the clock.
Why? Because the BIOS was one that failed to rollover at Y2K, once the
century byte was correctly updated, the original hwclock worked fine.
I suppose I could have downed the machine, reset the BIOS and brought it
back up, but where is the fun in that? :) This way my uptime is still
intact!
Bill Carlson
------------
Systems Programmer [EMAIL PROTECTED] | Opinions are mine,
Virtual Hospital http://www.vh.org/ | not my employer's.
University of Iowa Hospitals and Clinics |
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.