[Nagiosplug-devel] [ nagiosplug-Bugs-1592574 ] Plugin compilation fails in check_ntp.c

SourceForge.net noreply at sourceforge.net
Wed Nov 8 12:29:37 CET 2006


Bugs item #1592574, was opened at 2006-11-08 12:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1592574&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compilation
Group: Release (specify)
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Deon Ramsey (dramsey)
Assigned to: Nobody/Anonymous (nobody)
Summary: Plugin compilation fails in check_ntp.c

Initial Comment:
I am trying to get Nagios 2.5 running on a RedHat Linux
release 7.3 (Valhalla) . I have compiled Nagios itself
with no problem, then went on to compile
nagios-plugins-1.4.5 . The compiler dies with the
following messages:

nagios-host# make
make  all-recursive
make[1]: Entering directory
`/u/root/incoming/nagios-plugins-1.4.5'
Making all in lib
make[2]: Entering directory
`/u/root/incoming/nagios-plugins-1.4.5/lib'
make  all-recursive
make[3]: Entering directory
`/u/root/incoming/nagios-plugins-1.4.5/lib'
Making all in tests
make[4]: Entering directory
`/u/root/incoming/nagios-plugins-1.4.5/lib/tests'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/u/root/incoming/nagios-plugins-1.4.5/lib/tests'
make[4]: Entering directory
`/u/root/incoming/nagios-plugins-1.4.5/lib'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory
`/u/root/incoming/nagios-plugins-1.4.5/lib'
make[3]: Leaving directory
`/u/root/incoming/nagios-plugins-1.4.5/lib'
make[2]: Leaving directory
`/u/root/incoming/nagios-plugins-1.4.5/lib'
Making all in plugins
make[2]: Entering directory
`/u/root/incoming/nagios-plugins-1.4.5/plugins'
if /usr/local/bin/gcc
-DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H
-I. -I. -I.. -I.. -I../lib -I../intl   -I/usr/include 
  -g -O2 -MT check_ntp.o -MD -MP -MF
".deps/check_ntp.Tpo" -c -o check_ntp.o check_ntp.c; \
then mv -f ".deps/check_ntp.Tpo" ".deps/check_ntp.Po";
else rm -f ".deps/check_ntp.Tpo"; exit 1; fi
check_ntp.c: In function 'setup_request':
check_ntp.c:295: error: invalid operands to binary &
check_ntp.c:295: error: invalid operands to binary &
check_ntp.c:295: error: invalid operands to binary &
check_ntp.c:295: error: invalid operands to binary &
make[2]: *** [check_ntp.o] Error 1
make[2]: Leaving directory
`/u/root/incoming/nagios-plugins-1.4.5/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/u/root/incoming/nagios-plugins-1.4.5'
make: *** [all] Error 2
nagios-host#

At first, I suspected this to be a compiler error
because I was using the gcc-2.96 installed by default
in the OS, so I compiled and installed gcc-4.1.1 and
tried again, but this didn't change anything.

On an aside, I don't even *need* the ntp plugin, is
there any support for telling the system not to build
it in the first place ?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1592574&group_id=29880




More information about the Devel mailing list