Return to BSD News archive
Newsgroups: comp.os.386bsd.apps Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!koriel!sh.wide!wnoc-tyo-news!cs.titech!jaist-news!nao From: nao@jaist.ac.jp (Naoki HAMADA) Subject: Re: less for NetBSD-0.8? In-Reply-To: storm@cs.mcgill.ca's message of 14 Oct 1993 15:11:51 GMT Message-ID: <NAO.93Oct15155723@mimo.jaist.ac.jp> Sender: news@jaist.ac.jp (News System Administrator) Organization: nec habeo, nec careo, nec curo. References: <29jq7n$96g@homer.cs.mcgill.ca> Date: Fri, 15 Oct 1993 06:57:23 GMT Lines: 26 >>Hi. Has anybody compiled less for NetBSD-0.8? i picked up the sources for >>less-177 from prep.ai.mit.edu, and agate, but for both, i get an error: > I think there is a define to get around this, but the dirty fix that > I typically use is: > > Add -Dre_comp=regcomp -Dre_exec=regexec > > to the CFLAGS line. Once I compiled "less" with this fix, and got brain-damaged less. It cannot search strings properly. I fixed it as follows. With this patch, "less" seems to go quite well. /nao --- defines.h.orig Fri Oct 15 15:53:39 1993 +++ defines.h Fri Oct 15 15:53:56 1993 @@ -75,7 +75,8 @@ * If neither is 1, pattern matching is supported, but without metacharacters. */ #define REGCMP 0 -#define RECOMP 1 +#define RECOMP 0 +#define REGCOMP 1 /* * SHELL_ESCAPE is 1 if you wish to allow shell escapes.