home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / mail / mh / 1402 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  7.4 KB

  1. Xref: sparky comp.mail.mh:1402 comp.sys.sgi:18129
  2. Newsgroups: comp.mail.mh,comp.sys.sgi
  3. Path: sparky!uunet!munnari.oz.au!mtiame!iconix!mwp
  4. From: mwp@iconix.oz.au (Michael Paddon)
  5. Subject: Patches for MH 6.7.2 on SGI IRIX 4.0.5
  6. Message-ID: <1992Dec17.052008.19171@iconix.oz.au>
  7. Sender: news@iconix.oz.au (USENET)
  8. Nntp-Posting-Host: krakatoa
  9. Organization: Iconix Pty Ltd (World Headquarters)
  10. Date: Thu, 17 Dec 1992 05:20:08 GMT
  11. Lines: 261
  12.  
  13. For those who may be having trouble...
  14.  
  15. I recently upgraded our MH installation to 6.7.2. As expected, MH
  16. didn't compile (or work) quite right out of the box. These patches
  17. bring the code up to a state where everything works right.
  18.  
  19. Current configuration:
  20.  
  21. -------------------------------------------------------------------------------
  22. version: MH 6.7.2 #13[UCI] (krakatoa) of Tue Dec 15 17:56:56 EST 1992
  23. options: [ATTVIBUG] [ATZ] [DUMB] [FOLDPROT='"0700"'] [IRIX] [LOCKF]
  24.          [MHRC] [MORE='"/usr/bsd/more"'] [MSGPROT='"0600"'] [NTOHLSWAP]
  25.          [OVERHEAD] [POP] [POP2] [POPSERVICE='"pop-3"'] [RPOP] [SENDMTS]
  26.          [SMTP] [SOCKETS] [SPRINTFTYPE=int] [SYS5] [SYS5DIR]
  27.          [TYPESIG='void'] [TZNAME] [UK]
  28. -------------------------------------------------------------------------------
  29.  
  30. Our MH file looks like this:
  31.  
  32. -------------------------------------------------------------------------------
  33. #
  34. # MH config for Iconix (SGI IRIX 4.0.5F)
  35. #
  36.  
  37. bin            /local/bin
  38. etc            /local/lib/mh
  39. mail        /usr/mail
  40. mandir        /local/man
  41. chown        /bin/chown
  42. remove        /bin/rm -f
  43. mts            sendmail/smtp
  44. pop            on
  45. options        ATTVIBUG ATZ DUMB FOLDPROT='"0700"' IRIX LOCKF MHRC MORE='"/usr/bsd/more"' MSGPROT='"0600"' NTOHLSWAP OVERHEAD POP2 POPSERVICE='"pop-3"' RPOP SOCKETS SYS5 SYS5DIR TYPESIG='void' TZNAME UK
  46. cc            cc
  47. ccoptions    -cckr -signed -O
  48. curses        -lcurses
  49. ldoptions    -O
  50. ldoptlibs    -lsun -lc_s
  51. sprintf        int
  52. ranlib        off
  53. -------------------------------------------------------------------------------
  54.  
  55. Also you'll need to apply these patches:
  56.  
  57. -------------------------------------------------------------------------------
  58. *** ./conf/makefiles/support/pop.dist    Tue Dec 15 14:38:04 1992
  59. --- ./conf/makefiles/support/pop    Tue Dec 15 17:32:59 1992
  60. ***************
  61. *** 195,200 ****
  62. --- 195,201 ----
  63.   
  64.   unclean:;    -rm -f z* _* :* core eddep makedep MAKEPOP
  65.   
  66. + .c:;
  67.   
  68.   ##############################################################################
  69.   #    Dependencies
  70. *** ./conf/makefiles/support/bboards.dist    Tue Dec 15 14:42:12 1992
  71. --- ./conf/makefiles/support/bboards    Tue Dec 15 17:32:50 1992
  72. ***************
  73. *** 260,265 ****
  74. --- 260,266 ----
  75.   
  76.   unclean:;    -rm -f z* _* :* core eddep makedep MAKEBB
  77.   
  78. + .c:;
  79.   
  80.   ##############################################################################
  81.   #    Dependencies
  82. *** ./conf/makefiles/zotnet/mf.dist    Tue Dec 15 14:46:01 1992
  83. --- ./conf/makefiles/zotnet/mf    Tue Dec 15 17:33:26 1992
  84. ***************
  85. *** 172,177 ****
  86. --- 172,178 ----
  87.   
  88.   unclean:;    -rm -f z* _* :* core eddep makedep MAKEMF
  89.   
  90. + .c:;
  91.   
  92.   ##############################################################################
  93.   #    Dependencies
  94. *** ./conf/makefiles/uip.dist    Tue Dec 15 14:43:37 1992
  95. --- ./conf/makefiles/uip    Tue Dec 15 17:32:12 1992
  96. ***************
  97. *** 1270,1275 ****
  98. --- 1270,1276 ----
  99.   #
  100.   #    If other includes are read, modify this rule to reflect this
  101.   
  102. + .c:;
  103.   
  104.   ##############################################################################
  105.   #    Dependencies
  106. *** ./h/local.h.dist    Tue Dec  8 11:22:32 1992
  107. --- ./h/local.h    Tue Dec  8 11:34:02 1992
  108. ***************
  109. *** 8,14 ****
  110. --- 8,18 ----
  111.   
  112.   #ifndef    BSD42
  113.   #ifndef NDIR
  114. + #ifdef IRIX
  115. + #include <dirent.h>
  116. + #else
  117.   #include <dir.h>
  118. + #endif IRIX
  119.   #else    NDIR
  120.   #include <ndir.h>
  121.   #endif  NDIR
  122. *** ./h/mh.h.dist    Tue Dec  8 12:56:29 1992
  123. --- ./h/mh.h    Tue Dec  8 12:56:50 1992
  124. ***************
  125. *** 344,350 ****
  126.   
  127.   /* miscellaneous */
  128.   
  129. ! #if !defined(BSD42) && !defined(hpux) && !defined(ncr)
  130.   #define    rename(f1,f2)    (link (f1, f2) != NOTOK ? unlink (f1) : NOTOK)
  131.   #endif    not BSD42
  132.   
  133. --- 344,350 ----
  134.   
  135.   /* miscellaneous */
  136.   
  137. ! #if !defined(BSD42) && !defined(hpux) && !defined(ncr) && !defined(IRIX)
  138.   #define    rename(f1,f2)    (link (f1, f2) != NOTOK ? unlink (f1) : NOTOK)
  139.   #endif    not BSD42
  140.   
  141. *** ./sbr/makedir.c.dist    Tue Dec  8 11:00:10 1992
  142. --- ./sbr/makedir.c    Tue Dec  8 11:20:09 1992
  143. ***************
  144. *** 19,24 ****
  145. --- 19,29 ----
  146.   #include <sys/param.h>
  147.   #include <sys/file.h>
  148.   #endif BDS42
  149. + #ifdef IRIX
  150. + #include <unistd.h>
  151. + #include <errno.h>
  152. + #include <sys/param.h>
  153. + #endif
  154.   #ifdef    SYS5DIR
  155.   #include <sys/types.h>
  156.   #include <sys/stat.h>
  157. *** ./support/pop/syslog.c.dist    Tue Dec 15 14:22:43 1992
  158. --- ./support/pop/syslog.c    Tue Dec 15 14:22:59 1992
  159. ***************
  160. *** 1,4 ****
  161. ! #if !defined (BSD43) && !defined(hpux)
  162.   #ifndef lint
  163.   static char SccsId[] =    "@(#)syslog.c    4.1 (Berkeley) 5/27/83";
  164.   #endif
  165. --- 1,4 ----
  166. ! #if !defined (BSD43) && !defined(hpux) && !defined(IRIX)
  167.   #ifndef lint
  168.   static char SccsId[] =    "@(#)syslog.c    4.1 (Berkeley) 5/27/83";
  169.   #endif
  170. *** ./support/pop/popd.c.dist    Wed Dec 16 13:16:21 1992
  171. --- ./support/pop/popd.c    Wed Dec 16 13:23:59 1992
  172. ***************
  173. *** 163,171 ****
  174.       if (bind (sd, (struct sockaddr *) isock, sizeof *isock) == NOTOK)
  175.       padios ("socket", "unable to bind");
  176.   
  177. ! #ifdef    SIGCHLD
  178.       (void) signal (SIGCHLD, chldser);
  179. ! #endif    SIGCHLD
  180.       (void) listen (sd, SOMAXCONN);
  181.   #ifdef    FAST
  182.       popinit ();
  183. --- 163,174 ----
  184.       if (bind (sd, (struct sockaddr *) isock, sizeof *isock) == NOTOK)
  185.       padios ("socket", "unable to bind");
  186.   
  187. ! #if defined (SIGCHLD) && !defined (IRIX)
  188.       (void) signal (SIGCHLD, chldser);
  189. ! #endif defined (SIGCHLD) && !defined (IRIX)
  190. ! #ifdef IRIX
  191. !     (void) signal (SIGCLD,SIG_IGN);
  192. ! #endif
  193.       (void) listen (sd, SOMAXCONN);
  194.   #ifdef    FAST
  195.       popinit ();
  196. ***************
  197. *** 185,193 ****
  198.       switch (fork ()) {
  199.           case OK: 
  200.           (void) close (sd);
  201. ! #ifdef    SIGCHLD
  202.           (void) signal (SIGCHLD, SIG_DFL);
  203. ! #endif    SIGCHLD
  204.           server (fd, osock);
  205.           _exit (0);
  206.   
  207. --- 188,196 ----
  208.       switch (fork ()) {
  209.           case OK: 
  210.           (void) close (sd);
  211. ! #if defined (SIGCHLD) && !defined (IRIX)
  212.           (void) signal (SIGCHLD, SIG_DFL);
  213. ! #endif defined (SIGCHLD) && !defined (IRIX)
  214.           server (fd, osock);
  215.           _exit (0);
  216.   
  217. ***************
  218. *** 331,337 ****
  219.   
  220.   /* ARGSUSED */
  221.   
  222. ! #ifdef    SIGCHLD
  223.   
  224.   static int chldser (sig, code, sc)
  225.   int    sig;
  226. --- 334,340 ----
  227.   
  228.   /* ARGSUSED */
  229.   
  230. ! #if defined(SIGCHLD) && !defined (IRIX)
  231.   
  232.   static int chldser (sig, code, sc)
  233.   int    sig;
  234. ***************
  235. *** 344,350 ****
  236.       continue;
  237.   }
  238.   
  239. ! #endif    SIGCHLD
  240.   
  241.   /*   */
  242.   
  243. --- 347,353 ----
  244.       continue;
  245.   }
  246.   
  247. ! #endif defined(SIGCHLD) && !defined (IRIX)
  248.   
  249.   /*   */
  250.  
  251. -------------------------------------------------------------------------------
  252.  
  253. Good luck! I'm happy to answer questions and I'd appreciate hearing of
  254. any problem areas I missed, but I must point out that I don't support these
  255. patches.
  256.  
  257.                                      Michael
  258.  
  259. -------------------------------------------------------------------------------
  260.  
  261.         II
  262.        IIII
  263.   IIIII    IIIII    Michael Paddon
  264.   IIIIII  IIIIII
  265.   IIIIIIIIIIIIII    Iconix Pty Ltd           Email: mwp@iconix.oz.au
  266.   IIII     IIIII    851 Dandenong Road,
  267.   IIIII    IIIII    East Malvern,
  268.   IIIII    IIIII    Victoria, 3145,          Telephone: +61 3 571 4244
  269.   IIIII    IIIII    Australia.               Facsimile: +61 3 571 5346
  270.   IIIII    IIIII
  271.   IIIII    IIIII    You totally killed us, you evil metal dickweeds!
  272.   III        III               --- Bill and Ted's Bogus Journey
  273.   IIIIIIIIIIIIII    
  274.