Howdy All

I am having some problems compiling htdig version 3.2.04b-010602 on Tru64 Unix 5.1 
using gcc version 3.0,
GNU Make version 3.79.1.
It seems I come across all these common problems for most of the 3.2 versions of 
htdig. For some I have found
temp fixes that allow me to compile to the next problem.


It seems that there is something strange going on with the definition of vnsprint. If 
you notice the configure script
seems to know about the system defined one. Yet when the make comes through the 
#define that is supposed to be set
to stop multiple definition appears not to be. Commenting out the second definition 
seems to fix it.

checking for strstr... yes
checking for getcwd... yes
checking for memcmp... yes
checking for memcpy... yes
checking for memmove... yes
checking for raise... yes
checking for mkstemp... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for strftime... yes
checking for strptime... yes
checking for strptime declaration in time.h... yes
checking for localtime_r... yes
checking for timegm... no

Making all in htlib
gmake[1]: Entering directory `/u00/app/htdig/htdig-3.2.0b4-010602/htlib'
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../include 
-DDEFAULT_CONFIG_FILE=\"/opt/www/conf/htdig.conf\"      -
I../include -I../htlib          -I../htnet -I../htcommon                -I../htword    
         -I../db -I../db                    -
I/usr/local/include  -g -O2 -Wall -fno-rtti -fno-exceptions -c strptime.cc
rm -f .libs/strptime.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../include 
-DDEFAULT_CONFIG_FILE=\"/opt/www/conf/htdig.conf\" -I../include -I../htlib -I../htnet 
-I../
htcommon -I../htword -I../db -I../db -I/usr/local/include -g -O2 -Wall -fno-rtti 
-fno-exceptions -Wp,-MD,.deps/strptime.pp -c strpti
me.cc  -DPIC -o .libs/strptime.lo
In file included from /usr/include/mesg.h:52,
                 from /usr/include/nl_types.h:75,
                 from /usr/include/sys/lc_core.h:58,
                 from /usr/include/sys/localedef.h:76,
                 from /usr/include/ctype.h:108,
                 from strptime.cc:44:
/usr/local/lib/gcc-lib/alphaev6-dec-osf5.1/3.0/include/stdio.h:226: declaration
   of C function `int vsnprintf(char*, long unsigned int, const char*,
   __va_list_tag)' conflicts with
clib.h:45: previous declaration `int vsnprintf(char*, long unsigned int, const
   char*, ...)' here
strptime.cc: In function `char* mystrptime(const char*, const char*, tm*)':
strptime.cc:86: warning: `int len' might be used uninitialized in this function
gmake[1]: *** [strptime.lo] Error 1
gmake[1]: Leaving directory `/u00/app/htdig/htdig-3.2.0b4-010602/htlib'
gmake: *** [all-recursive] Error 1

clib.h    (Temp Fix)
/*
#ifndef HAVE_VSNPRINTF
int vsnprintf(char *, size_t, const char *, ...);
#endif
*/



It seems that there is a duplicate definition of the type regoff_t once by the system 
and once by the htdig code.
Changing the definitions so that they match seems to fix the problem, after looking 
through the system definitions
I found that off_t was defined as type int anyway.

Making all in htlib
gmake[1]: Entering directory `/u00/app/htdig/htdig-3.2.0b4-010602/htlib'
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../include 
-DDEFAULT_CONFIG_FILE=\"/opt/www/conf/htdig.conf\"      -
I../include -I../htlib          -I../htnet -I../htcommon                -I../htword    
         -I../db -I../db                    -
I/usr/local/include  -g -O2 -Wall -fno-rtti -fno-exceptions -c HtRegex.cc
rm -f .libs/HtRegex.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../include 
-DDEFAULT_CONFIG_FILE=\"/opt/www/conf/htdig.conf\" -I../include -I../htlib -I../htnet 
-I../
htcommon -I../htword -I../db -I../db -I/usr/local/include -g -O2 -Wall -fno-rtti 
-fno-exceptions -Wp,-MD,.deps/HtRegex.pp -c HtRegex
.cc  -DPIC -o .libs/HtRegex.lo
In file included from HtRegex.h:25,
                 from HtRegex.cc:19:
regex.h:400: conflicting types for `typedef int regoff_t'
/usr/include/reg_types.h:49: previous declaration as `typedef off_t regoff_t'
gmake[1]: *** [HtRegex.lo] Error 1
gmake[1]: Leaving directory `/u00/app/htdig/htdig-3.2.0b4-010602/htlib'
gmake: *** [all-recursive] Error 1

hlib/regex.h    (temp fix)
/* Type for byte offsets within the string.  POSIX mandates this.  */
//typedef int regoff_t;
typedef off_t regoff_t;


There also appears to be some conflict with the system defined macro stat() in 
sys/stat.h which accepts only 2 params
and the one defined by the database section of the code which takes 4 params. I tried 
excluding the header file with no
success as other definitions contained in it are lost. So I found that renaming the 
database stat function to Stat got around
the problem.

Making all in htdig
gmake[1]: Entering directory `/u00/app/htdig/htdig-3.2.0b4-010602/htdig'
c++ -DHAVE_CONFIG_H -I. -I. -I../include 
-DDEFAULT_CONFIG_FILE=\"/opt/www/conf/htdig.conf\"             -I../include -I../htlib 
   -
I../htnet -I../htcommon                 -I../htword             -I../db -I../db        
            -I/usr/local/include  -g -O2 -Wal
l -fno-rtti -fno-exceptions -c Document.cc
In file included from ../htword/WordList.h:82,
                 from ../htcommon/HtWordList.h:23,
                 from ../htcommon/DocumentRef.h:22,
                 from Retriever.h:21,
                 from Parsable.h:19,
                 from Document.h:25,
                 from Document.cc:31:
../htword/WordDB.h:103:57: macro "stat" passed 4 arguments, but takes just 2
In file included from ../htword/WordList.h:82,
                 from ../htcommon/HtWordList.h:23,
                 from ../htcommon/DocumentRef.h:22,
                 from Retriever.h:21,
                 from Parsable.h:19,
                 from Document.h:25,
                 from Document.cc:31:
../htword/WordDB.h: In member function `int WordDB::Stat(void*, void*(*)(long
   unsigned int), int)':
../htword/WordDB.h:103: cannot convert `int (*)(DB*, void*, void*(*)(long
   unsigned int), unsigned int)' to `int' in return



db/db.h
        int  (*stat) __P((DB *, void *, void *(*)(size_t), u_int32_t));

(Fixed line)        int  (*Stat) __P((DB *, void *, void *(*)(size_t), u_int32_t));

db/bt_open.c      Change references from stat to Stat
db/bt_recno.c
db/db_method.c
(there are a couple of others but I forgot to note them down)

htword/WordDB.h
  inline int Stat(void *sp, void *(*db_malloc)(size_t), int flags) {
    if(!is_open) return DB_UNKNOWN;
    return db->stat(db, sp, db_malloc, (u_int32_t) flags);
  }

  (note change of stat to Stat)
  inline int Stat(void *sp, void *(*db_malloc)(size_t), int flags) {
    if(!is_open) return DB_UNKNOWN;
    return db->Stat(db, sp, db_malloc, (u_int32_t) flags);
  }


Now the problem that I have no idea how to fix or where to start looking.

gmake[1]: Entering directory `/u00/app/htdig/htdig-3.2.0b4-010602/htdig'
c++ -DHAVE_CONFIG_H -I. -I. -I../include 
-DDEFAULT_CONFIG_FILE=\"/opt/www/conf/htdig.conf\"             -I../include -I../htlib 
   -
I../htnet -I../htcommon                 -I../htword             -I../db -I../db        
            -I/usr/local/include  -g -O2 -Wal
l -fno-rtti -fno-exceptions -c Document.cc
c++ -DHAVE_CONFIG_H -I. -I. -I../include 
-DDEFAULT_CONFIG_FILE=\"/opt/www/conf/htdig.conf\"             -I../include -I../htlib 
   -
I../htnet -I../htcommon                 -I../htword             -I../db -I../db        
            -I/usr/local/include  -g -O2 -Wal
l -fno-rtti -fno-exceptions -c HTML.cc
c++ -DHAVE_CONFIG_H -I. -I. -I../include 
-DDEFAULT_CONFIG_FILE=\"/opt/www/conf/htdig.conf\"             -I../include -I../htlib 
   -
I../htnet -I../htcommon                 -I../htword             -I../db -I../db        
            -I/usr/local/include  -g -O2 -Wal
l -fno-rtti -fno-exceptions -c Parsable.cc
c++ -DHAVE_CONFIG_H -I. -I. -I../include 
-DDEFAULT_CONFIG_FILE=\"/opt/www/conf/htdig.conf\"             -I../include -I../htlib 
   -
I../htnet -I../htcommon                 -I../htword             -I../db -I../db        
            -I/usr/local/include  -g -O2 -Wal
l -fno-rtti -fno-exceptions -c Plaintext.cc
c++ -DHAVE_CONFIG_H -I. -I. -I../include 
-DDEFAULT_CONFIG_FILE=\"/opt/www/conf/htdig.conf\"             -I../include -I../htlib 
   -
I../htnet -I../htcommon                 -I../htword             -I../db -I../db        
            -I/usr/local/include  -g -O2 -Wal
l -fno-rtti -fno-exceptions -c Retriever.cc
c++ -DHAVE_CONFIG_H -I. -I. -I../include 
-DDEFAULT_CONFIG_FILE=\"/opt/www/conf/htdig.conf\"             -I../include -I../htlib 
   -
I../htnet -I../htcommon                 -I../htword             -I../db -I../db        
            -I/usr/local/include  -g -O2 -Wal
l -fno-rtti -fno-exceptions -c Server.cc
Server.cc: In member function `void Server::push(const String&, int, const
   String&, int, int)':
Server.cc:329: no matching function for call to `URL::URL(const URL)'
../htcommon/URL.h:27: candidates are: URL::URL(URL&)
../htcommon/URL.h:26:                 URL::URL(const String&)
Server.cc:329:   initializing argument 1 of `void URLRef::SetURL(const URL&)'
   from result of `URL::URL(const String&)'
Server.cc:331: no matching function for call to `URL::URL(const URL)'
../htcommon/URL.h:27: candidates are: URL::URL(URL&)
../htcommon/URL.h:26:                 URL::URL(const String&)
Server.cc:331:   initializing argument 1 of `void URLRef::SetReferer(const
   URL&)' from result of `URL::URL(const String&)'
gmake[1]: *** [Server.o] Error 1
gmake[1]: Leaving directory `/u00/app/htdig/htdig-3.2.0b4-010602/htdig'
gmake: *** [all-recursive] Error 1


Any help greatly recieved.

Michael Tock
[EMAIL PROTECTED]

=========================================================================================
THIS MESSAGE HAS BEEN SENT FROM NZMP, PART OF THE FONTERRA CO-OPERATIVE GROUP LIMITED 
("FONTERRA)".

CAUTION: THIS MESSAGE MAY CONTAIN LEGALLY PRIVILEGED AND/OR CONFIDENTIAL INFORMATION.
YOU MAY BE LIABLE FOR ANY DISCLOSURE, COPYING, USE OR RETENTION BY YOU OF THE 
INFORMATION IN THIS MESSAGE WHICH IS NOT EXPRESSLY AUTHORISED BY FONTERRA. IF YOU ARE 
NOT THE INTENDED RECIPIENT, PLEASE NOTIFY THE SENDER BY RETURN EMAIL AND DELETE THIS 
MESSAGE AND ANY ATTACHMENTS FROM YOUR SYSTEM.

STATEMENTS AND INFORMATION IN THIS MESSAGE THAT DO NOT RELATE TO THE OFFICIAL BUSINESS 
OF FONTERRA ARE NOT GIVEN OR ENDORSED BY IT.

_______________________________________________
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