Subject: Re: glimpse
To: None <winans@aps.anl.gov>
From: Kim Andersen <kim@dde.dk>
List: netbsd-users
Date: 08/22/1995 23:54:42
> 
> 
> I can't seem to get glimpse to run under 1.0.  The glimpseindex runs to
> completion, but the 'glimpse' command dumps core.  Anyone got some
> patches or a clue they care to lend me?
> 
> --John
> 
In glimpse-2.1/get_filename.c change line 72

              if (st.st_size != fread(bigbuffer, 1, st.st_size, fp)) {/* read in whole file in CONTIGUOUS memory */

to

               if (st.st_size != (off_t)fread(bigbuffer, (size_t)1, (size_t)st.st_size, fp)) {/* read in whole file in CONTIGUOUS memory */

In glimpse-2.1/index/build_in.c add this
+ #ifndef __NetBSD__ 
      char *malloc(); 
+ #endif

(Probably could be made prettier, but what the hell...)

regards
kim