compliation error
Julie S. Lin
jlin at myvest.com
Wed Apr 19 19:39:00 CEST 2006
Hi
i'm in the middle of doing a fresh install of latest and greatest 2.2 nagios
however, i can't seem to get the plugins to compile.
i get no errors on the "configure" other than a few warnings about no
ldap, msql, etc...
but get the following errors after i type "make".
could someone kindly assist me in getting past the check_snmp.c compile?
i would really appreciate any advice or pointing in the right
direction. thanks.
Julie
depfile='.deps/check_hpjd.Po' tmpdepfile='.deps/check_hpjd.TPo' \
depmode=gcc /bin/sh ../depcomp \
gcc -DLOCALEDIR=\"/etc/nagios22/libexec/share/locale\" -DHAVE_CONFIG_H
-I. -I. -I.. -I.. -I../lib -I../intl -g -O2 -c check_hpjd.c
gcc -g -O2 -L. -L/usr/lib -o check_hpjd check_hpjd.o netutils.o
utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a -lnsl -lresolv
popen.o -I/usr/include
source='check_snmp.c' object='check_snmp.o' libtool=no \
depfile='.deps/check_snmp.Po' tmpdepfile='.deps/check_snmp.TPo' \
depmode=gcc /bin/sh ../depcomp \
gcc -DLOCALEDIR=\"/etc/nagios22/libexec/share/locale\" -DHAVE_CONFIG_H
-I. -I. -I.. -I.. -I../lib -I../intl -g -O2 -c check_snmp.c
check_snmp.c: In function `main':
check_snmp.c:341: parse error before `char'
check_snmp.c:342: `str' undeclared (first use in this function)
check_snmp.c:342: (Each undeclared identifier is reported only once
check_snmp.c:342: for each function it appears in.)
make[2]: *** [check_snmp.o] Error 1
make[2]: Leaving directory `/tmp/nagios-plugins-1.4.2/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/nagios-plugins-1.4.2'
make: *** [all] Error 2
xxx:/tmp/nagios-plugins-1.4.2#
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list