<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Errors on Solaris 2.5</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Ok.. I got my Solaris 7 nrpe installed.. Now I am fighting with 2.5. Thanks ahead of time for any help :)</FONT>
</P>
<P><FONT SIZE=2>I have autoconf v2.53</FONT>
<BR><FONT SIZE=2>I have automake v1.4</FONT>
<BR><FONT SIZE=2>gcc v2.95.3</FONT>
<BR><FONT SIZE=2>glib v1.2.10</FONT>
</P>
<P><FONT SIZE=2>I get the following:</FONT>
</P>
<P><FONT SIZE=2>cd ./src/; make ; cd ..</FONT>
<BR><FONT SIZE=2>make[1]: Entering directory `/mhome/jskains/work/mon/nrpe-1.5/src'</FONT>
<BR><FONT SIZE=2>gcc -g -O2 -DHAVE_CONFIG_H -lnsl -lsocket nrpe.c netutils.c -o nrpe</FONT>
<BR><FONT SIZE=2>Undefined first referenced</FONT>
<BR><FONT SIZE=2> symbol in file</FONT>
<BR><FONT SIZE=2>snprintf /var/tmp/cc88wkDn.o</FONT>
<BR><FONT SIZE=2>ld: fatal: Symbol referencing errors. No output written to nrpe</FONT>
<BR><FONT SIZE=2>collect2: ld returned 1 exit status</FONT>
<BR><FONT SIZE=2>make[1]: *** [nrpe] Error 1</FONT>
<BR><FONT SIZE=2>make[1]: Leaving directory `/mhome/jskains/work/mon/nrpe-1.5/src'</FONT>
</P>
<BR>
<P><FONT SIZE=2>I get the following when I do a configure:</FONT>
</P>
<P><FONT SIZE=2>creating cache ./config.cache</FONT>
<BR><FONT SIZE=2>checking for a BSD compatible install... ./install-sh -c</FONT>
<BR><FONT SIZE=2>checking for gcc... gcc</FONT>
<BR><FONT SIZE=2>checking whether the C compiler (gcc ) works... yes</FONT>
<BR><FONT SIZE=2>checking whether the C compiler (gcc ) is a cross-compiler... no</FONT>
<BR><FONT SIZE=2>checking whether we are using GNU C... yes</FONT>
<BR><FONT SIZE=2>checking whether gcc accepts -g... yes</FONT>
<BR><FONT SIZE=2>checking whether make sets ${MAKE}... yes</FONT>
<BR><FONT SIZE=2>checking how to run the C preprocessor... gcc -E</FONT>
<BR><FONT SIZE=2>checking for ANSI C header files... yes</FONT>
<BR><FONT SIZE=2>checking whether time.h and sys/time.h may both be included... yes</FONT>
<BR><FONT SIZE=2>checking for sys/wait.h that is POSIX.1 compatible... yes</FONT>
<BR><FONT SIZE=2>checking for ctype.h... yes</FONT>
<BR><FONT SIZE=2>checking for errno.h... yes</FONT>
<BR><FONT SIZE=2>checking for fcntl.h... yes</FONT>
<BR><FONT SIZE=2>checking for grp.h... yes</FONT>
<BR><FONT SIZE=2>checking for netdb.h... yes</FONT>
<BR><FONT SIZE=2>checking for pwd.h... yes</FONT>
<BR><FONT SIZE=2>checking for signal.h... yes</FONT>
<BR><FONT SIZE=2>checking for strings.h... yes</FONT>
<BR><FONT SIZE=2>checking for string.h... yes</FONT>
<BR><FONT SIZE=2>checking for syslog.h... yes</FONT>
<BR><FONT SIZE=2>checking for unistd.h... yes</FONT>
<BR><FONT SIZE=2>checking for arpa/inet.h... yes</FONT>
<BR><FONT SIZE=2>checking for netinet/in.h... yes</FONT>
<BR><FONT SIZE=2>checking for sys/types.h... yes</FONT>
<BR><FONT SIZE=2>checking for sys/time.h... yes</FONT>
<BR><FONT SIZE=2>checking for sys/resource.h... yes</FONT>
<BR><FONT SIZE=2>checking for sys/wait.h... (cached) yes</FONT>
<BR><FONT SIZE=2>checking for sys/socket.h... yes</FONT>
<BR><FONT SIZE=2>checking for sys/stat.h... yes</FONT>
<BR><FONT SIZE=2>checking for working const... yes</FONT>
<BR><FONT SIZE=2>checking whether struct tm is in sys/time.h or time.h... time.h</FONT>
<BR><FONT SIZE=2>checking for mode_t... yes</FONT>
<BR><FONT SIZE=2>checking for pid_t... yes</FONT>
<BR><FONT SIZE=2>checking for size_t... yes</FONT>
<BR><FONT SIZE=2>checking return type of signal handlers... void</FONT>
<BR><FONT SIZE=2>checking for uid_t in sys/types.h... yes</FONT>
<BR><FONT SIZE=2>checking type of array argument to getgroups... gid_t</FONT>
<BR><FONT SIZE=2>checking for main in -lnsl... yes</FONT>
<BR><FONT SIZE=2>checking for socket in -lsocket... yes</FONT>
<BR><FONT SIZE=2>checking for strdup... yes</FONT>
<BR><FONT SIZE=2>checking for strstr... yes</FONT>
<BR><FONT SIZE=2>checking for strtoul... yes</FONT>
<BR><FONT SIZE=2>checking for initgroups... yes</FONT>
<BR><FONT SIZE=2>checking for type of socket size... size_t</FONT>
<BR><FONT SIZE=2>updating cache ./config.cache</FONT>
<BR><FONT SIZE=2>creating ./config.status</FONT>
<BR><FONT SIZE=2>creating Makefile</FONT>
<BR><FONT SIZE=2>creating src/Makefile</FONT>
<BR><FONT SIZE=2>creating nrpe.cfg</FONT>
<BR><FONT SIZE=2>creating common/config.h</FONT>
</P>
<BR>
<P><FONT SIZE=2>*** Configuration summary for nrpe 1.5 06-03-2002 ***:</FONT>
</P>
<P><FONT SIZE=2> General Options:</FONT>
<BR><FONT SIZE=2> -------------------------</FONT>
<BR><FONT SIZE=2> NRPE user: nagios</FONT>
<BR><FONT SIZE=2> NRPE group: nagios</FONT>
</P>
<BR>
<P><FONT SIZE=2>Review the options above for accuracy. If they look okay,</FONT>
<BR><FONT SIZE=2>type 'make all' to compile the NRPE daemon and client.</FONT>
</P>
</BODY>
</HTML>