Re: [chrony-users] on MacOSX

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


Nice that you tried it. Both issues you raised are fixed in git

git clone git://git.tuxfamily.org/gitroot/chrony/chrony.git

> On 12/08/2015, at 5:21 am, toshinao <padoauk@xxxxxxxxx> wrote:
> 
> Hi.
> 
> I noticed chrony supports MacOSX recently. There’s no reason not to try. Here’s report of what I found.
> 
> To sum up, (1) I have to modify two lines of configure (2) chronyd works fine on 10.10 but not on 10.9,
> which may be a minor problem for many users.
> 
> 
> (1) Command “echo -n” in configure script must be “/bin/echo -n” to generate correct config.h.
> This is same in 10.9 and 10.0. I do know know why.

That issue has been fixed in git.
Workaround is to use 'bash ./configure'. POSIX echo doesn't generate line feeds.

> 
> (2) On 10.9, chronyd does not run becuase of Floating point exception. Chronyd runs n 10.10 without
> any errors.
> 
> 
> # /usr/local/sbin/chronyd -d -d -f /usr/local/etc/chrony.conf
> 2015-08-11T15:48:40Z main.c:440:(main) chronyd version 2.1.1 starting (+CMDMON +NTP +REFCLOCK -RTC -PRIVDROP -DEBUG +ASYNCDNS +IPV6 -SECHASH)
> Floating point exception: 8
> 
> # lldb chronyd
> (lldb) target create "chronyd"
> Current executable set to 'chronyd' (x86_64).
> (lldb) run -d -f /usr/local/etc/chrony.conf
> Process 7720 launched: ‘/usr/local/sbin/chronyd' (x86_64)
> 2015-08-11T15:49:39Z chronyd version 2.1.1 starting (+CMDMON +NTP +REFCLOCK -RTC -PRIVDROP -DEBUG +ASYNCDNS +IPV6 -SECHASH)
> Process 7720 stopped
> * thread #1: tid = 0x743e, 0x000000010001a089 chronyd`start_adjust + 297 at sys_macosx.c:142, queue = 'com.apple.main-thread', stop reason = EXC_ARITHMETIC (code=EXC_I386_DIV, subcode=0x0)
>    frame #0: 0x000000010001a089 chronyd`start_adjust + 297 at sys_macosx.c:142
>   139         tickdelta = 10 * kern_tickadj;
>   140       else
>   141         tickdelta = kern_tickadj;
> -> 142       if (delta % tickdelta)
>   143         delta = delta / tickdelta * tickdelta;
>   144       newadj.tv_sec = 0;
>   145       newadj.tv_usec = (int)delta;

This section of code has been removed in git and adjustment is now calculated differently.

Regards
Bryan Christianson


--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/