/contrib/ntp/html/build/hints/aix

https://bitbucket.org/freebsd/freebsd-head/ · #! · 76 lines · 68 code · 8 blank · 0 comment · 0 complexity · ee93cf22585432f6579bc98f23f7e3de MD5 · raw file

  1. Problem with recent ANSI compilers
  2. On some systems, including AIX, the compiler quits on the ntp_refclock.c
  3. file when processing the refclock_report() routine. The problem, which
  4. is eithre a feature or a bug, has to do with an unwanted promotion of
  5. the u_char argument to an int and a failure of the compiler to recognize
  6. the preceding prototype. A workaround is to use ANSI syntax to delare
  7. the arguments. Since ANSI compilers are not universally available, this
  8. syntax can't be used in the stock distribution.
  9. (Message # 60: 2884 bytes, New)
  10. Date: Sat, 19 Aug 1995 13:20:50 -0400
  11. From: "R. Bernstein" <rocky@panix.com>
  12. Newsgroups: comp.protocols.time.ntp
  13. to: mills@udel.edu
  14. return-receipt-to: rocky@panix.com
  15. Subject: time and AIX 3.2.5 raw tty bug
  16. This posting isn't strictly about NTP, any program that may stop the
  17. clock or set the clock backwards is subject to the AIX 3.2.5 bug.
  18. On AIX 3.2.5, there is a bug in the tty driver for a raw device which
  19. may crash the box under certain conditions: basically a read() on a
  20. raw tty in effect, a character was read but not as many as specified
  21. by VMIN when a read timeout occurred. VTIME specifies the timeout. See
  22. the AIX manual page on termios.h or that include file. for Information
  23. on VMIN (or MIN) VTIME (or TIME).
  24. A remedy other than to not use raw tty's is to apply patch U435110.
  25. Details of the problem report follow.
  26. > ABSTRACT:
  27. > IX43779: TRAP IN PSX_TIMEO
  28. >
  29. > ORIGINATING DETAILS:
  30. > Stacktrace shows:
  31. > IAR: 01460214 posixdd:psx_timeo + 8bf4: ti 4,r12,0x0
  32. > *LR: 014601a0 posixdd:psx_timeo + 8b80
  33. > 00212c60: 014604f4 posixdd:psx_timer + 8ed4
  34. > 00212cc0: 0144b74c ttydd:tty_do_offlevel + 4284
  35. > 00212d20: 000216fc .i_offlevel + 8c
  36. > 00212d70: 00021d78 .i_softint + c8
  37. > 00001004: 00008714 .finish_interrupt + 80
  38. >
  39. > RESPONDER SUMMARY:
  40. > AIX asserted in psx_timeo(). Reason for the assert was that
  41. > the current time was behind psx_ctime. Since this state
  42. > can occur when the current time is changed after a character
  43. > is received but before the VTIME interbyte timer pops, we
  44. > should not assert on this.
  45. >
  46. > RESPONDER CONCLUSION:
  47. > Removed the requirement that current time > psx_ctime by
  48. > adding a new L_ntimersub macro that is used instead of the
  49. > ntimersub macro in time.h. Also added a test for (current
  50. > time - psx_ctime) being negative, in that case we do not
  51. > adjust the new timeout.
  52. >
  53. > Reported to Correct a PTF in Error: NO
  54. > Reported as a Highly pervasive problem: NO
  55. >
  56. > PE Apar?: NoPE
  57. > Hiper Apar?: NoHiper
  58. > Status: CLOSED PER
  59. > Component Name: AIX V3 FOR RS/6
  60. > Version: 320
  61. > Component ID: 575603001
  62. > Submitted: 94/05/03
  63. > Closed: 94/05/05
  64. > ChangeTeam: TX2527
  65. >
  66. > APAR FIXED BY: U431696 U432151 U432844 U432870 U432979
  67. > U433049 U433081 U433459 U433876 U433906 U434598 U434453
  68. > U434672 U434737 U435110