According to Holmes, Gregory:
> 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.

OK, now try adding the following 3 lines right after the #include <unistd.h>
in htdb/htdb_*.cc (i.e. where * is dump, load and stat):

#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif /* HAVE_GETOPT_H */

All other files that use getopt() seem to have this.

-- 
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

Reply via email to