Issue with compiling "nagios plugin"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Issue with compiling "nagios plugin"

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Issue with compiling "nagios plugin"

Post by rkennedy »

What OS are you running, and is it 32/64 bit? Is the system up to date?
Former Nagios Employee
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Issue with compiling "nagios plugin"

Post 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)
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Issue with compiling "nagios plugin"

Post by hsmith »

Are you following any particular set of instructions?
Former Nagios Employee.
me.
Locked