<!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>RE: [Nagios-users] Errors on Solaris 2.5</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>autoheader is attached to the autoconf package, and both are 2.53</FONT>
</P>
<P><FONT SIZE=2>I've even done an LD_LIBRARY_PATH=/usr/local/bin with no additional luck. I've even moved libsnprintf.so and libsnprintf.a to the src directory with no additonal luck.</FONT></P>
<P><FONT SIZE=2>I've installed a new version of binutils, and the error is just formatted differently now:</FONT>
</P>
<P><FONT SIZE=2>root@:/mhome/jskains/work/mon/nrpe-1.5>make</FONT>
<BR><FONT SIZE=2>make: *** Warning: File `Makefile' has modification time in the future (2002-08-28 12:22:17 > 2002-08-28 12:21:58.280481</FONT></P>
<P><FONT SIZE=2>793)</FONT>
<BR><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>make[1]: *** Warning: File `Makefile' has modification time in the future (2002-08-28 12:22:17 > 2002-08-28 12:21:58.342</FONT></P>
<P><FONT SIZE=2>730602)</FONT>
<BR><FONT SIZE=2>gcc -g -O2 -DHAVE_CONFIG_H -lnsl -lsocket nrpe.c netutils.c -o nrpe</FONT>
<BR><FONT SIZE=2>/var/tmp/cczIIrtk.o: In function `wait_for_connections':</FONT>
<BR><FONT SIZE=2>/mhome/jskains/work/mon/nrpe-1.5/src/nrpe.c:446: undefined reference to `snprintf'</FONT>
<BR><FONT SIZE=2>/var/tmp/cczIIrtk.o: In function `handle_connection':</FONT>
<BR><FONT SIZE=2>/mhome/jskains/work/mon/nrpe-1.5/src/nrpe.c:554: undefined reference to `snprintf'</FONT>
<BR><FONT SIZE=2>/mhome/jskains/work/mon/nrpe-1.5/src/nrpe.c:569: undefined reference to `snprintf'</FONT>
<BR><FONT SIZE=2>/mhome/jskains/work/mon/nrpe-1.5/src/nrpe.c:591: undefined reference to `snprintf'</FONT>
<BR><FONT SIZE=2>/mhome/jskains/work/mon/nrpe-1.5/src/nrpe.c:593: undefined reference to `snprintf'</FONT>
<BR><FONT SIZE=2>/var/tmp/cczIIrtk.o:/mhome/jskains/work/mon/nrpe-1.5/src/nrpe.c:725: more undefined references to `snprintf' follow</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>
<P><FONT SIZE=2>*** Compile finished ***</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Rusch, Daniel [<A HREF="mailto:Daniel.Rusch@GlobalCrossing.com">mailto:Daniel.Rusch@GlobalCrossing.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, August 28, 2002 12:27 PM</FONT>
<BR><FONT SIZE=2>To: 'Josh Skains'; 'nagios-users@lists.sourceforge.net'</FONT>
<BR><FONT SIZE=2>Subject: RE: [Nagios-users] Errors on Solaris 2.5</FONT>
</P>
<BR>
<P><FONT SIZE=2>I apologize if you have done these already just trying to help</FONT>
</P>
<P><FONT SIZE=2>Have you checked you autoheader version?</FONT>
</P>
<P><FONT SIZE=2>How about your path? which make is it pointing at? </FONT>
</P>
<P><FONT SIZE=2>Which version of make?</FONT>
</P>
<BR>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Josh Skains [<A HREF="mailto:JSkains@deltad.com">mailto:JSkains@deltad.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Tuesday, August 27, 2002 9:48 AM</FONT>
<BR><FONT SIZE=2>To: 'nagios-users@lists.sourceforge.net'</FONT>
<BR><FONT SIZE=2>Subject: [Nagios-users] Errors on Solaris 2.5</FONT>
</P>
<BR>
<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>
<BR><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>
<BR><FONT SIZE=2>I get the following: </FONT>
<BR><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>
<BR><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>
<BR><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>