home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / bsd / 11095 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  4.4 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!smurf.sub.org!easix!knobel!andreas
  2. From: andreas@knobel.GUN.de (Andreas Klemm)
  3. Newsgroups: comp.unix.bsd
  4. Subject: [386bsd] ELM-2.4.20 DIFFs, BILL JOLITZ, please read this
  5. Summary: elm diffs for 386bsd
  6. Keywords: 386bsd elm diffs
  7. Message-ID: <122@knobel.GUN.de>
  8. Date: 10 Jan 93 14:16:56 GMT
  9. Organization: Andreas Klemm, 4040 Neuss, Germany
  10. Lines: 146
  11.  
  12. Hello world !
  13.  
  14. [ Bill an Lynne Jolitz: Please read this, thank you ! ]
  15.  
  16. I didn't get elm 2.4 PL 20 compiled and running correctly under
  17. 386bsd. Since Syd Weinstein didn't want to include my fixes, because
  18. 386bsd is in the change, I'm posting it to this newsgroup in the
  19. hope it will be useful. Another reason is that some things should
  20. be fixed in 386bsd, not in elm !
  21.  
  22. HOW TO PATCH:
  23.  
  24. Apply my patches in elm's source directory _AFTER_ you ran Configure.
  25. That's important, because the file config.h in elm's top level
  26. directory, which is being build by the Configure script, has
  27. to be patched, too.
  28.  
  29. Then run:
  30.     patch -p -N < Thisfile
  31.  
  32. Here a summary of my fixes:
  33.  
  34. lib/opt_utils.c:
  35.     386bsd's ld is a bit rigid. It chokes on multiple defined
  36.     library functions. toupper and tolower are already included
  37.     in libc.a.
  38.     BTW: in PL58 all problems with toupper and tolower are fixed.
  39.     
  40.     Is ld's behaviour fixed in 386bsd 0.2 ?
  41.  
  42. lib/posixsig.c:
  43.     SIG_ERR isn't defined in 386bsd's header files.
  44.     Therefore '-1' used instead.
  45.     This define should be added in 386bsd's header files.
  46.  
  47. src/editmsg.c:
  48.     Configure (I think) found out, that this system has POSIX
  49.     signals. That's only partially true. in <setjump.h> there
  50.     are some comments, that sigsetjump, ... aren't already
  51.     supportet. Maybe in 0.2.
  52.     For this file (posixsig) POSIX_SIGNALS has to be undefined
  53.     and all seems to be ok.
  54.  
  55. config.h:
  56.     After running Configure you have to undefine TZNAME 
  57.     or you get a large negative number in the mailheader 
  58.     insted of the correct date.
  59.  
  60. Have fun with elm,
  61.  
  62. Bye
  63.  
  64.     Andreas
  65.     
  66. +-------------------------------------------------------
  67.  
  68. *** ./lib/opt_utils.c.orig    Wed Dec 30 00:13:50 1992
  69. --- ./lib/opt_utils.c    Wed Dec 30 00:14:22 1992
  70. ***************
  71. *** 205,211 ****
  72.   
  73.   #endif
  74.   
  75. ! #if defined(BSD) && !defined(_POSIX_SOURCE)
  76.   
  77.   /** some supplementary string functions for Berkeley Unix systems **/
  78.   
  79. --- 205,211 ----
  80.   
  81.   #endif
  82.   
  83. ! #if defined(BSD) && !defined(_POSIX_SOURCE) && !defined(____386BSD____)
  84.   
  85.   /** some supplementary string functions for Berkeley Unix systems **/
  86.   
  87. *** ./lib/posixsig.c.orig    Tue Dec 29 23:54:18 1992
  88. --- ./lib/posixsig.c    Tue Dec 29 23:56:39 1992
  89. ***************
  90. *** 73,79 ****
  91. --- 73,83 ----
  92.       sigemptyset(&oact.sa_mask);
  93.       if(sigaction(signo, &act, &oact))
  94.           /* If sigaction failed return -1 */
  95. + #if defined(____386BSD____)
  96. +         return(-1);
  97. + #else
  98.           return(SIG_ERR);
  99. + #endif
  100.       else
  101.               /* use the previous signal handler as a return value */
  102.           return(oact.sa_handler);
  103. *** ./src/editmsg.c.orig    Wed Dec 30 00:24:16 1992
  104. --- ./src/editmsg.c    Wed Dec 30 00:30:58 1992
  105. ***************
  106. *** 57,65 ****
  107.   #include "s_elm.h"
  108.   #include <errno.h>
  109.   #ifndef BSD
  110. ! /* BSD has already included setjmp.h in headers.h */
  111. ! #include <setjmp.h>
  112.   #endif /* BSD */
  113.   #include <ctype.h>
  114.   
  115.   #ifdef POSIX_SIGNALS
  116. --- 57,71 ----
  117.   #include "s_elm.h"
  118.   #include <errno.h>
  119.   #ifndef BSD
  120. ! #  include <setjmp.h>    /* BSD has already included setjmp.h in headers.h */
  121.   #endif /* BSD */
  122. + #ifdef ____386BSD____
  123. + #   include <setjmp.h>
  124. + #   undef POSIX_SIGNALS    /* read comments in <setjmp.h>: sigsetjmp,...    */
  125. +             /* are unsupported                */
  126. + #endif    /* 386BSD */
  127.   #include <ctype.h>
  128.   
  129.   #ifdef POSIX_SIGNALS
  130. *** config.h.orig    Sun Jan 10 14:11:11 1993
  131. --- config.h    Sun Jan 10 14:11:50 1993
  132. ***************
  133. *** 464,470 ****
  134.    */
  135.   #define    TZ_MINUTESWEST     /**/
  136.   
  137. ! #define    TZNAME    /**/
  138.   
  139.   /* USE_EMBEDDED_ADDRESSES:
  140.    *    This symbol, if defined, indicates that replyto: and from:
  141. --- 464,470 ----
  142.    */
  143.   #define    TZ_MINUTESWEST     /**/
  144.   
  145. ! /*#define    TZNAME    /**/
  146.   
  147.   /* USE_EMBEDDED_ADDRESSES:
  148.    *    This symbol, if defined, indicates that replyto: and from:
  149.  
  150. #EOF -- This file isn't truncated
  151. -- 
  152. ////// Andreas Klemm \\\\\\     /////// andreas@knobel.GUN.de \\\\\\\
  153. private : +49 2137 12609        D-4040 Neuss 21 (Norf), Germany
  154. at work : +49 2173 3964 165     Wiechers & Partner   Datentechnik GmbH
  155. Telefax : +49 2173 3964 222     Abteilung Unix Support, D-4019 Monheim
  156.