Re: htdig


by way of Andrew Atkinson (I.Walker@compserv.gla.ac.uk)
Mon, 09 Feb 1998 12:11:49 +0000


Andrew

Thankyou very much for sending your htdig program as an attachment.
We have had a few problems trying to install and compile the code though.
If you have time could you look at the following email to myself from our
resident Unix expert.
If not, well thanks anyway.

Cheers

Andy

*************

Andy,

The errors below show how far I have got with the compilation of htdig. I
have listed the errors produced during the 'make' stage of the installation
and a 'diff' giving the changes to the file modified to get round the
error. gethostname (which relates to the final error) appears to be a valid
call - although I have to confess I know almost nothing about c++.

Would it be possible to check the following with the guy who wrote/supports
htdig. I have tried on a SPARCstation 5 and a Sun ULTRA 1 both running
Solaris 2.5.1. The SPARCstation has c++ SC3.0.1 and the ULTRA c++ V4.1. Both
give the same behaviour.

Thanks,

Ian.

--
 Dr Ian W Walker                         DEC Systems Coordinator
 UNIX Systems Support                    -------------------------------------
 Computing Service                       E-mail : i.walker@compserv.gla.ac.uk
 Glasgow University                      Phone  : 041-330-4892
 Glasgow G12 8QQ                         Fax    : 041-330-4808

------------------------------------------------------------------------------- CC -c -g -DDEFAULT_CONFIG_FILE=\"/local/WWW/htdig/conf/htdig.conf\" -I../htlib -I../htcommon -I../include -I../gdbm-1.7.3 -I../rx-1.5/rx Connection.cc "Connection.cc", line 380: Warning: buffer hides io::buffer. "Connection.cc", line 398: Warning: buffer hides io::buffer. "Connection.cc", line 420: Warning: buffer hides io::buffer. "Connection.cc", line 465: Warning: peer hides Connection::peer. "Connection.cc", line 489: Error: The function gethostname must have a prototype. 1 Error(s) and 4 Warning(s) detected.

Connection.cc in ./htlib: ------------------------ # diff Connection.cc.orig Connection.cc 487a488 > extern int gethostname(char *name, int namelen);

CC -c -g -DDEFAULT_CONFIG_FILE=\"/local/WWW/htdig/conf/htdig.conf\" -I../htlib -I../htcommon -I../include -I../gdbm-1.7.3 -I../rx-1.5/rx Exact.cc "Exact.cc", line 51: Error: Exact::openIndex(Configuration&) is expected to return a value. 1 Error(s) detected.

Exact.cc in ./htfuzzy: --------------------- # diff Exact.cc.orig Exact.cc 50a51 > return 0;

CC -c -g -DDEFAULT_CONFIG_FILE=\"/local/WWW/htdig/conf/htdig.conf\" -I../htlib -I../htcommon -I../include -I../gdbm-1.7.3 -I../rx-1.5/rx Substring.cc "Substring.cc", line 82: Error: Substring::openIndex(Configuration&) is expected to return a value. 1 Error(s) detected.

Substring.cc in ./htfuzzy: ------------------------- # diff Substring.cc.orig Substring.cc 81a82 > return 0;

CC -c -g -DDEFAULT_CONFIG_FILE=\"/local/WWW/htdig/conf/htdig.conf\" -I../htlib -I../htcommon -I../include -I../gdbm-1.7.3 -I../rx-1.5/rx Document.cc "../htcommon/DocumentRef.h", line 128: Warning: DocumentRef::Deserialize hides the virtual function Object::Deserialize(String&, int&). "Document.h", line 71: Warning: url hides Document::url. "Document.cc", line 204: Warning (Anachronism): Temporary used for non-const reference, now obsolete. "Document.cc", line 204: Note: Type "CC -migration" for more on anachronisms. "Document.cc", line 257: Error: Cannot assign void(*)(...) to void(*)(int). "Document.cc", line 311: Warning (Anachronism): Temporary used for non-const reference, now obsolete. "Document.cc", line 380: Error: Cannot assign void(*)(...) to void(*)(int). 2 Error(s) and 4 Warning(s) detected.

Document.cc in ./htdig: ---------------------- # diff Document.cc.orig Document.cc 254c254 < #ifdef _AIX

---
> // #ifdef _AIX
256,258c256,258
< #else
<     sa.sa_handler = (SIGNAL_HANDLER) timeout;
< #endif
---
> // #else
> //     sa.sa_handler = (SIGNAL_HANDLER) timeout;
> // #endif
377c377
< #ifdef _AIX
---
> // #ifdef _AIX
379,381c379,381
< #else
<     sa.sa_handler = (SIGNAL_HANDLER) timeout;
< #endif
---
> // #else
> //     sa.sa_handler = (SIGNAL_HANDLER) timeout;
> // #endif

CC -o htdig -L../htlib -L../htcommon -L../gdbm-1.7.3 -L../rx-1.5/rx Document.o HTML.o Images.o Parsable.o Plaintext.o Postscript.o Retriever.o SGMLEntities.o Server.o URLRef.o main.o ExternalParser.o -lcommon -lht -lgdbm -lrx Undefined first referenced symbol in file socket ../htlib/libht.a(Connection.o) getpeername ../htlib/libht.a(Connection.o) gethostbyname ../htlib/libht.a(Connection.o) accept ../htlib/libht.a(Connection.o) bind ../htlib/libht.a(Connection.o) setsockopt ../htlib/libht.a(Connection.o) rresvport ../htlib/libht.a(Connection.o) getservbyname ../htlib/libht.a(Connection.o) gethostbyaddr ../htlib/libht.a(Connection.o) inet_addr ../htlib/libht.a(Connection.o) inet_ntoa ../htlib/libht.a(Connection.o) getsockname ../htlib/libht.a(Connection.o) gethostname(char*, int) ../htlib/libht.a(Connection.o) listen ../htlib/libht.a(Connection.o) connect ../htlib/libht.a(Connection.o) ld: fatal: Symbol referencing errors. No output written to htdig *** Error code 1

Makefile.config in ./ : ---------------------- # diff Makefile.config.orig Makefile.config 28c28 < LIBS= -lcommon -lht -lgdbm -lrx

---
> LIBS=         -lcommon -lht -lgdbm -lrx -lnsl -lsocket -lresolv -lc

C -o htdig -L../htlib -L../htcommon -L../gdbm-1.7.3 -L../rx-1.5/rx Document.o HTML.o Images.o Parsable.o Plaintext.o Postscript.o Retriever.o SGMLEntities.o Server.o URLRef.o main.o ExternalParser.o -lcommon -lht -lgdbm -lrx -lnsl -lsocket -lresolv -lc

Undefined first referenced symbol in file gethostname(char*, int) ../htlib/libht.a(Connection.o) ld: fatal: Symbol referencing errors. No output written to htdig *** Error code 1



This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:25:41 PST