According to De Leeuw Guy:
> I just finished compiling htdig 3.1.5 under AIX.
> But for compiling without error it is necessary to adapt the file
> htdig/Retriever.cc like this :
>
> in function : Retriever::GetLocal(char *url) I added this line
> static String *defaultdoc = 0;
>
> and in line 840 I modify the while like this :
> while (String *defaultdoc = (String *)defaultdocs->Get_Next()) {
> while (defaultdoc = (String *)defaultdocs->Get_Next()) {
>
> in function : Retriever::GetLocalUser(char *url, StringList *defaultdocs) I
> added this line
> static String *defaultdoc = 0;
>
> and in line 967 I modify the while like this :
> while (String* defaultdoc = (String *)defaultdocs->Get_Next()) {
> while (defaultdoc = (String *)defaultdocs->Get_Next()) {
>
> Probably that the IBM compiler does not support declaration in a while
> (strange no).
This is a known problem, and affects other non-GNU compilers too.
The patch is available at ftp.ccsf.org, but you've figured out the fix
on your own.
> The other problem come when I start rundig, see below :
>
> SrvT450: root# rundig -v -c /usr/local/conf/htdig.conf
> DB2 problem...: /ef/gen/htdig/db/db.docdb: unexpected file format
> htdig: Unable to open/create document database '/ef/gen/htdig/db/db.docdb'
>
> htmerge: Unable to create temporary word file
> '/ef/gen/htdig/db/db.wordlist.new'
>
> DB2 problem...: /ef/gen/htdig/db/db.docdb: unexpected file format
> SrvT450: root#
The "unexpected file format" error means the DB code can't read the first
512 byte block from the database. A likely cause is a previous write
error on the database. Do you have sufficient free space on the volume
that holds /ef/gen/htdig/db? Do you have complete read/write access
to it? If it's NFS-mounted, you likely won't have root privileges on
that directory, even if you run rundig as root. Is it mounted read/write
or read-only?
The "Unable to create" error is even more straightforward. An fopen()
call to create a temporary file is failing, again suggesting a problem
with write access to the directory.
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba Phone: (204)789-3766
Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
_______________________________________________
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