<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Errors on Solaris 2.5</TITLE>
<META content="MSHTML 6.00.2716.2200" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><SPAN class=839313216-27082002><FONT face=Arial><FONT color=#0000ff><FONT
size=2>Seems to be ignoring the snprintf library... :(<SPAN
class=877043316-27082002> Any
thoughts???</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=839313216-27082002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=839313216-27082002><FONT face=Arial color=#0000ff
size=2>JMS</FONT></SPAN></DIV></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Josh Skains <BR><B>Sent:</B>
Tuesday, August 27, 2002 9:11 AM<BR><B>To:</B> Josh Skains;
'nagios-users@lists.sourceforge.net'<BR><B>Subject:</B> RE: [Nagios-users]
Errors on Solaris 2.5<BR><BR></FONT></DIV>
<DIV><SPAN class=925541016-27082002><FONT face=Arial color=#0000ff size=2>Wow,
I found a snprintf package from SunFreeware....</FONT></SPAN></DIV>
<DIV><SPAN class=925541016-27082002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=925541016-27082002><FONT face=Arial color=#0000ff
size=2>JMS</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Josh Skains
[mailto:JSkains@deltad.com]<BR><B>Sent:</B> Tuesday, August 27, 2002 7:48
AM<BR><B>To:</B> 'nagios-users@lists.sourceforge.net'<BR><B>Subject:</B>
[Nagios-users] Errors on Solaris 2.5<BR><BR></FONT></DIV>
<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></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>