[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-users] on MacOSX
- From: toshinao <padoauk@xxxxxxxxx>
- Date: Wed, 12 Aug 2015 02:21:03 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=3Nviuj/tsGCvSjIjXYRb22sGsTCJ60v+eSj17YR6g7Y=; b=YC2jN84WW86XsxZY/asTgqj2WhTGHev0VRzaIH8Z9L9FX33Zb0odJumnbw+7+0Bl2e b3I5id+ZQGE3fmVjuCkqGI4ip3sXVP8Xlx6Zj3Lz45JDWNievhOVsC6JmotwVHUzx05P UM4t2WP542ospiZQIsr8vWAD2nFpy1ylpxj3NCjlJ0V8GVuXcZWojMOaOGs1yD4LG2pC hnJzZtGhowcBupwsfwob5qeNlQAmj9ZpzxIOpV1fM1JFiPG+CDV/S6njYRbma8Dkzsfi 8ug5ZxPFM7JLgxdCkpwfNpvpXrGs64nFfPTv4vgCcJ9whmN8jEtn4pFE+L1bZHmKxuJr 1Znw==
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.
(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;
(lldb) print delta
(long) $0 = 0
(lldb) print tickdelta
(long) $1 = 0
# gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
--
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.