NTP (xntp) on AIX 3.1.5
Scott Lawrence
lawrence at APS.Atex.Kodak.COM
Sat May 25 02:43:39 AEST 1991
I have been trying to bring up xntp (Network Time Protocol) on my
rs6000; it built fine after I made a small change to each of
ntp_unixclock.c and tickadj.c (IBM used 'hz' as a macro and stepped on
two variable definitions); patches below.
I have xntpd running on my Sun3s (SunOS 4.1).
ntpdate works on the 6k - it sets the time correctly from the server,
xntpd just dies silently.
tickadj says:
tickadj: namelist can't find `_tickadj'
tickadj: namelist can't find `_tick'
The command 'nm /unix | grep tick' found:
dog_ticks | 811464|unamex| | | |.data
dog_ticks_dflt | 811468|unamex| | | |.data
dog_ticks | 126432|extern| | | |.data
dog_ticks_dflt | 126440|extern| | | |.data
dog_ticks_opt | 811612|unamex| | | |.data
dog_ticks_opt | 1944152|extern| | | |.bss
.kgettickd | 146276|extern| | | |.data
.ksettickd | 146352|extern| | | |.data
.adj_tick | 146484|extern| | | |.data
tickadj | 811732|unamex| | | |.data
tickadj | 148288|extern| | | |.data
kgettickd | 148320|extern| | | |.data
ksettickd | 148332|extern| | | |.data
ticks_its | 811860|unamex| | | |.data
ticks_its | 1945360|extern| | | |.bss
Do I need to replace some symbol names somewhere in the build?
Thanks for any pointers.
-- Scott
Context diffs for changes:
*** ../xntp/xntpd/ntp_unixclock.c Wed Oct 25 22:53:06 1989
--- xntpd/ntp_unixclock.c Thu May 23 09:50:52 1991
***************
*** 15,20 ****
--- 15,28 ----
#include "ntp_unixtime.h"
#define CLOCK_ADJ 4
+ /*
+ * AIX defines hz as HZ, messing up variable usage below
+ * - Scott Lawrence <slawrence at Atex.Kodak.COM> May 23, 1991
+ */
+ #ifdef hz
+ #undef hz
+ #endif
+
extern int debug;
/*
*** ../xntp/util/tickadj.c Tue Nov 14 13:26:13 1989
--- util/tickadj.c Thu May 23 09:50:10 1991
***************
*** 11,16 ****
--- 11,24 ----
#include <sys/file.h>
#include <sys/stat.h>
+ /*
+ * AIX defines hz as HZ, messing up variable usage below
+ * - Scott Lawrence <slawrence at Atex.Kodak.COM> May 23, 1991
+ */
+ #ifdef hz
+ #undef hz
+ #endif
+
#define KMEM "/dev/kmem"
#define STREQ(a, b) (*(a) == *(b) && strcmp((a), (b)) == 0)
--
Scott Lawrence <lawrence at APS.Atex.Kodak.COM> Voice: {US} 508-670-4023
Atex Advanced Publishing Systems G3Fax: {US} 508-670-4033
Atex, Inc; 165 Lexington St. MS 400/165L; Billerica MA 01821
More information about the Comp.unix.aix
mailing list