> I think someone suggested the -I/usr/include as the culprit.  For some
> reason, the configure script in 3.2 adds this to the compiler flags in
> the Makefile, but it messes up the default search order for system
> header files.  Try removing it from the flags in your Makefile and see
> if that fixes the problem.  We'll need to figure out how to get the
> configure script to stop doing this.

Thanks Gilles.  Got a little farther this time.  Now I'm getting the stat64
problems that others have been seeing.  I found this suggestion in the
archives (message is here
http://www.geocrawler.com/mail/msg.php3?msg_id=6965171&list=8822):

| Obviously we need to find the appropriate version of this file and put
| it back.  As for the clobbered db->stat() calls, maybe the easy fix is
| to simply put parentheses around the "db->stat" part, thus...
|
|    return (db->stat)(db, sp, db_malloc, (u_int32_t) flags);
|
| in htword/WordDB.h, and anywhere else where this comes up
| (htdb/htdb_dump.cc and htdb/htdb_stat.cc come to mind).  If you give
| this trick a try, let me know if it fixes this problem.

I get a similar but subtly different error message, which I've included
below.  Basically it says "'struct __db' has no member named `stat64'"
instead of "no matching function for call to `__db::stat64(DB*&, void*&,
void*(*&)(unsigned int), u_int32_t&)"

In a message from Dec 12, you said:

> Just a thought, but maybe it would help to try to find which gcc header
> file is redefining "stat" to "stat64", and that might give us some ideas
> about how to avoid, disable or alter that redefinition.

This is all getting a bit over my head here (I'm a 'configure', 'make',
'make install' kinda guy), but I don't think gcc 3.x is the problem.  I did
a 'find -exec grep' of the installed gcc files looking for "stat64" but
found nothing.  However, I did find several lines like:

#pragma redefine_extname        stat    stat64
#define stat    stat64
#pragma redefine_extname        stat64  stat
#define stat64  stat

in /usr/include/sys/stat.h.  Does that help any?  Is this strictly a Solaris
8 problem? [I didn't notice posting from users of other platforms, so I'm
assuming it is]



Here's my latest problem:


Making all in htfuzzy
make[1]: Entering directory `/work/source/htdig-3.2.0b4-120901/htfuzzy'
/bin/sh ../libtool --mode=compile
c++ -DHAVE_CONFIG_H -I. -I. -I../include -DDEFAULT_CONFIG_FILE=\"/usr/local/
htdig/conf/htdig.conf\"                -I../include -I../htlib              
   -I../htnet -I../htcommon                                    -I../htword  
            -I../db -I../db                 -DMV=\"/bin/mv\"   -I/usr/local/
include  -g -O2 -Wall -fno-rtti -fno-exceptions -c Accents.cc
c++ -DHAVE_CONFIG_H -I. -I. -I../include -DDEFAULT_CONFIG_FILE=\"/usr/local/
htdig/conf/htdig.conf\" -I../include -I../htlib -I../htnet -I../htcommon -I.
./htword -I../db -I../db -DMV=\"/bin/mv\" -I/usr/local/include -g -O2 -Wall 
-fno-rtti -fno-exceptions -c Accents.cc -o Accents.o
In file included from ../htword/WordList.h:82,
                 from ../htcommon/HtWordList.h:23,
                 from Fuzzy.h:32,
                 from Accents.h:20,
                 from Accents.cc:23:
../htword/WordDB.h: In member function `int WordDB::Stat(void*,
   void*(*)(unsigned int), int)':
../htword/WordDB.h:103: `struct __db' has no member named `stat64'
make[1]: *** [Accents.lo] Error 1
make[1]: Leaving directory `/work/source/htdig-3.2.0b4-120901/htfuzzy'
make: *** [all-recursive] Error 1


Thanks again for teh help.

- Darryl

 ----------------------------------------------------------------------
  Darryl Friesen, B.Sc., Programmer/Analyst    [EMAIL PROTECTED]
  Education & Research Technology Services,     http://gollum.usask.ca/
  Information Technology Services Division,
  University of Saskatchewan
 ----------------------------------------------------------------------
  "Go not to the Elves for counsel, for they will say both no and yes"




_______________________________________________
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