Re: htdig: Undefined Symbols in htdig compile


Andrew Scherpbier (andrew@contigo.com)
Thu, 10 Sep 1998 07:41:24 -0700


Brian K. Justice wrote:
>
> All,
>
> Hello there. I'mtrying to compile htdig under Solaris 2.6, with
> gcc 2.8.1, libg++ 2.7.2, and libstdc++ 2.8.1.1. This was a *very* bare
> system, so after getting all the above and then some, I'm getting the
> following error trying to compile htdig:
>
> ------------------------------------------------
> 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 S
> erver.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)
> timegm Document.o
> inet_ntoa ../htlib/libht.a(Connection.o)
> getsockname ../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
> make[1]: *** [htdig] Error 1
> ------------------------------------------------
>
> The htlib/libht.a library compiles cleanly, and obviously
> exists. What's up? Any help much appreciated..........

Looks like configure missed the fact that your system needs to pass '-lsocket
-lnsl' to the loader.
Change the LIBS= line in Makefile.config and run make again. That should take
care of it.

-- 
Andrew Scherpbier <andrew@contigo.com>
Contigo Software <http://www.contigo.com/>
----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-request@sdsu.edu containing the single word "unsubscribe" in
the body of the message.



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