<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>

<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV dir=ltr align=left><SPAN class=700105019-03122007><FONT face=Arial 
color=#0000ff>Hi,</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><SPAN class=700105019-03122007><FONT face=Arial 
color=#0000ff>Never compiled this on Solaris.</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><SPAN class=700105019-03122007><FONT face=Arial 
color=#0000ff>It seems it doesn't like : <BR>   static struct option 
long_options[50];</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><SPAN class=700105019-03122007><FONT face=Arial 
color=#0000ff>"struct option" is defined in "getopt.h" I think. Maybe it it 
different with Solaris. </FONT></SPAN></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><SPAN class=700105019-03122007><FONT face=Arial 
color=#0000ff>Regards,</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV dir=ltr align=left><SPAN class=700105019-03122007><FONT face=Arial 
color=#0000ff>Patrick</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma><B>De :</B> nagios-users-bounces@lists.sourceforge.net 
[mailto:nagios-users-bounces@lists.sourceforge.net] <B>De la part de</B> Richard 
Aseltine<BR><B>Envoyé :</B> samedi 1 décembre 2007 15:27<BR><B>À :</B> 
nagios-users@lists.sourceforge.net<BR><B>Objet :</B> [Nagios-users] 
nagios-plugins-snmp solaris 9 compile problem<BR></FONT><BR></DIV>
<DIV></DIV>Has anyone successfully compiled nagios-plugins-snmp C plugins with 
solaris 9? <BR><BR>Solaris 9<BR>gcc 
3.4.6<BR>net-snmp-5.4.1<BR><BR><BR>make  all-recursive<BR>make[1]: Entering 
directory `/home/rha/nagios-plugins-snmp'<BR>Making all in src<BR>make[2]: 
Entering directory `/home/rha/nagios-plugins-snmp/src'<BR>if gcc 
-DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. 
-I..     -g -O2 -Usolaris2 -Dsolaris2=solaris2 
-I/usr/local/ssl/include -I. -I/usr/local/include -MT nagios_common_snmp.o -MD 
-MP -MF ".deps/nagios_common_snmp.Tpo" -c -o nagios_common_snmp.o 
nagios_common_snmp.c; \<BR>        then mv -f 
".deps/nagios_common_snmp.Tpo" ".deps/nagios_common_snmp.Po"; else rm -f 
".deps/nagios_common_snmp.Tpo"; exit 1; fi<BR>nagios_common_snmp.c: In function 
`get_options':<BR>nagios_common_snmp.c:565: error: storage size of 
'long_options' isn't known<BR>nagios_common_snmp.c:565: error: storage size of 
`long_options' isn't known<BR>make[2]: *** [nagios_common_snmp.o] Error 
1<BR>make[2]: Leaving directory `/home/rha/nagios-plugins-snmp/src'<BR>make[1]: 
*** [all-recursive] Error 1<BR>make[1]: Leaving directory 
`/home/rha/nagios-plugins-snmp'<BR>make: *** [all] Error 2<BR><BR>
<HR>
Connect and share in new ways with Windows Live. <A 
href="http://www.windowslive.com/connect.html?ocid=TXT_TAGLM_Wave2_newways_112007" 
target=_new>Connect now!</A> </BODY></HTML>