Issue with compiling "nagios plugin"
Posted: Thu Jan 14, 2016 11:13 am
Hey guys,
I have this issue when I tried to "make" the nagios plugin. Can someone help me out with this issue.
I have this issue when I tried to "make" the nagios plugin. Can someone help me out with this issue.
Code: Select all
make all-recursive
make[3]: Entering directory `/www/nagios/nagios-plugins-2.0.3/gl'
make[4]: Entering directory `/www/nagios/nagios-plugins-2.0.3/gl'
depbase=`echo base64.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT base64.o -MD -MP -MF $depbase.Tpo -c -o base64.o base64.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo sha1.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT sha1.o -MD -MP -MF $depbase.Tpo -c -o sha1.o sha1.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from ./stdint.h:102,
from sha1.h:23,
from sha1.c:26:
/usr/include/inttypes.h:298: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘imaxabs’
/usr/include/inttypes.h:301: error: expected ‘)’ before ‘__numer’
/usr/include/inttypes.h:305: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strtoimax’
/usr/include/inttypes.h:309: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strtoumax’
/usr/include/inttypes.h:313: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wcstoimax’
/usr/include/inttypes.h:318: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wcstoumax’
/usr/include/inttypes.h:332: error: expected ‘,’ or ‘;’ before ‘strtoimax’
/usr/include/inttypes.h:345: error: expected ‘,’ or ‘;’ before ‘strtoumax’
/usr/include/inttypes.h:357: error: expected ‘,’ or ‘;’ before ‘wcstoimax’
/usr/include/inttypes.h:371: error: expected ‘,’ or ‘;’ before ‘wcstoumax’
make[4]: *** [sha1.o] Error 1
make[4]: Leaving directory `/www/nagios/nagios-plugins-2.0.3/gl'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/www/nagios/nagios-plugins-2.0.3/gl'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/www/nagios/nagios-plugins-2.0.3/gl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/www/nagios/nagios-plugins-2.0.3'
make: *** [all] Error 2