Hi - I encountered the following problem while working with
htdig-3.2.0b4-20020609 (though it is not specific to this
version) under OS X (10.1.4) with the April Developer Tools
configured for GCC3 (3.1). I understand that the compiler system
is still considered beta under OS X, but from what I have read
this problem is due to a GCC3 feature.

The problem is that ht://Dig cannot be configured to use zlib.
When configure tries to compile conftest.c for the zlib.h check,
the compile line includes a -I/usr/include. This results in the
following warning

cpp0: warning: changing search order for system directory "/usr/include"
cpp0: warning:   as it has already been specified as a non-system directory

which in turn causes the check to fail.

The cause of the warning, as I understand it, is that use of -I
for a system include directory now both changes the implied
ordering of the search path and cause that directory to be
considered a non-system include directory. This is discussed in
the GCC documentation for -I at

http://gcc.gnu.org/onlinedocs/gcc-3.1/gcc/Directory-Options.html#Directory%20Options

A few other things I noticed... There are a lot of warnings about
the use of depreciated headers. If there is a way to slip in a
-Wno-deprecated for GCC3 builds, I think these warnings will go
away. A consequence of deprecated header warnings is that the check
for fstream.h fails. A few other warnings that I caught are listed
below. I realize this is a beta, and I am not trying to nitpick :)
I just figured I would pass along everything else I noticed since
it is all sitting in front of me right now. In the end, I was able
build, install, rundig, and perform a few searches.

Jim

-------------
mp_cmpr.c: In function `CDB___memp_cmpr_read':
mp_cmpr.c:200: warning: implicit declaration of function `memcpy'
mp_cmpr.c: In function `CDB___memp_cmpr_page':
mp_cmpr.c:480: warning: implicit declaration of function `memset'
mp_cmpr.c: In function `CDB___memp_cmpr_open':
mp_cmpr.c:730: warning: implicit declaration of function `strlen'
-------------
WordDBPage.h: In member function `void WordDBPage::insert_btikey(WordDBKey&,
   BINTERNAL&, int)':
WordDBPage.h:267: warning: int format, long unsigned int arg (arg 2)
WordDBPage.h: In member function `void WordDBPage::compress_key(Compressor&,
   int)':
WordDBPage.h:323: warning: int format, long unsigned int arg (arg 3)
-------------
HtConfiguration.cc: In member function `void HtConfiguration::Add(const char*,
   const char*, Configuration*)':
HtConfiguration.cc:39: warning: suggest parentheses around assignment used as
   truth value
HtConfiguration.cc: In member function `const String
   HtConfiguration::Find(URL*, const char*) const':
HtConfiguration.cc:129: warning: suggest parentheses around assignment used as
   truth value
-------------
conf_lexer.cxx: In function `int yylex()':
conf_lexer.cxx:704: warning: label `find_rule' defined but not used
/usr/include/gcc/darwin/3.1/g++-v3/bits/stl_threads.h: At top level:
conf_lexer.cxx:1790: warning: `void* yy_flex_realloc(void*, unsigned int)'
   defined but not used


_______________________________________________________________

Multimillion Dollar Computer Inventory
Live Webcast Auctions Thru Aug. 2002 - http://www.cowanalexander.com/calendar



_______________________________________________
htdig-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to