Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]):
> 
> Geoff Hutchison writes:
>  > 
>  > 
>  > At first, I thought it might be a problem when objdir != srcdir.
>  > 
>  > Nope, it just doesn't compile for me:
>  > 
>  > c++ -W -Wall -fno-exceptions -g ../../../htdig3/db/dist/../cxx/cxx_app.cpp
>  > ./../../htdig3/db/dist/../cxx/cxx_app.cpp:8: config.h: No such file or directory
>  > ./../../htdig3/db/dist/../cxx/cxx_app.cpp:14: db_cxx.h: No such file or directory
>  > ./../../htdig3/db/dist/../cxx/cxx_app.cpp:15: cxx_int.h: No such file or directory
>  > make[2]: *** [cxx_app.o] Error 1
>  > make[2]: Leaving directory `/home/ghutchis/htdig-cvs/build/db/dist'
>  > make[1]: *** [all] Error 2
>  > make[1]: Leaving directory `/home/ghutchis/htdig-cvs/build/db'
>  > make: *** [all-recursive] Error 1
> 
>  Hi,
> 
>  I tried to ./configure outside the source tree and it compiles fine. Is
> this from the latests CVS ? On which platform is it running ?
> 
>      Cheers,
> 

I've had much frustration in compiling the htdig3 CVS source using
the 1999-09-27 snapshot of egcs-g++ on a powerpc-ibm-aix4.1.4.0.
My desire to use the 2.7.7 Version of Berkeley DB and difficulties
in getting a working g++ added to the difficulty of using the
buggy AIX <sys/time.h> and varargs files.

I uncovered and reported an EGCS compiler bug generated by the
mystrcasecmp(sorttypes[i].typest, st) expression in
int ResultMatch::setSortType(const String& sorttype) in
htnet/HtHTTP.cc.

I needed to change some references to expressions like
SetBodyReadingController(&HtHTTP::ReadBody);  /* htnet/HtHTTP.cc:141 */

G++ reports many errors of the form:
In file included from ../../htlib/String_fmt.cc:17:
./../htlib/htString.h: In method `char String::operator [] (int) const':
./../htlib/htString.h:225: warning: sorry: semantics of inline function static data 
`char null' are wrong (you'll wind up with multiple copies)
./../htlib/htString.h:225: warning:   you can work around this by removing the 
initializer

Perhaps someone who is knowledgable about the htString.h file
can fix this class space inefficiency.

I recommend decoupling the Berkeley DB distribution in the CVS
tree.  The version in CVS is old.  If you need to build compiled
packages for distribution which include DB, do this at build
time.  Developers should not be forced to use a particular DB
release.

By the way, I suspect that the following files:

        htlib/mktime.c
        htlib/regex.c
        htlib/strptime.c

use the following include gratuitously.

#ifdef HAVE_CONFIG_H
# include <config.h>
#endif


On the positive side, I've been able to create the htdig3 binaries
and they execute and print a usage statement when given "--help".
So, I can now go on to the adventure of learning to use htdig to
index.


Michael Hirohama <[EMAIL PROTECTED]>

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to