[Nagiosplug-devel] compile error for check_snmp.c

Ton Voon ton.voon at altinity.com
Wed May 24 02:25:07 CEST 2006


Gerhard,

Thanks for the patch. Have applied in CVS. Also added a reminder in  
the dev guidelines not to use declare variables inline.

Ton

On 19 May 2006, at 12:34, Gerhard Lausser wrote:

> Hi,
>
> for those of you, who see the following error message when  
> compiling the
> plugins
>
> check_snmp.c: In function `main':
> check_snmp.c:343: parse error before `char'
> check_snmp.c:344: `str' undeclared (first use in this function)
> check_snmp.c:344: (Each undeclared identifier is reported only once
> check_snmp.c:344: for each function it appears in.)
>
> i made a small patch, which you can download from
> http://people.consol.de/~lausser/nagios/patches.html
> I am not sure, but i think the error occurs when using a gcc < 3.x
>
> Greetings from Munich,
> Gerhard



http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon






More information about the Devel mailing list