Re: [chrony-users] on MacOSX |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] on MacOSX
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Wed, 12 Aug 2015 06:16:46 +1200
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=a0-2; h=Feedback-ID:X-Smtpcorp-Track:To:Message-Id:Date: From:Subject; bh=PjcQb3eFt4cgkEawof07O6grPBln4ImZqarEAhW4G1Y=; b=UDwq1PvMszyU 9kX8L8C0pSFr5Een/2D8R9s5ZyMFiK5O7RHf+T53ir75JFsDElv6e5oW/RG1t6IetC/GN0v59Ciec VMDfxipf9hysVDthCTIK69HMGVU3c5lONperJvh7KyWNX/jgtSxCD567AApC5pBKTKtofbUDVX2Yi usfQERtEeoYWXnnL261R6zN0UpFGeLioBMORz3IAFF4jYHq6M1FEzWM527rBSIVl/5Dx1eaz0sdsS gTlwRvNBORXkLlu36zmX4lLR1sEq504M58SHgKWgftyX403kejQh5Af8ayMGX8g5byz5OTgKLOaEh E+UnXAlzhCsaNK7sKBVn7g==;
- Feedback-id: 149811m:149811acx33YQ:149811s3WGcqo4n5:SMTPCORP
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.