[Nagiosplug-help] check_radius compiling problem for Solaris

Kenytt Avery kavery at willingminds.com
Mon Sep 16 11:12:06 CEST 2002


Thus spake Daniel Rubio:

> gcc -Wall -g  -c log.c
> gcc  -o check_radius check_radius.o md5.o util.o \
>         dict.o attrprint.o log.o
> Undefined                       first referenced
>  symbol                             in file
> socket                              check_radius.o
> gethostbyname                       util.o
> bind                                check_radius.o
> getservbyname                       check_radius.o
> gethostbyaddr                       util.o
> sendto                              check_radius.o
> recvfrom                            check_radius.o
> ld: fatal: Symbol referencing errors. No output written to check_radius
> collect2: ld returned 1 exit status
> make: *** [check_radius] Error 1

There are libraries missing that need to be linked in.  I had to do

$ LIBS='-lsocket -lnsl -lresolv' make -e

from the check_radius directory to get it to compile.


-----
Kenytt Avery <kavery at willingminds.com>
Senior Consultant, Willing Minds LLC
Tel/Fax: 949-623-9854
Web: www.willingminds.com





More information about the Help mailing list