On Fri, 16 Feb 2001, Geoff Hutchison wrote:

> Date: Fri, 16 Feb 2001 08:33:39 -0600
> From: Geoff Hutchison <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [htdig] htfuzzy segmentation fault, and server 500 error with htsearch
> 
> At 2:00 AM +0800 2/16/01, [EMAIL PROTECTED] wrote:
> >The question is, what might cause this, and is there a way to bypass
> >htfuzzy, or is it the main search component called by htsearch for
> >htdig?
> 
> You need to remove the regex.c and regex.h files in htlib/ and 
> references to them in the Makefile. For whatever reason, this version 
> of regex code is incompatible with BSDI. This should probably be a 
> FAQ. It will cause problems with htfuzzy (Endings) and also htsearch 
> if the endings algorithm is in your list.

A slightly different procedure is already a FAQ for 3.1.5.  I am not sure
what version [EMAIL PROTECTED] runs.  Any way, I followed your advice and
removed both regex.c and regex.h files in htlib/ and references to them in
the Makefile of snapshot 3.2.0b3-021501.  I first compiled it using BSDI
4.0.1's own compiler (gccversion=2.7.2.1) 

___Rundig results:

Unknown char in line 63:
#Unknown char in line 63:
#Unknown char in line 63:
#Unknown char in line 63:
#Segmentation fault - core dumped
Unknown char in line 63:
#Segmentation fault - core dumped

___gdb bt:

$ gdb htfuzzy htfuzzy.core
GNU gdb
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-bsdi4.0.1"...
Core was generated by `htfuzzy'.
Program terminated with signal 11, Segmentation fault.
b#0  0x1805891d in Fuzzy::~Fuzzy (this=0x181b4294, __in_chrg=2) at Fuzzy.cc:60
60              index->Close();
(gdb) bt
#0  0x1805891d in Fuzzy::~Fuzzy (this=0x181b4294, __in_chrg=2) at Fuzzy.cc:60
#1  0x1805c4c4 in Regex::~Regex (this=0x181b4294, __in_chrg=2) at Regex.cc:42
#2  0x181a10ba in global destructors keyed to Regex::Regex ()
#3  0x181893b4 in __do_global_dtors_aux ()
#4  0x181b2060 in _fini ()
#5  0x1825f3b2 in exit ()
#6  0x18091b3b in yylex () at conf_lexer.cxx:922
#7  0x180928df in yyparse (aConf=0x804cd30) at conf_parser.cxx:578
#8  0x18090bde in HtConfiguration::Read (this=0x804cd30, filename=@0x8047998) at 
HtConfiguration.cc:245
#9  0x8049644 in main (ac=2, av=0x80479cc) at htfuzzy.cc:130
#10 0x80493ec in __start ()
(gdb) q

I then removed htfuzzy/Regex.cc and htfuzzy/Regex.h and all references
to them in the Makefile file, but it didn't compile.

___Here is the error:

Fuzzy.cc: In method `void Fuzzy::getWords(char *, class List &)':
Fuzzy.cc:92: `OK' undeclared (first use this function)
Fuzzy.cc:92: (Each undeclared identifier is reported only once
Fuzzy.cc:92: for each function it appears in.)
Fuzzy.cc: In method `int Fuzzy::openIndex()':
Fuzzy.cc:134: `OK' undeclared (first use this function)
Fuzzy.cc:135: warning: control reaches end of non-void function `Fuzzy::openIndex()'
Fuzzy.cc: In method `int Fuzzy::writeDB()':
Fuzzy.cc:178: `OK' undeclared (first use this function)
Fuzzy.cc:179: warning: control reaches end of non-void function `Fuzzy::writeDB()'
Fuzzy.cc: In function `static class Fuzzy * Fuzzy::getFuzzyByName(char *, const class 
HtConfiguration &)':
Fuzzy.cc:205: no matching function for call to `Regex::Regex (HtConfiguration)'
/usr/include/g++/Regex.h:41: candidates are: Regex::Regex(const Regex &)
/usr/include/g++/Regex.h:52:                 Regex::Regex(const char *, int, int, 
const char *)
Fuzzy.cc:210: warning: control reaches end of non-void function 
`Fuzzy::getFuzzyByName(char *, const HtConfiguration &)'
Fuzzy.cc: In method `int Fuzzy::createDB(const class HtConfiguration &)':
Fuzzy.cc:216: `OK' undeclared (first use this function)
Fuzzy.cc:217: warning: control reaches end of non-void function `Fuzzy::createDB(const 
HtConfiguration &)'
gmake[1]: *** [Fuzzy.lo] Error 1
gmake[1]: Leaving directory `/SRC/htdig-3.2.0b3-021501/htfuzzy'
gmake: *** [all-recursive] Error 1

I then compiled the fresh source using a gcc-2.95.2 compiler.

___Flags used in configuration:

CFLAGS="-O2"
CXXFLAGS="-O2"
CPPFLAGS="-I/usr/local/GCC/include/g++-3 -L/usr/local/GCC/lib"
CC="/usr/local/bin/egcs"
CXX="/usr/local/bin/egcs++"
export CFLAGS CXXFLAGS CPPFLAGS CC CXX C++

___Rundig results:

htdig: can't load library 'libstdc++-2.so.3'
htpurge: can't load library 'libstdc++-2.so.3'
htnotify: can't load library 'libstdc++-2.so.3'
htfuzzy: can't load library 'libstdc++-2.so.3'
htfuzzy: can't load library 'libstdc++-2.so.3'

Do you see any light in this endless BSDI/Htdig3.2 tunnel?

Regards,

Joe
-- 
     _/   _/_/_/       _/              ____________    __o
     _/   _/   _/      _/         ______________     _-\<,_
 _/  _/   _/_/_/   _/  _/                     ......(_)/ (_)
  _/_/ oe _/   _/.  _/_/ ah        [EMAIL PROTECTED]


_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
Information: http://lists.sourceforge.net/lists/listinfo/htdig-general
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to