home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / utils / bug / 1374 < prev    next >
Encoding:
Text File  |  1992-08-16  |  2.2 KB  |  105 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!jclark.com!jjc
  3. From: jjc@jclark.com (James Clark)
  4. Subject: sed 1.09
  5. Message-ID: <9208151711.AA21256@jclark.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Sat, 15 Aug 1992 17:11:46 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 92
  12.  
  13. I built sed 1.09 on a Sparc 2 running SunOS 4.1.1. gcc 2.2.2 was
  14. installed and I had run fixincludes.  The make failed with memmove
  15. undefined.  Here's a fix (this also fixes a similar problem with
  16. memchr and updates configure.in for autoconf 1.0):
  17.  
  18. *** configure.in.~1~    Fri May 15 07:55:15 1992
  19. --- configure.in    Sat Aug 15 18:09:16 1992
  20. ***************
  21. *** 1,6 ****
  22.   dnl Process this file with autoconf to produce a configure script.
  23.   AC_INIT(sed.c)
  24. ! AC_PROG_GCC
  25.   AC_PROG_CPP
  26.   AC_PROG_INSTALL
  27.   AC_MINIX
  28. --- 1,6 ----
  29.   dnl Process this file with autoconf to produce a configure script.
  30.   AC_INIT(sed.c)
  31. ! AC_PROG_CC
  32.   AC_PROG_CPP
  33.   AC_PROG_INSTALL
  34.   AC_MINIX
  35. ***************
  36. *** 10,13 ****
  37. --- 10,14 ----
  38.   AC_CHAR_UNSIGNED
  39.   AC_VPRINTF
  40.   AC_ALLOCA
  41. + AC_HAVE_FUNCS(memmove memchr)
  42.   AC_OUTPUT(Makefile)
  43. *** utils.c.~1~    Tue Nov  5 07:15:58 1991
  44. --- utils.c    Sat Aug 15 18:09:02 1992
  45. ***************
  46. *** 207,213 ****
  47.       return ret;
  48.   }
  49.   
  50. ! #if !defined(USG) && !defined(STDC_HEADERS)
  51.   /*
  52.    * memchr - search for a byte
  53.    *
  54. --- 207,213 ----
  55.       return ret;
  56.   }
  57.   
  58. ! #ifndef HAVE_MEMCHR
  59.   /*
  60.    * memchr - search for a byte
  61.    *
  62. ***************
  63. *** 233,241 ****
  64.   
  65.       return 0;
  66.   }
  67. ! #endif
  68.   
  69. ! #if !defined(STDC_HEADERS)
  70.   /*
  71.    * memmove - copy bytes, being careful about overlap.
  72.    */
  73. --- 233,241 ----
  74.   
  75.       return 0;
  76.   }
  77. ! #endif /* not HAVE_MEMCHR */
  78.   
  79. ! #ifndef HAVE_MEMMOVE
  80.   /*
  81.    * memmove - copy bytes, being careful about overlap.
  82.    */
  83. ***************
  84. *** 267,273 ****
  85.   
  86.       return(dst);
  87.   }
  88. ! #endif
  89.   
  90.   /* Implement a variable sized buffer of 'stuff'.  We don't know what it is,
  91.      nor do we care, as long as it doesn't mind being aligned by malloc. */
  92. --- 267,273 ----
  93.   
  94.       return(dst);
  95.   }
  96. ! #endif /* not HAVE_MEMMOVE */
  97.   
  98.   /* Implement a variable sized buffer of 'stuff'.  We don't know what it is,
  99.      nor do we care, as long as it doesn't mind being aligned by malloc. */
  100.  
  101.  
  102. James Clark
  103. jjc@jclark.com
  104.  
  105.