[Nagiosplug-help] Nagios Plugins.. Version 1.4.5 Error
Justin Shore
justin.shore at sktbcs.com
Mon Nov 13 23:16:05 CET 2006
This usually means that you need the MySQL development libraries. Check your distribution CDs for the mysql-devel RPM(s).
Justin
________________________________
From: nagiosplug-help-bounces at lists.sourceforge.net [mailto:nagiosplug-help-bounces at lists.sourceforge.net] On Behalf Of haydar akpinar
Sent: Monday, November 13, 2006 8:48 AM
To: nagiosplug-help at lists.sourceforge.net
Subject: [Nagiosplug-help] Nagios Plugins.. Version 1.4.5 Error
Dear All..
I have installed nagios to a Fedora core 5 machine before and never had any problem but since I tried installing it on the Redhat 9 machine I get errors.
I have been trying to install nagios Library 1.4.5 to my Redhat 9 server and have been getting errors.
Here is what the last few lines of the output, when I do a
./configure
config.status: creating po/POTFILES
config.status: creating po/Makefile
--with-apt-get-command:
--with-ping6-command:
--with-ping-command: /bin/ping -n -U -w %d -c %d %s
--with-lwres: no
--with-ipv6: yes
--with-mysql: /usr/bin/mysql_config
--with-openssl: yes
--with-gnutls: no
--enable-emulate-getaddrinfo: no
--with-perl: /usr/bin/perl
--with-cgiurl: /nagios/cgi-bin
--with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
When I do make all I get following error
[root at GateWay nagios-plugins-1.4.5]# make all
make all-recursive
make[1]: Entering directory `/Nagios-install/nagios-plugins-1.4.5'
Making all in lib
make[2]: Entering directory `/Nagios-install/nagios-plugins-1.4.5/lib'
make all-recursive
make[3]: Entering directory `/Nagios-install/nagios-plugins-1.4.5/lib'
Making all in tests
make[4]: Entering directory `/Nagios-install/nagios-plugins-1.4.5/lib/tests'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/Nagios-install/nagios-plugins-1.4.5/lib/tests'
make[4]: Entering directory `/Nagios-install/nagios-plugins-1.4.5/lib'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/Nagios-install/nagios-plugins-1.4.5/lib'
make[3]: Leaving directory `/Nagios-install/nagios-plugins-1.4.5/lib'
make[2]: Leaving directory `/Nagios-install/nagios-plugins-1.4.5/lib'
Making all in plugins
make[2]: Entering directory `/Nagios-install/nagios-plugins-1.4.5/plugins'
if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -I/usr/include/ldap -I/usr/include -I/usr/kerberos/include -I'/usr/include' -g -O2 -MT check_mysql-check_mysql.o -MD -MP -MF ".deps/check_mysql-check_mysql.Tpo" -c -o check_mysql-check_mysql.o `test -f 'check_mysql.c' || echo './'`check_mysql.c; \
then mv -f ".deps/check_mysql-check_mysql.Tpo" ".deps/check_mysql-check_mysql.Po"; else rm -f ".deps/check_mysql-check_mysql.Tpo"; exit 1; fi
check_mysql.c:51:19: mysql.h: No such file or directory
check_mysql.c:52:20: errmsg.h: No such file or directory
check_mysql.c:58: `MYSQL_PORT' undeclared here (not in a function)
check_mysql.c: In function `main':
check_mysql.c:73: `MYSQL' undeclared (first use in this function)
check_mysql.c:73: (Each undeclared identifier is reported only once
check_mysql.c:73: for each function it appears in.)
check_mysql.c:73: parse error before "mysql"
check_mysql.c:74: `MYSQL_RES' undeclared (first use in this function)
check_mysql.c:74: `res' undeclared (first use in this function)
check_mysql.c:75: `MYSQL_ROW' undeclared (first use in this function)
check_mysql.c:75: parse error before "row"
check_mysql.c:91: `mysql' undeclared (first use in this function)
check_mysql.c:93: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)
check_mysql.c:97: `CR_UNKNOWN_HOST' undeclared (first use in this function)
check_mysql.c:99: `CR_VERSION_ERROR' undeclared (first use in this function)
check_mysql.c:101: `CR_OUT_OF_MEMORY' undeclared (first use in this function)
check_mysql.c:103: `CR_IPSOCK_ERROR' undeclared (first use in this function)
check_mysql.c:105: `CR_SOCKET_CREATE_ERROR' undeclared (first use in this function)
check_mysql.c:112: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:112: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:112: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:116: `CR_SERVER_GONE_ERROR' undeclared (first use in this function)
check_mysql.c:118: `CR_SERVER_LOST' undeclared (first use in this function)
check_mysql.c:120: `CR_UNKNOWN_ERROR' undeclared (first use in this function)
check_mysql.c:127: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:127: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:127: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:146: `row' undeclared (first use in this function)
check_mysql.c:147: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:147: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:147: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:165: `MYSQL_FIELD' undeclared (first use in this function)
check_mysql.c:165: `fields' undeclared (first use in this function)
check_mysql.c: In function `print_help':
check_mysql.c:367: `MYSQL_PORT' undeclared (first use in this function)
make[2]: *** [check_mysql-check_mysql.o] Error 1
make[2]: Leaving directory `/Nagios-install/nagios-plugins-1.4.5/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Nagios-install/nagios-plugins-1.4.5'
make: *** [all] Error 2
[root at GateWay nagios-plugins-1.4.5]#
And because of this I can not install the plugins.....
I have tried installing a different versions of mysql but still not getting the same error. Can some one help me with the above error messages. As I need to install nagios ASAP......
Thanks in advance for your help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20061113/28efefcd/attachment.html>
More information about the Help
mailing list