Skip to main content.
home | support | download

Back to List Archive

patches for swish-e-2.1.8

From: Bas Meijer <bas(at)not-real.antraciet.nl>
Date: Thu Nov 16 2000 - 10:17:27 GMT
Hi,

There's a problem with testlib.c and docprop.h (reported earlier).
I have build swish-e-2.1.8 (with patches below) on
RedHat 6.2, HP-UX 10.20, LinuxPPC 2000, BSDI BSD/OS 4.0
without warnings or errors.

The last patch is intended for IRIX and other systems lacking
vsnprintf and snprintf. I'm not proficient enough in C to supply
these functions when HAVE_VSNPRINTF and HAVE_SNPRINTF are not defined
by configure.

   gcc -g -O2 -c testlib.c
testlib.c: In function `main':
testlib.c:13: warning: assignment from incompatible pointer type
testlib.c:24: warning: passing arg 1 of `SwishSearch' from incompatible pointer
type
testlib.c:33: warning: passing arg 1 of `SwishNext' from incompatible 
pointer ty
pe
testlib.c:44: warning: passing arg 1 of `SwishClose' from 
incompatible pointer t
ype
  gcc -o testlib -g -O2 testlib.o libswish-e.a -lm

$ grep SWISHE *.c
index.c:                                progerr("SWISHE: 
Congratulations. You ha
ve found a bug!! Contact the author");
testlib.c.org:struct SWISHE *sw;


*** testlib.c   Thu Nov 16 10:27:08 2000
--- testlib.c.org       Thu Nov 16 10:17:14 2000
***************
*** 5,11 ****

   int main()
   {
! struct SWISH *sw;
   int structure=1;
   int i,j,num_results,numPropertiesToDisplay;
   struct result *r;
--- 5,11 ----

   int main()
   {
! struct SWISHE *sw;
   int structure=1;
   int i,j,num_results,numPropertiesToDisplay;
   struct result *r;

*** docprop.h Wed Nov 15 10:41:30 2000
--- docprop.h.org Sun Nov 12 12:36:19 2000
***************
*** 39,42 ****
   int initSortResultProperties _AP ((struct SWISH *));

   struct docPropertyEntry *DupProps _AP ((struct docPropertyEntry *));
! #endif
--- 39,42 ----
   int initSortResultProperties _AP ((struct SWISH *));

   struct docPropertyEntry *DupProps _AP ((struct docPropertyEntry *));
! #endif _DOCPROP_H_

*** configure.in        Wed Nov 15 10:32:50 2000
--- configure.in.org    Wed Nov 15 09:40:56 2000
***************
*** 24,29 ****
   AC_FUNC_ALLOCA
   AC_FUNC_STRFTIME
   AC_FUNC_VPRINTF
! AC_CHECK_FUNCS(vsnprintf snprintf re_comp regcomp strdup strstr)

   AC_OUTPUT(Makefile)
--- 24,29 ----
   AC_FUNC_ALLOCA
   AC_FUNC_STRFTIME
   AC_FUNC_VPRINTF
! AC_CHECK_FUNCS(re_comp regcomp strdup strstr)

   AC_OUTPUT(Makefile)
-- 


--  /'''     Bas Meijer, Antraciet, Actualizing Internet Dreams
     c-OO     WEB: http://bas.antraciet.nl WAP: http://wmpp.net
     \  >     Kerkstraat 19 Postbus 256 1400 AG Bussum.NL
      \&&     tel. +31 35 7502100  fax. +31 35 7502111
Received on Thu Nov 16 10:19:14 2000