[61] in Hesiod

home help back first fref pref prev next nref lref last post

Re: your mail

daemon@ATHENA.MIT.EDU (Bruce Howard)
Tue Sep 24 17:17:43 1991

From: Bruce Howard <bhoward@citi.umich.edu>
To: nabors@bart.MIT.EDU
Cc: hesiod@Athena.MIT.EDU
Date: Tue, 24 Sep 91 17:12:34 EDT
In-Reply-To: <9109242100.AA03728@bart>; from "nabors@bart.MIT.EDU" at Sep 24, 91 4:00 pm

> [text deleted]
> ranlib hesiod_p.a
> cc -O  -DHESIOD -o hesinfo hesinfo.c hesiod.a
> ld: Undefined symbol 
>    _res_mkquery 
>    __res 
>    _res_send 
>    __getshort 
> *** Error code 2
> make: Fatal error: Command failed for target `hesinfo'
> 
> 

those unresolved routines are from the bind resolver code.  you need to do:

	cc -O  -DHESIOD -o hesinfo hesinfo.c hesiod.a -lresolv

the -lresolv (assuming the file libresolv.a exists somewhere in your library
search path) will cause the name server resolv routines to be linked into your
program.

					bruce

home help back first fref pref prev next nref lref last post