According to Jerry Stratton:
> 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.
I'm pretty sure you need the macosx patch, so your second try is
probably the way to proceed. I never heard of needing to change regex
versions on Max OS X, so I don't think that substitution is a good idea.
Are you sure that using g++/strstream.h in place of stream.h is correct?
It strikes me as a bit odd, possibly wrong, and it's not mentioned at
all in Scott's article. Maybe you're missing the correct stream.h header
file on your system.
Where does the bus error occur? Can you get stack backtraces of the
various programs that crash, and if so, are they all failing at about
the same point?
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba Phone: (204)789-3766
Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
_______________________________________________
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