home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume16 / ecu3 / patch03 < prev    next >
Encoding:
Internet Message Format  |  1991-02-02  |  5.4 KB

  1. From: wht@n4hgf.Mt-Park.GA.US (Warren Tucker)
  2. Newsgroups: comp.sources.misc
  3. Subject: v16i087:  ECU 3 Patch 3
  4. Message-ID: <1991Jan29.013042.21760@sparky.IMD.Sterling.COM>
  5. Date: 29 Jan 91 01:30:42 GMT
  6. Approved: kent@sparky.imd.sterling.com
  7. X-Checksum-Snefru: faf3baa9 ed605494 3f888a36 32c32e46
  8.  
  9. Submitted-by: wht@n4hgf.Mt-Park.GA.US (Warren Tucker)
  10. Posting-number: Volume 16, Issue 87
  11. Archive-name: ecu3/patch03
  12. Patch-To: ecu3: Volume 16, Issue 25-59
  13.  
  14. Under XENIX,
  15. 1. libmalloc.a and/or libc.a are broken such that calloc is
  16.    resolved twice, once from each library.
  17. 2. memmove() does not exist (in all or less recent versions?)
  18.  
  19. To get ecu 3 to compile under XENIX, apply this patch with:
  20.      patch < thismessage
  21.  
  22. NOTE there is no test to see if patch 1 & 2 have been applied :-(
  23. so make sure you have done so.  Also, I don't have access to XENIX
  24. right now, so please forgive if this doesn't fly. The object is to
  25. 1. supply -DDUFF to use Duff's device instead of missing memmove()
  26. 2. remove #define MALLOC_3X and -lmalloc to avoid bug in libmalloc.a
  27.  
  28. *** /u4/src/ecu3.02/Make.ecu    Thu Jan 10 14:04:54 1991
  29. --- Make.ecu    Tue Jan 22 14:33:19 1991
  30. ***************
  31. *** 45,50
  32.   # lint_args.h, please do squirrel away the release copy first
  33.   #--------------------------------------------------------------------
  34.   #+:EDITS:
  35.   #:01-08-1991-03:26-wht@n4hgf-add ISC support
  36.   #:11-28-1990-19:45-wht@n4hgf-improve M_ dependency description
  37.   #:10-20-1990-14:30-wht@n4hgf-fix bugs found by tbetz@upaya
  38.  
  39. --- 45,51 -----
  40.   # lint_args.h, please do squirrel away the release copy first
  41.   #--------------------------------------------------------------------
  42.   #+:EDITS:
  43. + #:01-22-1991-14:33-wht@n4hgf-XENIX calloc/memmove fix
  44.   #:01-08-1991-03:26-wht@n4hgf-add ISC support
  45.   #:11-28-1990-19:45-wht@n4hgf-improve M_ dependency description
  46.   #:10-20-1990-14:30-wht@n4hgf-fix bugs found by tbetz@upaya
  47. ***************
  48. *** 92,99
  49.   #make some composites based on above
  50.   SYSTEM = `sysdep =M_UNIX UNIX/386 =M_I386 Xenix/386 =M_I286 Xenix/286 =ISC ISC`
  51.   U3C = $(ZI) -Octl -CSON
  52. ! X3C = $(ZI) -Ot -CSON -i
  53. ! X2C = -M2let32 -LARGE -F 8000 -Ot -i
  54.   CURSES = -DM_TERMCAP
  55.   CURSES_LIB = -ltcap -ltermlib
  56.   COMFLAGS = `sysdep =M_UNIX $(U3C) =M_I386 $(X3C) =M_I286 $(X2C) =ISC $(NONSCO)`
  57.  
  58. --- 93,100 -----
  59.   #make some composites based on above
  60.   SYSTEM = `sysdep =M_UNIX UNIX/386 =M_I386 Xenix/386 =M_I286 Xenix/286 =ISC ISC`
  61.   U3C = $(ZI) -Octl -CSON
  62. ! X3C = -DDUFF $(ZI) -Ot -CSON -i
  63. ! X2C = -DDUFF -M2let32 -LARGE -F 8000 -Ot -i
  64.   CURSES = -DM_TERMCAP
  65.   CURSES_LIB = -ltcap -ltermlib
  66.   COMFLAGS = `sysdep =M_UNIX $(U3C) =M_I386 $(X3C) =M_I286 $(X2C) =ISC $(NONSCO)`
  67. ***************
  68. *** 98,105
  69.   CURSES_LIB = -ltcap -ltermlib
  70.   COMFLAGS = `sysdep =M_UNIX $(U3C) =M_I386 $(X3C) =M_I286 $(X2C) =ISC $(NONSCO)`
  71.   CFLAGS = -DLINT_ARGS $(CURSES) $(CRYPT) $(MORSE) $(NOSEL) $(ADPROC) $(COMFLAGS)
  72. ! LDSYS = `sysdep =ISC =M_I386 =M_I286 -SEG 256` 
  73. ! LDFLAGS = $(LDSYS) -lx -lmalloc $(LCRYPT) $(CURSES_LIB)
  74.   
  75.   ECUSHARNAME=ecu3
  76.   MANSHARNAME=ecuman3
  77.  
  78. --- 99,106 -----
  79.   CURSES_LIB = -ltcap -ltermlib
  80.   COMFLAGS = `sysdep =M_UNIX $(U3C) =M_I386 $(X3C) =M_I286 $(X2C) =ISC $(NONSCO)`
  81.   CFLAGS = -DLINT_ARGS $(CURSES) $(CRYPT) $(MORSE) $(NOSEL) $(ADPROC) $(COMFLAGS)
  82. ! LDSYS = `sysdep =M_UNIX -lmalloc =ISC -lmalloc =M_I386 =M_I286 -SEG 256` 
  83. ! LDFLAGS = $(LDSYS) -lx $(LCRYPT) $(CURSES_LIB)
  84.   
  85.   ECUSHARNAME=ecu3
  86.   MANSHARNAME=ecuman3
  87. *** /u4/src/ecu3.02/ecu.h    Thu Jan 10 14:04:58 1991
  88. --- ecu.h    Tue Jan 22 14:33:39 1991
  89. ***************
  90. *** 3,8
  91.       wht@n4hgf.Mt-Park.GA.US
  92.   ------------------------------------------------------------------------*/
  93.   /*+:EDITS:*/
  94.   /*:01-01-1991-21:36-wht@n4hgf-add GCC implies STDC */
  95.   /*:08-14-1990-20:39-wht@n4hgf-ecu3.00-flush old edit history */
  96.   
  97.  
  98. --- 3,9 -----
  99.       wht@n4hgf.Mt-Park.GA.US
  100.   ------------------------------------------------------------------------*/
  101.   /*+:EDITS:*/
  102. + /*:01-22-1991-14:33-wht@n4hgf-XENIX calloc/memmove fix */
  103.   /*:01-01-1991-21:36-wht@n4hgf-add GCC implies STDC */
  104.   /*:08-14-1990-20:39-wht@n4hgf-ecu3.00-flush old edit history */
  105.   
  106. ***************
  107. *** 64,69
  108.   /* #define ulong unsigned long */
  109.   /* #endif */
  110.   
  111.   #define MALLOC_3X
  112.   #if defined(MALLOC_3X)
  113.   #include <malloc.h>
  114.  
  115. --- 65,71 -----
  116.   /* #define ulong unsigned long */
  117.   /* #endif */
  118.   
  119. + #if defined(M_UNIX) || defined(ISC)
  120.   #define MALLOC_3X
  121.   #if defined(MALLOC_3X)
  122.   #include <malloc.h>
  123. ***************
  124. *** 68,73
  125.   #if defined(MALLOC_3X)
  126.   #include <malloc.h>
  127.   #endif
  128.   
  129.   /* for better source line utilization, frequent use of 'fprintf' and 'stderr'
  130.      warrants the following */
  131.  
  132. --- 70,76 -----
  133.   #if defined(MALLOC_3X)
  134.   #include <malloc.h>
  135.   #endif
  136. + #endif /* M_UNIX || ISC */
  137.   
  138.   /* for better source line utilization, frequent use of 'fprintf' and 'stderr'
  139.      warrants the following */
  140. *** /u4/src/ecu3.02/patchlevel.h    Tue Jan  1 23:04:50 1991
  141. --- patchlevel.h    Thu Jan 10 14:08:31 1991
  142. ***************
  143. *** 1,1
  144. ! #define PATCHLEVEL 2
  145.  
  146. --- 1,1 -----
  147. ! #define PATCHLEVEL 3
  148.  
  149. -----------------------------------------------------------------------
  150. Warren Tucker, March Hare   gatech!n4hgf!wht or wht@n4hgf.Mt-Park.GA.US
  151. When bad men combine, the good must associate;  else they will fall one
  152. by one, an unpitied sacrifice in a contemptible struggle. -Edmund Burke
  153.  
  154. exit 0 # Just in case...
  155. -- 
  156. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  157. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  158. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  159. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  160.