🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #881

grep-1.6

#881
From: Rich Morin
Date: Sat, 10 Oct 1992 04:25
39 lines
1497 bytes
Under SunOS 4.1.1 (on a Sun-3/60), the test suite fails:

  rdm@cfcl 6: make
  cc -g -o grep dfa.o regex.o getopt.o ggrep.o 
  builddir=`pwd`; cd ./tests; sh regress.sh $builddir
  awk: syntax error at source line 2
   context is
	!/^#/ >>>  && <<< 
  awk: bailing out at source line 2
  touch check.done

The failure occurs in test/scriptgen.awk, due to a bug in Sun's AWK.
One possible workaround is:

  BEGIN { print "failures=0"; }
  !/^#/ {
    if (NF == 3) {
	print "echo '" $3 "' | $1/egrep -e '" $2 "' > /dev/null 2>&1";
	print "if [ $? != " $1 " ]"
	print "then"
	printf "\techo Spencer test \\#%d failed\n", ++n
	print "\tfailures=1"
	print "fi"
    }
  }
  END { print "exit $failures"; }

Under SunOS 4.1.1 (on a Sun-3/60) and SunOS 4.1.3 (on a Sun ELC), the
configure script produces the following incorrect line:

  DEFS =  -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1

This cause the Sun C compiler to emit scads of error messages about 'const'
declarations.  I don't know how to fix configure, but the line should read:

  DEFS =   -DHAVE_UNISTD_H=1

Yours, Rich Morin
rdm@cfcl.com
Technical Details
Message-ID: <9210100425.AA24043@cfcl.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cfcl.com!rdm

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cfcl.com!rdm
From: rdm@cfcl.com (Rich Morin)
Subject: grep-1.6
Message-ID: <9210100425.AA24043@cfcl.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sat, 10 Oct 1992 04:25:26 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 40