nagios plugins compile error check_mysql

Tom Jones Jr - RR tjonesjr at stny.rr.com
Fri Apr 4 18:47:12 CEST 2003


I am trying to compile the nagios plugins and it's failing on the build
of the check_mysql plugin.  This is a plugin that I need to use so I
can't skip it.  I do a straight ./compile (output below).  When I do
make it error's out on the check_mysql plugin.  Here is the out put of
it:
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib
-I/usr/include/ldap  -I/include     -g -O2 -c check_mysql.c
gcc  -g -O2 -L. -o check_mysql  check_mysql.o utils.o
../lib/libnagiosplug.a -lmysqlclient 
check_mysql.o: In function `main':
/home/h3rb/nagios/nagios-plugins-1.3.0/plugins/check_mysql.c:55:
undefined reference to `mysql_errno'
/home/h3rb/nagios/nagios-plugins-1.3.0/plugins/check_mysql.c:60:
undefined reference to `mysql_errno'
/home/h3rb/nagios/nagios-plugins-1.3.0/plugins/check_mysql.c:65:
undefined reference to `mysql_errno'
/home/h3rb/nagios/nagios-plugins-1.3.0/plugins/check_mysql.c:70:
undefined reference to `mysql_errno'
/home/h3rb/nagios/nagios-plugins-1.3.0/plugins/check_mysql.c:75:
undefined reference to `mysql_errno'
/home/h3rb/nagios/nagios-plugins-1.3.0/plugins/check_mysql.c:76:
undefined reference to `mysql_error'
/home/h3rb/nagios/nagios-plugins-1.3.0/plugins/check_mysql.c:91:
undefined reference to `mysql_error'
/home/h3rb/nagios/nagios-plugins-1.3.0/plugins/check_mysql.c:93:
undefined reference to `mysql_errno'
/home/h3rb/nagios/nagios-plugins-1.3.0/plugins/check_mysql.c:98:
undefined reference to `mysql_errno'
/home/h3rb/nagios/nagios-plugins-1.3.0/plugins/check_mysql.c:99:
undefined reference to `mysql_error'
/home/h3rb/nagios/nagios-plugins-1.3.0/plugins/check_mysql.c:103:
undefined reference to `mysql_errno'
/home/h3rb/nagios/nagios-plugins-1.3.0/plugins/check_mysql.c:104:
undefined reference to `mysql_error'
collect2: ld returned 1 exit status
make[1]: *** [check_mysql] Error 1
make[1]: Leaving directory
`/home/h3rb/nagios/nagios-plugins-1.3.0/plugins'
make: *** [all-recursive] Error 1

mysql binaries are installed to /usr/bin/ and the mysql libs are located
at /usr/lib/mysql/

Any suggestions of what to try to get this to compile properly?

OS: SuSE Linux 7.3
MySQL : 3.23.47

Thanks for any suggestions/help,
Tom

[output of ./configure]
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for a BSD compatible install... /usr/bin/ginstall -c
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether make sets ${MAKE}... (cached) yes
checking for gawk... gawk
checking how to run the C preprocessor... gcc -E
checking for elf_begin in -lelf... no
checking for kvm_open in -lkvm... no
checking for getloadavg in -lutil... no
checking for getloadavg in -lgetloadavg... no
checking for getloadavg... no
checking for sys/dg_sys_info.h... no
checking for inq_stats/cpustats.h... no
checking for sys/cpustats.h... no
checking for mach/mach.h... no
checking for nlist.h... no
checking whether getloadavg requires setgid... no
checking for working strtod... yes
checking for ranlib... ranlib
checking for aclocal... /usr/local/bin/aclocal
checking for automake... /usr/local/bin/automake
checking for autoconf... /usr/local/bin/autoconf
checking for autoheader... /usr/local/bin/autoheader
checking for python... /usr/bin/python
checking for perl... /usr/bin/perl
checking for sh... /bin/sh
checking for hostname... /bin/hostname
checking for basename... /usr/bin/basename
checking for main in -ldce... no
checking for main in -lnsl... yes
checking for socket in -lsocket... no
checking for main in -lresolv... yes
checking for main in -lcrypt... yes
checking for PQsetdbLogin in -lpq... yes
checking for pgsql/libpq-fe.h... no
checking for postgresql/libpq-fe.h... no
checking for libpq-fe.h... no
configure: warning: Skipping PostgreSQL plugin (check_pgsql)
configure: warning: install PostgreSQL headers to compile this plugin
(see REQUIREMENTS).
checking for rc_read_config in -lradiusclient... no
configure: warning: Skipping radius plugin
configure: warning: install radius libs to compile this plugin (see
REQUIREMENTS).
checking for main in -lldap... yes
checking for mysql_init in -lmysqlclient... yes
checking for mysql_close in -lmysqlclient... yes
checking for mysql/mysql.h... yes
checking for mysql/errmsg.h... yes
checking for openssl... no
checking for krb5.h... no
checking for krb5.h... no
checking for openssl/ssl.h... no
checking for openssl/x509.h... no
checking for openssl/rsa.h... no
checking for openssl/pem.h... no
checking for openssl/crypto.h... no
checking for openssl/err.h... no
checking for ssl.h... no
checking for x509.h... no
checking for rsa.h... no
checking for pem.h... no
checking for crypto.h... no
checking for err.h... yes
checking for CRYPTO_lock in -lcrypto... no
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for signal.h... yes
checking for strings.h... yes
checking for string.h... yes
checking for syslog.h... yes
checking for unistd.h... yes
checking for uio.h... no
checking for errno.h... yes
checking for regex.h... yes
checking for sys/types.h... yes
checking for sys/time.h... yes
checking for sys/socket.h... yes
checking for sys/loadavg.h... no
checking for stdarg.h... yes
checking for sys/unistd.h... yes
checking for unistd.h... (cached) yes
checking for ctype.h... yes
checking for sys/wait.h... (cached) yes
checking for stdlib.h... yes
checking for working const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking size of int... 4
checking size of long... 4
checking size of short... 2
checking for long long... yes
checking for LL suffix on long long integers... yes
checking for __va_copy... yes
checking for C99 vsnprintf... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for vasprintf... yes
checking for asprintf... yes
checking for memmove... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for strstr... yes
checking for strtod... yes
checking for strtol... yes
checking for strtoul... yes
checking for type of socket size... int
checking for ps... /bin/ps
      ps syntax... /bin/ps -weo 'stat comm vsz rss user ppid args'
checking for df... /bin/df
      df syntax... /bin/df -Pk
checking for ping... /bin/ping
      ping syntax... /bin/ping -n -c <count> <host>
checking for nslookup... /usr/bin/nslookup
      nslookup syntax... /usr/bin/nslookup
checking for host... /usr/bin/host
checking for uptime... /usr/bin/uptime
checking for rpcinfo... no
checking for ntpdate... no
checking for ntpdc... no
checking for xntpdc... no
checking for ntpq... no
** Install NTP programs (http://www.ntp.org) if you want to monitor time
synchronization
checking for lmstat... no
** Get lmstat from Globetrotter Software to monitor flexlm licenses
checking for smbclient... /usr/bin/smbclient
checking for who... /usr/bin/who
checking for snmpget... /usr/local/bin/snmpget
checking for snmpgetnext... /usr/local/bin/snmpgetnext
Found Net::SNMP perl module
checking for quakestat... no
checking for qstat... /usr/bin/qstat
checking for fping... /usr/bin/fping
checking for ssh... /usr/local/bin/ssh
checking for mailq... /usr/bin/mailq
found /proc/meminfo
checking for dig... /usr/bin/dig
yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating subst
creating lib/Makefile
creating plugins/Makefile
creating plugins-scripts/Makefile
creating plugins-scripts/subst
creating plugins-scripts/utils.pm
creating plugins-scripts/utils.sh
creating command.cfg
creating test.pl
creating plugins/config.h
creating plugins/common.h
creating plugins/version.h
creating plugins/netutils.h
creating plugins/utils.h
creating plugins/popen.h



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030404/4ee8bade/attachment.html>


More information about the Users mailing list