Re: compilation problem with dnsserver.c

From: Ettore De Simone <[email protected]>
Date: Thu, 11 Feb 1999 13:38:53 +0100 (MET)

I got that error on every Sun machine I tried it, both on SunOS and Solaris,
and I am not the only one here. It seems to be a peculiarity of those systems...

Modify the Makefile in the src directory as follows:

$(DNSSERVER_EXE): dnsserver.o
        $(CC) -o $@ $(LDFLAGS) dnsserver.o ../lib/strerror.o $(DNSSERVER_LIBS)

this will force linking strerror.o to dnsserver.

(It seems the linker isn't able to find strerror.o in libmiscutil. I still
can't understand why, as I can see it using ar)

On 10-Feb-99 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'
> /lib/libresolv.a(res_send.o)(.text+0x10c): undefined reference to
> `strerror'
> collect2: ld returned 1 exit status
> make[1]: *** [dnsserver] Error 1
> make[1]: Leaving directory `/nfs/nerdy/u14/src/squid-2.0.RELEASE/src'
> make: *** [all] Error 1

----------------------------------
E-Mail: Ettore De Simone <teier10@xtsfs01.tei.ericsson.se>
Date: 11-Feb-99
Time: 13:38:53

This message was sent by XFMail
----------------------------------
Received on Thu Feb 11 1999 - 06:34:46 MST

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