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

SourceForge.net noreply at sourceforge.net
Fri Feb 2 17:57:32 CET 2007


Bugs item #1592574, was opened at 2006-11-08 11:29
Message generated for change (Comment added) made by tonvoon
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: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: Deon Ramsey (dramsey)
>Assigned to: Ton Voon (tonvoon)
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 ?

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

>Comment By: Ton Voon (tonvoon)
Date: 2007-02-02 16:57

Message:
Logged In: YES 
user_id=664364
Originator: NO

Hi Deon,

This should be fixed in CVS now. Please confirm with the snapshot at
http://nagiosplug.sf.net/snapshot.

This call will auto close after 7 days if there are no updates.

Ton

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

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