That didn't work what next?
Sam Fraser
samfraser at yahoo.co.uk
Thu Feb 8 18:23:30 CET 2007
Thanks for being so helpful.
Ok, I've uninstalled mysql server and reinstalled mysql-server with mysql-devel. I tried again to ./configure and then make, it looks a lot better but still get the errors. Blow is the last section of output from the ./configure, showing you that it has now found where the mysql_config and following that my attempt at make.
I'm running FC 6.
config.status: creating po/Makefile
--with-apt-get-command:
--with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s
--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
[root at windowslinux nagios-plugins-1.4.5]# make
make all-recursive
make[1]: Entering directory `/root/nagios-plugins-1.4.5'
Making all in lib
make[2]: Entering directory `/root/nagios-plugins-1.4.5/lib'
make all-recursive
make[3]: Entering directory `/root/nagios-plugins-1.4.5/lib'
Making all in tests
make[4]: Entering directory `/root/nagios-plugins-1.4.5/lib/tests'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/nagios-plugins-1.4.5/lib/tests'
make[4]: Entering directory `/root/nagios-plugins-1.4.5/lib'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/root/nagios-plugins-1.4.5/lib'
make[3]: Leaving directory `/root/nagios-plugins-1.4.5/lib'
make[2]: Leaving directory `/root/nagios-plugins-1.4.5/lib'
Making all in plugins
make[2]: Entering directory `/root/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/u
sr/include -I/usr/include/mysql -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-bu
ffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -g -O2 -MT che
ck_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' || e
cho './'`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
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -L. -o check_mysql check_mysql-check_mysql.o netutils.o utils.o ../lib/libnagi
osplug.a ../lib/libcoreutils.a -lnsl -lresolv -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto -l
ssl -lcrypto
gcc -g -O2 -o check_mysql check_mysql-check_mysql.o netutils.o utils.o -L/root/nagios-plugins-1.4.5/plugins ../lib/libnagiosplug.a
../lib/libcoreutils.a -lresolv -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[2]: *** [check_mysql] Error 1
make[2]: Leaving directory `/root/nagios-plugins-1.4.5/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/nagios-plugins-1.4.5'
make: *** [all] Error 2
Sam
----- Original Message ----
From: Lars Stavholm <stava at telcotec.se>
To: Sam Fraser <samfraser at yahoo.co.uk>
Cc: nagios-users at lists.sourceforge.net
Sent: Wednesday, 7 February, 2007 8:11:45 PM
Subject: Re: [Nagios-users] That didn't work what next?
Sam Fraser wrote:
> Hello Nagios users,
>
> I've been having trouble installing nagios plugins as part of my first nagios installation. I was advised by someone on this email group that it was because I didn't have mysql server installed. I've now installed mysql server but still get some very strange errors when compiling the plugins and i don't know what they mean. Any other suggestions?
Well, I did actually say more than that:|
You still seem to be missing the mysql source files, especially
[/usr/include/]mysql/errmsg.h and [/usr/include/]mysql/mysql.h.
It's either that or, if your mysql source files are in place,
you have to tell the plugin build were they are by means
of the configure option "--with-mysql", in case they are
in a nonstandard place. If you have a look at the configure
option --with-mysql, try "./configure --help", you'll see
that the --with-mysql is looking for the location of the file
mysql_config, which is part of the mysql-devel rpm package,
and therefore part of the source code. So, if you've installed
your mysql source code into /usr/local for example, the proper
configure statement would be "./configure --with-mysql=/usr/local"
It would help, and make it easier to help you, if you told us some
details about your environment, such as OS, distro, version, etc.
For example, on a SuSE Linux 10.2 box with the mysql-devel rpm
package installed, the plugins builds nicely.
Also, since it's the continuation of the same problem,
you might want to stay within the original thread.
Good Luck
/L
> check_mysql.c:51:19: error: mysql.h: No such file or directory
> check_mysql.c:52:20: error: errmsg.h: No such file or directory
> check_mysql.c:58: error: ΓÇÿMYSQL_PORTΓÇÖ undeclared here (not in a function)
> check_mysql.c: In function ΓÇÿmainΓÇÖ:
> check_mysql.c:73: error: ΓÇÿMYSQLΓÇÖ undeclared (first use in this function)
> check_mysql.c:73: error: (Each undeclared identifier is reported only once
> check_mysql.c:73: error: for each function it appears in.)
> check_mysql.c:73: error: expected ΓÇÿ;ΓÇÖ before ΓÇÿmysqlΓÇÖ
> check_mysql.c:74: error: ΓÇÿMYSQL_RESΓÇÖ undeclared (first use in this function)
> check_mysql.c:74: error: ΓÇÿresΓÇÖ undeclared (first use in this function)
> check_mysql.c:75: error: ΓÇÿMYSQL_ROWΓÇÖ undeclared (first use in this function)
> check_mysql.c:75: error: expected ΓÇÿ;ΓÇÖ before ΓÇÿrowΓÇÖ
> check_mysql.c:91: error: ΓÇÿmysqlΓÇÖ undeclared (first use in this function)
> check_mysql.c:93: error: ΓÇÿMYSQL_READ_DEFAULT_GROUPΓÇÖ undeclared (first use in this function)
> check_mysql.c:97: error: ΓÇÿCR_UNKNOWN_HOSTΓÇÖ undeclared (first use in this function)
> check_mysql.c:99: error: ΓÇÿCR_VERSION_ERRORΓÇÖ undeclared (first use in this function)
> check_mysql.c:101: error: ΓÇÿCR_OUT_OF_MEMORYΓÇÖ undeclared (first use in this function)
> check_mysql.c:103: error: ΓÇÿCR_IPSOCK_ERRORΓÇÖ undeclared (first use in this function)
> check_mysql.c:105: error: ΓÇÿCR_SOCKET_CREATE_ERRORΓÇÖ undeclared (first use in this function)
> check_mysql.c:112: warning: cast to pointer from integer of different size
> check_mysql.c:112: warning: cast to pointer from integer of different size
> check_mysql.c:112: warning: cast to pointer from integer of different size
> check_mysql.c:112: warning: passing argument 1 of ΓÇÿstrlenΓÇÖ makes pointer from integer without a cast
> check_mysql.c:112: warning: passing argument 2 of ΓÇÿ__builtin___memcpy_chkΓÇÖ makes pointer from integer without a cast
> check_mysql.c:112: warning: passing argument 2 of ΓÇÿ__memcpy_ichkΓÇÖ makes pointer from integer without a cast
> check_mysql.c:112: warning: passing argument 1 of ΓÇÿ__strdupΓÇÖ makes pointer from integer without a cast
> check_mysql.c:116: error: ΓÇÿCR_SERVER_GONE_ERRORΓÇÖ undeclared (first use in this function)
> check_mysql.c:118: error: ΓÇÿCR_SERVER_LOSTΓÇÖ undeclared (first use in this function)
> check_mysql.c:120: error: ΓÇÿCR_UNKNOWN_ERRORΓÇÖ undeclared (first use in this function)
> check_mysql.c:127: warning: cast to pointer from integer of different size
> check_mysql.c:127: warning: cast to pointer from integer of different size
> check_mysql.c:127: warning: cast to pointer from integer of different size
> check_mysql.c:127: warning: passing argument 1 of ΓÇÿstrlenΓÇÖ makes pointer from integer without a cast
> check_mysql.c:127: warning: passing argument 2 of ΓÇÿ__builtin___memcpy_chkΓÇÖ makes pointer from integer without a cast
> check_mysql.c:127: warning: passing argument 2 of ΓÇÿ__memcpy_ichkΓÇÖ makes pointer from integer without a cast
> check_mysql.c:127: warning: passing argument 1 of ΓÇÿ__strdupΓÇÖ makes pointer from integer without a cast
> check_mysql.c:134: warning: cast to pointer from integer of different size
> check_mysql.c:134: warning: cast to pointer from integer of different size
> check_mysql.c:134: warning: cast to pointer from integer of different size
> check_mysql.c:134: warning: passing argument 1 of ΓÇÿstrlenΓÇÖ makes pointer from integer without a cast
> check_mysql.c:134: warning: passing argument 2 of ΓÇÿ__builtin___memcpy_chkΓÇÖ makes pointer from integer without a cast
> check_mysql.c:134: warning: passing argument 2 of ΓÇÿ__memcpy_ichkΓÇÖ makes pointer from integer without a cast
> check_mysql.c:134: warning: passing argument 1 of ΓÇÿ__strdupΓÇÖ makes pointer from integer without a cast
> check_mysql.c:146: error: ΓÇÿrowΓÇÖ undeclared (first use in this function)
> check_mysql.c:147: warning: cast to pointer from integer of different size
> check_mysql.c:147: warning: cast to pointer from integer of different size
> check_mysql.c:147: warning: cast to pointer from integer of different size
> check_mysql.c:147: warning: passing argument 1 of ΓÇÿstrlenΓÇÖ makes pointer from integer without a cast
> check_mysql.c:147: warning: passing argument 2 of ΓÇÿ__builtin___memcpy_chkΓÇÖ makes pointer from integer without a cast
> check_mysql.c:147: warning: passing argument 2 of ΓÇÿ__memcpy_ichkΓÇÖ makes pointer from integer without a cast
> check_mysql.c:147: warning: passing argument 1 of ΓÇÿ__strdupΓÇÖ makes pointer from integer without a cast
> check_mysql.c:165: error: ΓÇÿMYSQL_FIELDΓÇÖ undeclared (first use in this function)
> check_mysql.c:165: error: ΓÇÿfieldsΓÇÖ undeclared (first use in this function)
> make[2]: *** [check_mysql-check_mysql.o] Error 1
> make[2]: Leaving directory `/root/nagios-plugins-1.4.5/plugins'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/nagios-plugins-1.4.5'
> make: *** [all] Error 2
>
> Sam Fraser
>
>
>
>
>
> ___________________________________________________________
> Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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
___________________________________________________________
New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes.
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070208/07366c22/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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