Date: Tue, 04 Feb 1997 18:20:20 -0800 From: Steve Logue <logue@engr.orst.edu> To: stenn@whimsy.udel.edu Cc: Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>, John Hay <jhay@zibbi.mikom.csir.co.za>, freebsd-hackers@freebsd.org Subject: Re: xntp3-5.89.2 & FreeBSD 2.2-GAMMA won't compile Message-ID: <32F7EE64.1CFBAE39@engr.orst.edu> References: <9702041901.aa26048@whimsy.udel.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
stenn@whimsy.udel.edu wrote: > > It looks like I'll need to add this patch to the sys/timex.h file in the > xntpd distribution: > > --- timex.h- Sat Jul 15 04:06:10 1995 > +++ timex.h Sun Feb 2 02:56:21 1997 > @@ -284,6 +284,17 @@ > }; > #ifdef __FreeBSD__ > > +/* > + * sysctl identifiers underneath kern.ntp_pll > + */ > +#define NTP_PLL_GETTIME 1 /* used by ntp_gettime() */ > +#define NTP_PLL_MAXID 2 /* number of valid ids */ > + > +#define NTP_PLL_NAMES { \ > + { 0, 0 }, \ > + { "gettime", CTLTYPE_STRUCT }, \ > + } > + > #ifndef KERNEL > #include <sys/cdefs.h> > > Is there anything else I should add to the xntpd distribution to make > life easier for us? > > Harlan We must have gotten off on the wrong foot here. XNTPD's timex.h isn't the problem, FreeBSD's timex.h is. The currently shipping timex.h with xntp will compile when included in ntp_loopfilter.c instead of FreeBSD's timex.h, unaltered. Problems still lye somewhere else with regards to ntpq not working. I recompiled with this patch, and #include "../kernel/sys/timex.h" in ntp_loopfilter.c, but it still isn't talking to ntpq. Is this business of just magically changing to xntp's timex.h instead of FBSD's even prudent?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32F7EE64.1CFBAE39>