Re: compilation problem with dnsserver.c

From: Jonathan Larmour <jlarmour@dont-contact.us>
Date: Wed, 10 Feb 1999 23:31:38 +0000

Jon Bernard wrote:
>
> On a SunOS 4.1.3 machine, with egcs-2.91.57, I get the following error
> when compiling:
>
> gcc -o dnsserver -g dnsserver.o -L../lib -lmiscutil -lm -lresolv -lnsl
> /lib/libresolv.a(res_send.o)(.text+0x80): undefined reference to
> `strerror'

The problem is really with your resolver - it should not have used strerror
if it isn't defined on your system. You should be able to work around this
by adding "-lmiscutil" after $(XTRALIBS) around in src/Makefile.in
everywhere you see $(XTRA_LIBS), and then reconfigure. But the problem's
really in your resolver, not squid so you should look at getting that fixed.

Jifl

-- 
Cygnus Solutions, 35 Cambridge Place, Cambridge, UK.  Tel: +44 (1223) 728762
"Women marry hoping their husbands will change, men||Home e-mail: jifl @ 
marry hoping their wives never do. Both are rare." ||     jifvik.demon.co.uk
Help fight spam! http://spam.abuse.net/  These opinions are all my own fault
Received on Wed Feb 10 1999 - 16:15:06 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:44:30 MST