Re: <sys/timex.h> and NTP incompatibility (MOD_NANO)

From: Vitezslav Samel
Date: Mon Feb 01 2016 - 03:24:47 EST


Hi!

On Mon, Feb 01, 2016 at 08:38:09AM +0100, Ulrich Windl wrote:
> Hi folks!
>
> I'd wish ntp_loopfilter.c would compile without problems. The mess is
> (I had fixed it about 15 years ago (keyword "PPSkit")) that Linux uses
> ADJ_* flags to do traditional adjtime() things, as well as NTP
> kernel-related things (That's why the Linux syscall is named
> adjtimex()).
> NTP however expects the flags to have names like MOD_* to modify
> settings, and STA_* for status bits to test.
>
> When <sys/timex.h> lacks a MOD_NANO, but has a STA_NANO, compilation
> of ntpd/ntp_loopfilter.c fails.

This (userspace) header from glibc package was fixed back in Nov 2009
and was included in glibc-2.12 release dated May 2010. Seems like you
are using very old glibc package. Upgrade first and check again.

Cheers,
Vita