Page 1 of 1

Issue with compiling "nagios plugin"

Posted: Thu Jan 14, 2016 11:13 am
by haile711
Hey guys,
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

Re: Issue with compiling "nagios plugin"

Posted: Thu Jan 14, 2016 1:05 pm
by rkennedy
What OS are you running, and is it 32/64 bit? Is the system up to date?

Re: Issue with compiling "nagios plugin"

Posted: Thu Jan 14, 2016 1:55 pm
by haile711
Hey Kennedy,
here are the OS infos

Code: Select all

2.6.32-504.30.3.el6.x86_64 #1 SMP Thu Jul 9 15:20:47 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

Red Hat Enterprise Linux Server release 6.6 (Santiago)

Re: Issue with compiling "nagios plugin"

Posted: Thu Jan 14, 2016 1:57 pm
by hsmith
Are you following any particular set of instructions?