home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.utils.bug
- Path: sparky!uunet!cis.ohio-state.edu!jclark.com!jjc
- From: jjc@jclark.com (James Clark)
- Subject: sed 1.09
- Message-ID: <9208151711.AA21256@jclark.com>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Sat, 15 Aug 1992 17:11:46 GMT
- Approved: bug-gnu-utils@prep.ai.mit.edu
- Lines: 92
-
- I built sed 1.09 on a Sparc 2 running SunOS 4.1.1. gcc 2.2.2 was
- installed and I had run fixincludes. The make failed with memmove
- undefined. Here's a fix (this also fixes a similar problem with
- memchr and updates configure.in for autoconf 1.0):
-
- *** configure.in.~1~ Fri May 15 07:55:15 1992
- --- configure.in Sat Aug 15 18:09:16 1992
- ***************
- *** 1,6 ****
- dnl Process this file with autoconf to produce a configure script.
- AC_INIT(sed.c)
- ! AC_PROG_GCC
- AC_PROG_CPP
- AC_PROG_INSTALL
- AC_MINIX
- --- 1,6 ----
- dnl Process this file with autoconf to produce a configure script.
- AC_INIT(sed.c)
- ! AC_PROG_CC
- AC_PROG_CPP
- AC_PROG_INSTALL
- AC_MINIX
- ***************
- *** 10,13 ****
- --- 10,14 ----
- AC_CHAR_UNSIGNED
- AC_VPRINTF
- AC_ALLOCA
- + AC_HAVE_FUNCS(memmove memchr)
- AC_OUTPUT(Makefile)
- *** utils.c.~1~ Tue Nov 5 07:15:58 1991
- --- utils.c Sat Aug 15 18:09:02 1992
- ***************
- *** 207,213 ****
- return ret;
- }
-
- ! #if !defined(USG) && !defined(STDC_HEADERS)
- /*
- * memchr - search for a byte
- *
- --- 207,213 ----
- return ret;
- }
-
- ! #ifndef HAVE_MEMCHR
- /*
- * memchr - search for a byte
- *
- ***************
- *** 233,241 ****
-
- return 0;
- }
- ! #endif
-
- ! #if !defined(STDC_HEADERS)
- /*
- * memmove - copy bytes, being careful about overlap.
- */
- --- 233,241 ----
-
- return 0;
- }
- ! #endif /* not HAVE_MEMCHR */
-
- ! #ifndef HAVE_MEMMOVE
- /*
- * memmove - copy bytes, being careful about overlap.
- */
- ***************
- *** 267,273 ****
-
- return(dst);
- }
- ! #endif
-
- /* Implement a variable sized buffer of 'stuff'. We don't know what it is,
- nor do we care, as long as it doesn't mind being aligned by malloc. */
- --- 267,273 ----
-
- return(dst);
- }
- ! #endif /* not HAVE_MEMMOVE */
-
- /* Implement a variable sized buffer of 'stuff'. We don't know what it is,
- nor do we care, as long as it doesn't mind being aligned by malloc. */
-
-
- James Clark
- jjc@jclark.com
-
-