Re: [htdig] Compile htdig on OS X (was Re: Search/index mod/script/cgi...)

Gilles Detillieux (
Fri, 20 Aug 1999 14:22:55 -0500 (CDT)

According to Ryan Thomas:
> I took care of the malloc.h error (includes need to point to sys/malloc.h);
> but now I'm getting the following error. Can anyone help?
> /usr/bin/ld: ../htlib/libht.a(String.o) has external relocation entries in
> non-writable section (__TEXT,__text) for symbols: _write

Sounds like an undefined external reference, in a convoluted language. :)
Does MacOS X not have a write() system call or function in its C library?
If not, it may not matter. I don't think the String::write() method
is used anyway, so you can probably safely remove the call to ::write()
in that method (htlib/, line 201 in 3.1.2) and just set result
to -1, or ifdef out all the code and return -1.

> At 09:19 AM 8/11/99 -0700, Chris Goltz wrote:
> >On Wednesday, August 11, 1999 9:29:04 AM, Will Cox wrote:
> > > Kristoffer Peterhänsel <> on 8/11/99 5:22 AM wrote:
> > >>I was just wondering if anyone knew of a search/index 'thing' that
> > >>will work with Apache on MacOS X Server?
> >[...]
> >I've tried ht://Dig, but it seems to be missing of few of the things that it
> >needs. Tenon got it to work (in iTools), but the standard distribution won't
> >compile.
> >
> >If anyone can get it to work, I would love to know what you did.

Gilles R. Detillieux              E-mail: <>
Spinal Cord Research Centre       WWW:
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------ To unsubscribe from the htdig mailing list, send a message to containing the single word unsubscribe in the SUBJECT of the message.

This archive was generated by hypermail 2.0b3 on Fri Aug 20 1999 - 12:24:29 PDT