Title: RE: [htdig] compiling 3.2.0b3 on Cygwin

Gilles:

I made the changes you recommended, then started make again.

It seems to have solved that problem, but now I get this one:

Making all in htdb
make[1]: Entering directory `/usr/local/src/htdig-3.2.0b3/htdb'
c++ -DHAVE_CONFIG_H -I. -I. -I../include -DDEFAULT_CONFIG_FILE=\"//d/opt/www/con
f/htdig.conf\"          -I../include -I../htlib                 -I../htnet -I../
htcommon                -I../htword             -I../db -I../db            -I/us
r/include  -g -O2 -Wall -fno-rtti -fno-exceptions -c htdb_load.cc
htdb_load.cc: In function `int main(int, char **)':
htdb_load.cc:93: implicit declaration of function `int getopt(...)'
make[1]: *** [htdb_load.o] Error 1
make[1]: Leaving directory `/usr/local/src/htdig-3.2.0b3/htdb'
make: *** [all-recursive] Error 1

Thanks very much for your help!  I hope to compile this yet.


-----Original Message-----
From: Gilles Detillieux [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 2:28 PM
To: Holmes, Gregory
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [htdig] compiling 3.2.0b3 on Cygwin


According to Holmes, Gregory:
> Hmm... there is a /usr/include/regex.h, but I renamed it to regex.h.old, ran
> configure and make again, and got the same error.  I've attached it in case
> might be useful.
>
> There is a Regex.h (note the capital) in the htfuzzy directory and a regex.h
> in the htlib directory.  Is that right?

D'oh!!!  This is the problem.  On Windows, file names are case-insensitive,
so the compiler can't make a destinction between the regex.h file and the
Regex.h file in the htfuzzy directory.  The compiler is called with "-I."
as one of the first options, so when compiling in the htfuzzy directory,
that's the first directory that's searched, and it happily picks up the
Regex.h file in there in response to a #include <regex.h> directive.

Sure enough, line 20 of Regex.h is an include of "HtRegex.h".

Try renaming Regex.h to Regexp.h, or something else unique, and fix up any
references to it in Regex.cc, Fuzzy.cc, and htfuzzy/Makefile*.  Then see
if you can build the code.  If this fixes the problem, I'll suggest a more
permanent name change for the source files in Geoff's "regex" fuzzy match
code.


Reply via email to