On Tue, 15 May 2001, Gilles Detillieux wrote:

> Date: Tue, 15 May 2001 16:52:13 -0500 (CDT)
> From: Gilles Detillieux <[EMAIL PROTECTED]>
> To: Joe R. Jah <[EMAIL PROTECTED]>
> Cc: Gilles Detillieux <[EMAIL PROTECTED]>,
     "ht://Dig mailing list" <[EMAIL PROTECTED]>
> Subject: Re: [htdig] Segfault on url_rewrite_rules
> 
> According to Joe R. Jah:
> > I haven't been able to do what you have prescribed, manually define
> > HAVE_WAIT_H or HAVE_SYS_WAIT_H.  Would you be so kind in describing the
> > procedure?
> 
> OK, for the sake of example, let's say your system has a /usr/include/wait.h,
> rather than /usr/include/sys/wait.h.  You can add a "#define HAVE_WAIT_H 1"
> statement in include/htconfig.h or right in htdig/ExternalParser.cc, or
> you can compile using the command "make LOCAL_DEFINES=-DHAVE_WAIT_H", or
> add -DHAVE_WAIT_H to either LOCAL_DEFINES or DEFINES in Makefile.config.
> If you have a sys/wait.h, then use HAVE_SYS_WAIT_H instead.  It's the
> same procedure you'd use for defining just about any pre-processor macro
> in C or C++.  Not much to it really.  You may want to pick up a C/C++
> guide so you can at least learn the basics of the language, which would
> help a great deal in porting and testing applications.

Thank you Gilles; I used the "gmake LOCAL_DEFINES=-DHAVE_SYS_WAIT_H."  It
compiled without a hitch, and digs just fine;)  To make your patch work
universally, however, I'd need to follow your advice and pick up a C/C++
guide, to test which one of /usr/include/wait.h or /usr/include/sys/wait.h
exist, and have the correct definition inserted in include/htconfig.h or
Makefile.config.  I made a shortcut and defined them both in
include/htconfig.h, but it failed; it looks for /usr/include/wait.h
regardless of the order of definitions in include/htconfig.h;(

Regards,

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


_______________________________________________
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