home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / protocol / time / ntp / 736 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  7.0 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!se.alcbel.be!gdha
  2. From: gdha@se.alcbel.be (Gratien D'haese)
  3. Newsgroups: comp.protocols.time.ntp
  4. Subject: NTP version 2 on ULTRIX 4.2
  5. Message-ID: <1101@se.alcbel.be>
  6. Date: 22 Jul 92 12:02:02 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Reply-To: gdha@se.alcbel.be
  9. Followup-To: comp.protocols.time.ntp
  10. Distribution: inet
  11. Organization: Alcatel Bell, Antwerpen, Belgium
  12. Lines: 162
  13.  
  14.  
  15.  
  16. Hey,
  17.     I'm trying to get NTP version 2 up and running correctly on
  18. ULTRIX 4.2 DECstations (3100 and 5000).
  19. I used the following setting in the "Config" file:
  20.  
  21. LIBDEFS=    -DLITTLE_ENDIAN
  22. DEFS= -DNODNS -DREFCLOCK -DSWAN
  23. CLOCKDEFS= -DLOCAL_CLOCK -DWWVB
  24. # (NOT necessary for Ultrix 4.2 - nlist() is part of libc.a) (gdha, 22/07/92)
  25. DAEMONLIBS= #-lmld
  26. RESLIB=
  27. COPTS= -O
  28. COMPILER= cc
  29. BINDIR= ../bin.`arch`
  30. =========================================
  31. I commented the line:
  32. typedef signed char s_char;
  33. in the file "include/ntp.h", because it was already defined through
  34. "sys/types.h"
  35.  
  36. /*
  37.  * ntp.h - NTP definitions for the masses
  38.  */
  39.  
  40. /*
  41.  * How to get signed characters.  On machines where signed char works,
  42.  * use it.  On machines where signed char doesn't work, char had better
  43.  * be signed.
  44.  */
  45. #if defined(NO_SIGNED_CHAR_DECL)
  46. typedef char  s_char;
  47. #else
  48. /* typedef signed char s_char; */
  49. #endif
  50. ========================================
  51. Compiling the sources gave me the following warnings:
  52.  
  53. cd lib ; make 
  54. cc -O -DLITTLE_ENDIAN -I../include -c authusekey.c
  55. ccom: Warning: authusekey.c, line 95: Shift of 24 is > object size of 8
  56.               key[0] = keybytes[0] << 24 | keybytes[1] << 16
  57.       -------------------------------------^
  58. ccom: Warning: authusekey.c, line 96: Shift of 16 is > object size of 8
  59.                   | keybytes[2] << 8 | keybytes[3];
  60.       --------------^
  61. ccom: Warning: authusekey.c, line 97: Shift of 24 is > object size of 8
  62.               key[1] = keybytes[4] << 24 | keybytes[5] << 16
  63.       -------------------------------------^
  64. ccom: Warning: authusekey.c, line 98: Shift of 16 is > object size of 8
  65.                   | keybytes[6] << 8 | keybytes[7];
  66.       --------------^
  67. cd xntpd ; make  xntpd
  68. cc -O -DNODNS -DREFCLOCK -DSWAN -I../include -c ntp_config.c
  69.  
  70. uopt: Warning: getconfig: this procedure not optimized because it
  71.       exceeds size threshold; to optimize this procedure, use -Olimit option
  72.       with value >=  516.
  73. cc -O -DNODNS -DREFCLOCK -DSWAN -I../include -c ntp_control.c
  74. ccom: Warning: ntp_control.c, line 677: Shift of 14 is > object size of 8
  75.           return (u_short)         ((((sys_leap)<< 14)&0xc000) |         (((
  76. clock)<<8)&0x3f00) |         ((( 
  77.       ----------------------------------------------------^
  78. cc -O -DNODNS -DREFCLOCK -DSWAN -DLOCAL_CLOCK -DWWVB -I../include -c
  79. refclock_wwvb.c
  80. ccom: Warning: refclock_wwvb.c, line 1238: & before array or function:
  81. ignored
  82.           refclock_receive(wwvb->peer, &off, delay, &wwvb->codetime,
  83.       -----------------------------------^
  84. cd xntpdc ; make  xntpdc
  85. cc -O -DNODNS -DREFCLOCK -DSWAN -I../include -c ntpdc.c
  86. ccom: Warning: ntpdc.c, line 882: illegal pointer combination
  87.                   oldintr = signal(    2    , abortcmd);
  88.       -----------------------------------------------------^
  89. cd ntpq ; make  ntpq
  90. cc -O -DNODNS -DREFCLOCK -DSWAN -I../include -c ntpq.c
  91. ccom: Warning: ntpq.c, line 1287: illegal pointer combination
  92.                   oldintr = signal(    2    , abortcmd);
  93.       -----------------------------------------------------^
  94. ===============================================
  95. When I run the authstuff/authcert <authstuff/certdata I get the
  96. following results:
  97.  
  98.  K: 0000000000000000 P: 0000000000000000 C: 8ca64de9c1b123a7 OK
  99.  K: ffffffffffffffff P: ffffffffffffffff C: 7359b2163e4edc58 OK
  100.  K: 3000000000000000 P: 1000000000000001 C: 958e6e627a05557b OK
  101.  K: 1111111111111111 P: 1111111111111111 C: f40379ab9e0ec533 OK
  102.  K: 0123456789abcdef P: 1111111111111111 C: 17668dfc7292532d OK
  103.  K: 1111111111111111 P: 0123456789abcdef C: 8a5ae1f81ab8f2dd OK
  104.  K: 0000000000000000 P: 0000000000000000 C: 8ca64de9c1b123a7 OK
  105.  K: fedcba9876543210 P: 0123456789abcdef C: ed39d950fa74bcc4 OK
  106.  K: 7ca110454a1a6e57 P: 01a1d6d039776742 C: 690f5b0d9a26939b OK
  107.  K: 0131d9619dc1376e P: 5cd54ca83def57da C: 7a389d10354bd271 OK
  108.  K: 07a1133e4a0b2686 P: 0248d43806f67172 C: 868ebb51cab4599a OK
  109.  K: 3849674c2602319e P: 51454b582ddf440a C: 7178876e01f19b2a OK
  110.  K: 04b915ba43feb5b6 P: 42fd443059577fa2 C: af37fb421f8c4095 OK
  111.  K: 0113b970fd34f2ce P: 059b5e0851cf143a C: 86a560f10ec6d85b OK
  112.  K: 0170f175468fb5e6 P: 0756d8e0774761d2 C: 0cd3da020021dc09 OK
  113.  K: 43297fad38e373fe P: 762514b829bf486a C: ea676b2cb7db2b7a OK
  114.  K: 07a7137045da2a16 P: 3bdd119049372802 C: dfd64a815caf1a0f OK
  115.  K: 04689104c2fd3b2f P: 26955f6835af609a C: 5c513c9c4886c088 OK
  116.  K: 37d06bb516cb7546 P: 164d5e404f275232 C: 0a2aeeae3ff4ab77 OK
  117.  K: 1f08260d1ac2465e P: 6b056e18759f5cca C: ef1bf03e5dfa575a OK
  118.  K: 584023641aba6176 P: 004bd6ef09176062 C: 88bf0db6d70dee56 OK
  119.  K: 025816164629b007 P: 480d39006ee762f2 C: a1f9915541020b56 OK
  120.  K: 49793ebc79b3258f P: 437540c8698f3cfa C: 6fbf1cafcffd0556 OK
  121.  K: 4fb05e1515ab73a7 P: 072d43a077075292 C: 2f22e49bab7ca1ac OK
  122.  K: 49e95d6d4ca229bf P: 02fe55778117f12a C: 5a6b612cc26cce4a OK
  123.  K: 018310dc409b26d6 P: 1d9d5c5018f728c2 C: 5f4c038ed12b2e41 OK
  124.  K: 1c587f1c13924fef P: 305532286d6f295a C: 63fac0d034d9f793 OK
  125.  K: 0101010101010101 P: 0123456789abcdef C: 617b3a0ce8f07100 OK
  126.  K: 1f1f1f1f0e0e0e0e P: 0123456789abcdef C: db958605f8c8c606 OK
  127.  K: e0fee0fef1fef1fe P: 0123456789abcdef C: edbfd1c66c29ccc7 OK
  128.  K: 0000000000000000 P: ffffffffffffffff C: 355550b2150e2451 OK
  129.  K: ffffffffffffffff P: 0000000000000000 C: caaaaf4deaf1dbae OK
  130.  K: 0123456789abcdef P: 0000000000000000 C: d5d44ff720683d0d OK
  131.  K: fedcba9876543210 P: ffffffffffffffff C: 2a2bb008df97c2f2 OK
  132.  ==============================================
  133.  My "ntp.conf" file looks like:
  134.  
  135. #
  136. #    NTP v2 configuration file
  137. #
  138. #    stratum 3 machine (synchronizes with stratum 2 machines)
  139. #
  140.  
  141. peer 138.203.32.1
  142. peer 138.203.32.33
  143.  
  144. driftfile /etc/ntp.drift
  145.  
  146. monitor no
  147. ================================================
  148. I can succesfuly execute "tickadj", "ntpdate". But when I start
  149. "xntpd" I see the following errors in the syslog file:
  150.  
  151. Jul 22 11:34:23 localhost: 18410 xntpd: xntpd version 1.3
  152. Jul 22 11:34:24 localhost: 18410 xntpd: Unknown kernal var dosynctodr
  153. Jul 22 11:34:28 localhost: 18410 xntpd: sendto(1.32.203.138): Network is
  154. unreachable
  155. Jul 22 11:34:32 localhost: 18410 xntpd: sendto(33.32.203.138): Network
  156. is unreachable
  157. Jul 22 11:35:32 localhost: 18410 xntpd: sendto(1.32.203.138): Network is
  158. unreachable
  159. Jul 22 11:35:36 localhost: 18410 xntpd: sendto(33.32.203.138): Network
  160. is unreachable
  161.  
  162. There are two problems, one the "Unknown kernal var dosynctodr" and that
  163. the IP addresses
  164. get mirrored (is this caused by an incorrect shift?).
  165.  
  166. Furthermore, I do NOT get these problems on SUNS (SS2 and 6/90MP).
  167.  
  168. Can somebody give me some hints on how to build NTP on Ultrix??
  169. Regards/Gratien
  170.  
  171. --
  172.   _______         Gratien D'haese    Switching Systems Division  se121
  173.   \     /Alcatel              F. Wellesplein 1, B-2018 Antwerpen
  174.    \   /  Bell        e-mail: gdha@se.alcbel.be    Phone: (32) 3 240 94 51
  175.     \/ Telephone        gdha@alcbel.be          Fax:   (32) 3 240 99 50
  176.