I've managed to compile htdig on Mac OS X 10.0.3, but when I attempt 
to run any of the programs except for htfuzzy, I get a "Bus error" 
immediately. Any ideas?

During ./configure, I get a notice that Spinlocks are not supported 
on my system. However, the compilation process completes.

Here is how I compiled it:

FIRST TRY:

wget http://www.htdig.org/files/htdig-3.1.5.tar.gz
gunzip htdig-3.1.5.tar.gz
tar -xvf htdig-3.1.5.tar
cd include
ln -s /usr/include/gcc/darwin/2.95.2/g++/strstream.h stream.h
ln -s /usr/include/objc/malloc.h
cd ..
./configure --host=darwin
make
make install


SECOND TRY:

Modified from OS X Server instructions at:
http://www.stepwise.com/Articles/Workbench/2000-02-26.01.html

mkdir htdig
cd htdig
wget http://www.htdig.org/files/htdig-3.1.5.tar.gz
gunzip htdig-3.1.5.tar.gz
tar -xvf htdig-3.1.5.tar
wget 
http://www3.stepwise.com/Articles/Workbench/htdig-3.1.5-patch-macosx.tar.gz
gunzip htdig-3.1.5-patch-macosx.tar.gz
tar -xvf htdig-3.1.5-patch-macosx.tar
patch -p 1 -d htdig-3.1.5 < htdig-3.1.5-patch-macosx
cd htdig-3.1.5
./configure \
      --prefix=/Library/WebServer/htdig \
      --with-cgi-bin-dir=/Library/WebServer/CGI-Executables \
      --with-image-dir=/Library/WebServer/htdig/Images \
      --with-search-dir=/Library/WebServer/htdig/Documents/search \
      powerpc-apple-rhapsody5.5
cd include
ln -s /usr/include/gcc/darwin/2.95.2/g++/strstream.h stream.h
cd ..
make
make install


THIRD AND FOURTH TRY:

I read the following in the FAQ:

"Despite a great deal of debugging of these programs, we haven't been 
able to completely eliminate all such problems on all platforms. If 
you're running htsearch or htfuzzy on a BSDI system, a common cause 
of core dumps is due to a conflict between the GNU regex code bundled 
in htdig 3.1.2 and later, and the BSD C or C++ library. The solution 
is to use the BSD library's own regex code instead, as summarized by 
Joe Jah:"

So I tried the following:

* make clean
* Remove references to regex.o from htlib/Makefile.
* Remove htlib/regex.h.
* Remove references to htlib/regex.h in htfuzzy/Makefile, which will 
be there if you have previously done a "make depends" (I hadn't, and 
they weren't)
* make


=====
Again, each of these compiles, but I get a "Bus error" on running 
anything except htfuzzy.

Jerry

_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to