Hi there,

        Attached is error log, config.cache, and a patch in case you
care to fix warnings that GCC is producing while compiling htdig in my
environment. The patch does not fix warnings in conf_lexer.cxx because
I am not sure what the dependency is there.

        Environment:
                gcc version 2.7.2.3
                FreeBSD 3.5-STABLE
                htdig-3.2.0b4-012702

Please let me know if you need more information. 

Thank you for htdig.

Alex.

P.S. Apologies for not using the bug reporting form on SF. It
     was too cumbersome to upload files compared to e-mail.
mp_cmpr.c: In function `CDB___memp_cmpr_page':
mp_cmpr.c:480: warning: implicit declaration of function `memset'
WordDBPage.cc: In method `void WordDBPage::Uncompress_rebuild(unsigned int **, int *, 
int, unsigned char *, int)':
WordDBPage.cc:292: warning: unused parameter `int nrworddiffs'
DocumentDB.cc: In method `int DocumentDB::DumpDB(const class String &, int = 0)':
DocumentDB.cc:358: warning: unused parameter `int verbose'
HtConfiguration.cc: In method `void HtConfiguration::Add(const char *, const char *, 
class Configuration *)':
HtConfiguration.cc:39: warning: suggest parentheses around assignment used as truth 
value
HtConfiguration.cc: In method `const class String HtConfiguration::Find(class 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
conf_lexer.cxx: At top level:
conf_lexer.cxx:1790: warning: `void * yy_flex_realloc(void *, unsigned int)' defined 
but not used
Connection.h: In method `class Connection & Connection::operator +(const class 
Connection &)':
In file included from Connection.cc:21:
Connection.h:102: warning: unused parameter `const class Connection & rhs'
Connection.h: In method `class Connection & Connection::operator +(const class 
Connection &)':
In file included from Transport.h:25,
                 from Transport.cc:25:
Connection.h:102: warning: unused parameter `const class Connection & rhs'
Connection.h: In method `class Connection & Connection::operator +(const class 
Connection &)':
In file included from Transport.h:25,
                 from HtHTTP.cc:24:
Connection.h:102: warning: unused parameter `const class Connection & rhs'
Connection.h: In method `class Connection & Connection::operator +(const class 
Connection &)':
In file included from Transport.h:25,
                 from HtFile.cc:23:
Connection.h:102: warning: unused parameter `const class Connection & rhs'
Connection.h: In method `class Connection & Connection::operator +(const class 
Connection &)':
In file included from Transport.h:25,
                 from HtNNTP.cc:27:
Connection.h:102: warning: unused parameter `const class Connection & rhs'
Connection.h: In method `class Connection & Connection::operator +(const class 
Connection &)':
In file included from Transport.h:25,
                 from HtHTTP.h:39,
                 from HtHTTPBasic.h:19,
                 from HtHTTPBasic.cc:21:
Connection.h:102: warning: unused parameter `const class Connection & rhs'
../htnet/Connection.h: In method `class Connection & Connection::operator +(const 
class Connection &)':
In file included from ../htnet/Transport.h:25,
                 from Document.h:30,
                 from Document.cc:31:
../htnet/Connection.h:102: warning: unused parameter `const class Connection & rhs'
../htnet/Connection.h: In method `class Connection & Connection::operator +(const 
class Connection &)':
In file included from ../htnet/Transport.h:25,
                 from Document.h:30,
                 from Retriever.cc:29:
../htnet/Connection.h:102: warning: unused parameter `const class Connection & rhs'
Retriever.cc: In method `void Retriever::RetrievedDocument(class Document &, const 
class String &, class DocumentRef *)':
Retriever.cc:790: warning: unused parameter `const class String & url'
../htnet/Connection.h: In method `class Connection & Connection::operator +(const 
class Connection &)':
In file included from ../htnet/Transport.h:25,
                 from Document.h:30,
                 from Server.cc:24:
../htnet/Connection.h:102: warning: unused parameter `const class Connection & rhs'
Server.cc: In method `Server::Server(URL, StringList *)':
Server.cc:143: warning: `class HtHTTP * http' might be used uninitialized in this 
function
Server.cc:147: warning: `class HtHTTP * this' might be used uninitialized in this 
function
../htnet/Connection.h: In method `class Connection & Connection::operator +(const 
class Connection &)':
In file included from ../htnet/Transport.h:25,
                 from ExternalTransport.h:19,
                 from ExternalTransport.cc:20:
../htnet/Connection.h:102: warning: unused parameter `const class Connection & rhs'
../htnet/Connection.h: In method `class Connection & Connection::operator +(const 
class Connection &)':
In file included from ../htnet/Transport.h:25,
                 from Document.h:30,
                 from htdig.cc:20:
../htnet/Connection.h:102: warning: unused parameter `const class Connection & rhs'
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
db_cv_sprintf_count=${db_cv_sprintf_count='yes'}
ac_cv_type_size_t=${ac_cv_type_size_t='yes'}
ac_cv_prog_cc_works=${ac_cv_prog_cc_works='yes'}
db_cv_uint=${db_cv_uint='yes'}
ac_cv_lib_fl_yywrap=${ac_cv_lib_fl_yywrap='yes'}
ac_cv_prog_CXXCPP=${ac_cv_prog_CXXCPP='c++ -E'}
ac_cv_sizeof_unsigned_long_int=${ac_cv_sizeof_unsigned_long_int='4'}
ac_cv_func_getcwd=${ac_cv_func_getcwd='yes'}
ac_cv_path_db_cv_path_strip=${ac_cv_path_db_cv_path_strip='/usr/bin/strip'}
ac_cv_path_db_cv_path_cp=${ac_cv_path_db_cv_path_cp='/bin/cp'}
ac_cv_path_db_cv_path_chmod=${ac_cv_path_db_cv_path_chmod='/bin/chmod'}
ac_cv_path_db_cv_path_ar=${ac_cv_path_db_cv_path_ar='/usr/bin/ar'}
ac_cv_c_bigendian=${ac_cv_c_bigendian='no'}
db_cv_debug_wop=${db_cv_debug_wop='no'}
ac_cv_lib_nsl_t_accept=${ac_cv_lib_nsl_t_accept='no'}
ac_cv_func_memcmp=${ac_cv_func_memcmp='yes'}
db_cv_bigfile=${db_cv_bigfile='yes'}
ac_cv_func_select=${ac_cv_func_select='yes'}
htdig_cv_tests=${htdig_cv_tests='no'}
ac_cv_prog_RRDTOOL=${ac_cv_prog_RRDTOOL='rrdtool'}
ac_cv_func_pread=${ac_cv_func_pread='yes'}
ac_cv_path_FIND=${ac_cv_path_FIND='/usr/bin/find'}
ac_cv_header_sys_time_h=${ac_cv_header_sys_time_h='yes'}
ac_cv_func_memmove=${ac_cv_func_memmove='yes'}
ac_cv_func_sched_yield=${ac_cv_func_sched_yield='yes'}
ac_cv_func_getuid=${ac_cv_func_getuid='yes'}
ac_cv_prog_cc_g=${ac_cv_prog_cc_g='yes'}
db_cv_uchar=${db_cv_uchar='yes'}
ac_cv_path_install=${ac_cv_path_install='/usr/bin/install -c'}
ac_cv_exeext=${ac_cv_exeext='no'}
ac_cv_func_timegm=${ac_cv_func_timegm='yes'}
db_cv_path_ranlib=${db_cv_path_ranlib='/usr/bin/ranlib'}
ac_cv_func_munlock=${ac_cv_func_munlock='yes'}
ac_cv_header_dirent_dirent_h=${ac_cv_header_dirent_dirent_h='yes'}
ac_cv_func_strftime=${ac_cv_func_strftime='yes'}
db_cv_uimutexes=${db_cv_uimutexes='no'}
ac_cv_prog_gnu_ld=${ac_cv_prog_gnu_ld='yes'}
ac_cv_prog_CXX=${ac_cv_prog_CXX='c++'}
ac_cv_path_db_cv_path_ln=${ac_cv_path_db_cv_path_ln='/bin/ln'}
ac_cv_path_db_cv_path_sh=${ac_cv_path_db_cv_path_sh='/bin/sh'}
ac_cv_func_qsort=${ac_cv_func_qsort='yes'}
db_cv_ssize_t=${db_cv_ssize_t='yes'}
ac_cv_prog_RANLIB=${ac_cv_prog_RANLIB='ranlib'}
ac_cv_header_sys_wait_h=${ac_cv_header_sys_wait_h='yes'}
ac_cv_func_shmget=${ac_cv_func_shmget='yes'}
ac_cv_header_ssl_h=${ac_cv_header_ssl_h='no'}
ac_cv_prog_cxx_cross=${ac_cv_prog_cxx_cross='no'}
ac_cv_sizeof_unsigned_short_int=${ac_cv_sizeof_unsigned_short_int='2'}
ac_cv_func_raise=${ac_cv_func_raise='yes'}
ac_cv_path_SHELL=${ac_cv_path_SHELL='/bin/sh'}
ac_cv_path_SED=${ac_cv_path_SED='/usr/bin/sed'}
ac_cv_lib_z_inflateEnd=${ac_cv_lib_z_inflateEnd='yes'}
ac_cv_header_fcntl_h=${ac_cv_header_fcntl_h='yes'}
ac_cv_func_snprintf=${ac_cv_func_snprintf='yes'}
ac_cv_path_db_cv_path_rm=${ac_cv_path_db_cv_path_rm='/bin/rm'}
ac_cv_path_db_cv_path_mkdir=${ac_cv_path_db_cv_path_mkdir='/bin/mkdir'}
ac_cv_func_mlock=${ac_cv_func_mlock='yes'}
ac_cv_prog_YACC=${ac_cv_prog_YACC='bison -y'}
ac_cv_c_const=${ac_cv_c_const='yes'}
ac_cv_func_strstr=${ac_cv_func_strstr='yes'}
ac_cv_func_memcpy=${ac_cv_func_memcpy='yes'}
ac_cv_func_vsnprintf=${ac_cv_func_vsnprintf='yes'}
db_cv_path_strip=${db_cv_path_strip='/usr/bin/strip'}
db_cv_path_cp=${db_cv_path_cp='/bin/cp'}
db_cv_path_chmod=${db_cv_path_chmod='/bin/chmod'}
db_cv_path_ar=${db_cv_path_ar='/usr/bin/ar'}
db_cv_have_sigfillset=${db_cv_have_sigfillset='yes'}
ac_cv_func_yield=${ac_cv_func_yield='no'}
ac_cv_path_LD=${ac_cv_path_LD='/usr/libexec/elf/ld'}
ac_cv_lib_socket_socket=${ac_cv_lib_socket_socket='no'}
ac_cv_func_mkstemp=${ac_cv_func_mkstemp='yes'}
ac_cv_prog_CC=${ac_cv_prog_CC='gcc'}
ac_cv_func_munmap=${ac_cv_func_munmap='yes'}
db_cv_fcntl_f_setfd=${db_cv_fcntl_f_setfd='yes'}
ac_cv_type_mode_t=${ac_cv_type_mode_t='yes'}
ac_cv_prog_lex_root=${ac_cv_prog_lex_root='lex.yy'}
ac_cv_func_strptime=${ac_cv_func_strptime='yes'}
ac_cv_header_sys_select_h=${ac_cv_header_sys_select_h='yes'}
db_cv_uint8=${db_cv_uint8='yes'}
ac_cv_path_AR=${ac_cv_path_AR='/usr/bin/ar'}
ac_cv_path_TIME=${ac_cv_path_TIME='/usr/bin/time'}
ac_cv_func_sysconf=${ac_cv_func_sysconf='yes'}
ac_cv_prog_LN_S=${ac_cv_prog_LN_S='ln -s'}
ac_cv_header_limits_h=${ac_cv_header_limits_h='yes'}
ac_cv_func_localtime_r=${ac_cv_func_localtime_r='yes'}
ac_cv_header_getopt_h=${ac_cv_header_getopt_h='no'}
ac_cv_header_alloca_h=${ac_cv_header_alloca_h='no'}
ac_cv_sizeof_unsigned_int=${ac_cv_sizeof_unsigned_int='4'}
ac_cv_header_stdc=${ac_cv_header_stdc='yes'}
ac_cv_sizeof_unsigned_long_long_int=${ac_cv_sizeof_unsigned_long_long_int='8'}
db_cv_path_ln=${db_cv_path_ln='/bin/ln'}
ac_cv_func_pstat_getdynamic=${ac_cv_func_pstat_getdynamic='no'}
ac_cv_path_PERL=${ac_cv_path_PERL='/usr/bin/perl'}
ac_cv_header_time=${ac_cv_header_time='yes'}
ac_cv_header_strings_h=${ac_cv_header_strings_h='yes'}
db_cv_path_sh=${db_cv_path_sh='/bin/sh'}
ac_cv_lib_dir_opendir=${ac_cv_lib_dir_opendir='no'}
ac_cv_prog_make_make_set=${ac_cv_prog_make_make_set='yes'}
ac_cv_func_mmap=${ac_cv_func_mmap='yes'}
db_cv_int32=${db_cv_int32='yes'}
db_cv_uint32=${db_cv_uint32='yes'}
db_cv_ulong=${db_cv_ulong='yes'}
ac_cv_prog_cxx_works=${ac_cv_prog_cxx_works='yes'}
ac_cv_header_unistd_h=${ac_cv_header_unistd_h='yes'}
ac_cv_sizeof_unsigned_char=${ac_cv_sizeof_unsigned_char='1'}
db_cv_int16=${db_cv_int16='yes'}
db_cv_uint16=${db_cv_uint16='yes'}
ac_cv_path_NM=${ac_cv_path_NM='/usr/bin/nm -B'}
db_cv_path_rm=${db_cv_path_rm='/bin/rm'}
db_cv_path_mkdir=${db_cv_path_mkdir='/bin/mkdir'}
ac_cv_prog_cc_cross=${ac_cv_prog_cc_cross='no'}
ac_cv_prog_gcc=${ac_cv_prog_gcc='yes'}
zlib_cv_libz=${zlib_cv_libz='yes'}
ac_cv_type_off_t=${ac_cv_type_off_t='yes'}
ac_cv_header_zlib_h=${ac_cv_header_zlib_h='yes'}
ac_cv_header_sys_file_h=${ac_cv_header_sys_file_h='yes'}
ac_cv_func_strerror=${ac_cv_func_strerror='yes'}
db_cv_diagnostic=${db_cv_diagnostic='no'}
ac_cv_prog_cxx_g=${ac_cv_prog_cxx_g='yes'}
ac_cv_type_pid_t=${ac_cv_type_pid_t='yes'}
ac_cv_header_stat_broken=${ac_cv_header_stat_broken='no'}
ac_cv_prog_gxx=${ac_cv_prog_gxx='yes'}
ac_cv_struct_st_blksize=${ac_cv_struct_st_blksize='yes'}
ac_cv_prog_CPP=${ac_cv_prog_CPP='gcc -E'}
ac_cv_path_SENDMAIL=${ac_cv_path_SENDMAIL='/usr/sbin/sendmail'}
zlib_cv_zlib_h=${zlib_cv_zlib_h='yes'}
ac_cv_prog_lex_yytext_pointer=${ac_cv_prog_lex_yytext_pointer='yes'}
ac_cv_header_malloc_h=${ac_cv_header_malloc_h='no'}
ac_cv_header_wait_h=${ac_cv_header_wait_h='no'}
ac_cv_struct_tm=${ac_cv_struct_tm='time.h'}
ac_cv_path_db_cv_path_ranlib=${ac_cv_path_db_cv_path_ranlib='/usr/bin/ranlib'}
db_cv_debug=${db_cv_debug='no'}
ac_cv_path_MV=${ac_cv_path_MV='/bin/mv'}
ac_cv_header_sys_ioctl_h=${ac_cv_header_sys_ioctl_h='yes'}
db_cv_ushort=${db_cv_ushort='yes'}
ac_cv_prog_TAR=${ac_cv_prog_TAR='tar'}
db_cv_debug_rop=${db_cv_debug_rop='no'}
ac_cv_path_GUNZIP=${ac_cv_path_GUNZIP='/usr/bin/gunzip'}
db_cv_posixmutexes=${db_cv_posixmutexes='no'}
ac_cv_prog_LEX=${ac_cv_prog_LEX='flex'}
ac_cv_header_fstream_h=${ac_cv_header_fstream_h='yes'}
ac_cv_func_strdup=${ac_cv_func_strdup='yes'}
db_cv_mutex=${db_cv_mutex='x86/gcc-assembly'}
diff -rub htdig-3.2.0b4-012702/db/mp_cmpr.c htdig-3.2.0b4-012702.patched/db/mp_cmpr.c
--- htdig-3.2.0b4-012702/db/mp_cmpr.c   Mon Oct  9 21:15:29 2000
+++ htdig-3.2.0b4-012702.patched/db/mp_cmpr.c   Wed Jan 30 10:17:34 2002
@@ -46,6 +46,7 @@
 #include <sys/types.h>
 
 #include <errno.h>
+#include <string.h> // for memset
 #endif
 
 #include "db_int.h"
diff -rub htdig-3.2.0b4-012702/htcommon/DocumentDB.cc 
htdig-3.2.0b4-012702.patched/htcommon/DocumentDB.cc
--- htdig-3.2.0b4-012702/htcommon/DocumentDB.cc Wed May 16 10:36:44 2001
+++ htdig-3.2.0b4-012702.patched/htcommon/DocumentDB.cc Wed Jan 30 10:21:57 2002
@@ -354,7 +354,7 @@
 //
 //   The extract will likely not be sorted by anything in particular
 //
-int DocumentDB::DumpDB(const String& filename, int verbose)
+int DocumentDB::DumpDB(const String& filename, int)
 {
     DocumentRef                *ref;
     List               *descriptions, *anchors;
diff -rub htdig-3.2.0b4-012702/htcommon/HtConfiguration.cc 
htdig-3.2.0b4-012702.patched/htcommon/HtConfiguration.cc
--- htdig-3.2.0b4-012702/htcommon/HtConfiguration.cc    Wed May 16 10:36:44 2001
+++ htdig-3.2.0b4-012702.patched/htcommon/HtConfiguration.cc    Wed Jan 30 10:21:57 
+2002
@@ -36,7 +36,7 @@
   if (strcmp("url",name)==0) {  //add URL entry
     URL tmpUrl(strdup(value));
        Dictionary *paths= NULL;
-    if (paths=(Dictionary *)dcUrls[tmpUrl.host()]) {
+    if ((paths=(Dictionary *)dcUrls[tmpUrl.host()])) {
       paths->Add(tmpUrl.path(),aList);
     } else {
       paths=new Dictionary();
@@ -125,8 +125,7 @@
     // or make url list sorted ?
     // or implement abstract Dictionary::Compare?
     const char *strParamUrl=(const char *)aUrl->path();
-       char* confUrl= NULL;
-    while ( confUrl=tmpPtr->Get_Next() ) {   
+    while (char* confUrl=tmpPtr->Get_Next() ) {   
       if (strncmp(confUrl,strParamUrl,strlen(confUrl))==0 
          && (strlen(confUrl)>=candidate.len))  {
        // it seems this URL match better
diff -rub htdig-3.2.0b4-012702/htdig/Retriever.cc 
htdig-3.2.0b4-012702.patched/htdig/Retriever.cc
--- htdig-3.2.0b4-012702/htdig/Retriever.cc     Sun Oct 21 01:13:15 2001
+++ htdig-3.2.0b4-012702.patched/htdig/Retriever.cc     Wed Jan 30 10:21:57 2002
@@ -786,7 +786,7 @@
 //   Parsable object which we can call upon to parse the document contents.
 //
 void
-Retriever::RetrievedDocument(Document &doc, const String &url, DocumentRef *ref)
+Retriever::RetrievedDocument(Document &doc, const String &, DocumentRef *ref)
 {
     n_links = 0;
     current_ref = ref;
diff -rub htdig-3.2.0b4-012702/htdig/Server.cc 
htdig-3.2.0b4-012702.patched/htdig/Server.cc
--- htdig-3.2.0b4-012702/htdig/Server.cc        Sun Jan 13 01:13:13 2002
+++ htdig-3.2.0b4-012702.patched/htdig/Server.cc        Wed Jan 30 10:21:57 2002
@@ -140,7 +140,7 @@
           // allowed by the configuration and possible after
           // having requested the robots.txt file.
 
-          HtHTTP * http;
+          HtHTTP * http = NULL;
           if (IsPersistentConnectionAllowed() &&
                   ( http = doc.GetHTTPHandler()))
           {
diff -rub htdig-3.2.0b4-012702/htnet/Connection.h 
htdig-3.2.0b4-012702.patched/htnet/Connection.h
--- htdig-3.2.0b4-012702/htnet/Connection.h     Sun Dec 23 01:13:14 2001
+++ htdig-3.2.0b4-012702.patched/htnet/Connection.h     Wed Jan 30 10:21:57 2002
@@ -99,7 +99,7 @@
    char           buffer[BUFFER_SIZE];
    int            pos, pos_max;
    // Assignment operator declared private for preventing any use
-   Connection& operator+ (const Connection& rhs) { return *this; }
+   Connection& operator+ (const Connection&) { return *this; }
 
 protected:
    int            sock;
diff -rub htdig-3.2.0b4-012702/htword/WordDBPage.cc 
htdig-3.2.0b4-012702.patched/htword/WordDBPage.cc
--- htdig-3.2.0b4-012702/htword/WordDBPage.cc   Mon Oct  9 21:15:43 2000
+++ htdig-3.2.0b4-012702.patched/htword/WordDBPage.cc   Wed Jan 30 10:21:57 2002
@@ -288,7 +288,7 @@
     return OK;
 }
 void 
-WordDBPage::Uncompress_rebuild(unsigned int **rnums,int *rnum_sizes,int nnums0,byte 
*rworddiffs,int nrworddiffs)
+WordDBPage::Uncompress_rebuild(unsigned int **rnums,int *rnum_sizes,int nnums0,byte 
+*rworddiffs,int)
 {
     int irwordiffs=0;
     int nfields=WordKey::NFields();

Reply via email to