Problem compiling nagios-plugins-1.4.0alpha1

Harper Mann hmann at itgroundwork.com
Wed Sep 15 05:53:00 CEST 2004


Try repeating the gcc line without the -c to see if it compiles.  You can
probably remove the -c from plugins/Makefile  

 

What version of gcc?  It may need updating.  Also you may need to update GNU
build environment like make and autoconf, but my Makefile from RHEL V3 U3
has both the -c and -o switches and they work so this suggests the gcc
version is a problem.

 

Otherwise, FYI: the alpha plugins build without errors on RHEL WS V3 U2 and
U3 with current patches.  

 

Sorry, I don't have RHEL 2.1 to test on.

 

Regards,

 

- Harper

 

Harper Mann

Groundwork Open Source Solutions

510-599-2075 (cell)

 

  _____  

From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Vincent
Aniello
Sent: Tuesday, September 14, 2004 4:05 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Problem compiling nagios-plugins-1.4.0alpha1

 

I am trying to compile nagios-plugins-1.4.0alpha1 on a RedHat Enterprise
2.1, but the compilation is failing.

 

The error message I am receiving is:

 

make[2]: Entering directory
`/home/vaniello/nagios-plugins-1.4.0alpha1/plugins'
if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I.
-I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap
/usr/local/pgsql/include -I/usr/include   -I/usr/kerberos/include  -g -O2
-MT check_disk.o -MD -MP -MF ".deps/check_disk.Tpo" \
  -c -o check_disk.o `test -f 'check_disk.c' || echo './'`check_disk.c; \
then mv -f ".deps/check_disk.Tpo" ".deps/check_disk.Po"; \
else rm -f ".deps/check_disk.Tpo"; exit 1; \
fi
gcc: cannot specify -o with -c or -S and multiple compilations
make[2]: *** [check_disk.o] Error 1
make[2]: Leaving directory
`/home/vaniello/nagios-plugins-1.4.0alpha1/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/vaniello/nagios-plugins-1.4.0alpha1'
make: *** [all] Error 2


 

Has any one experienced this error?  Any suggestions on how to fix it?

 

V/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040914/04c50ac6/attachment.html>


More information about the Users mailing list