NTP and uClibc

Mike Frysinger vapier at gentoo.org
Mon Jul 20 13:26:36 UTC 2009


On Thursday 04 December 2008 17:52:33 Michael Deutschmann wrote:
> One of the new configure options in uClibc-0.9.30, UCLIBC_NTP_LEGACY,
> controls the ntp_gettime() and ntp_adjtime() calls, which are only used by
> the NTP daemon.
>
> You should be aware that stock ntp-4.2.4p5, the current version, will in
> fact not compile on uClibc no matter how that flag is set.
>
>
> The problem is that ntp requires the call "__adjtimex".  If __adjtimex is
> not detected, the "tickadj" utility will fail to build on Linux.  (It
> falls back to a hack it uses on non-Linux kernels, and uClibc doesn't
> supply the headers it would need for that.)
>
> uClibc has "adjtimex", which has identical semantics (so far as I know),
> but NTP and its configure script won't use that.  The two underscores are
> mandatory.  So to get ntpd to work on uClibc, I have to supply a shim
> library that translates __adjtimex() to adjtimex().
>
> The good news is that if __adjtimex() is available, NTP can be fully
> functional without the ntp_???time() calls.
>
>
> So, in the next version of uClibc, I recommend changing "adjtimex" to
> "__adjtimex", and removing the ntp_???time calls entirely.

upstream ntp has a bug report already:
https://support.ntp.org/bugs/show_bug.cgi?id=769
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20090720/3ef5972d/attachment-0001.pgp>


More information about the uClibc mailing list