<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">Thanks for being so helpful.<br><br>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 <span style="font-style: italic;">make</span>.<br><br>I'm running FC 6.<br><br>config.status: creating po/Makefile<br>            --with-apt-get-command: <br>              --with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s<br>               --with-ping-command:
 /bin/ping -n -U -w %d -c %d  %s<br>                      --with-lwres: no<br>                       --with-ipv6: yes<br>                      --with-mysql: /usr/bin/mysql_config<br>                    --with-openssl: yes<br>                     --with-gnutls: no<br>      --enable-emulate-getaddrinfo: no<br>                      
 --with-perl:  /usr/bin/perl<br>                     --with-cgiurl: /nagios/cgi-bin<br>               --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin<br>[root@windowslinux nagios-plugins-1.4.5]# make<br>make  all-recursive<br>make[1]: Entering directory `/root/nagios-plugins-1.4.5'<br>Making all in lib<br>make[2]: Entering directory `/root/nagios-plugins-1.4.5/lib'<br>make  all-recursive<br>make[3]: Entering directory `/root/nagios-plugins-1.4.5/lib'<br>Making all in tests<br>make[4]: Entering directory `/root/nagios-plugins-1.4.5/lib/tests'<br>make[4]: Nothing to be done for `all'.<br>make[4]: Leaving directory `/root/nagios-plugins-1.4.5/lib/tests'<br>make[4]: Entering directory `/root/nagios-plugins-1.4.5/lib'<br>make[4]: Nothing to be done for `all-am'.<br>make[4]: Leaving directory 
 `/root/nagios-plugins-1.4.5/lib'<br>make[3]: Leaving directory `/root/nagios-plugins-1.4.5/lib'<br>make[2]: Leaving directory `/root/nagios-plugins-1.4.5/lib'<br>Making all in plugins<br>make[2]: Entering directory `/root/nagios-plugins-1.4.5/plugins'<br>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<br>sr/include -I/usr/include/mysql  -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-bu<br>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<br>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<br>cho './'`check_mysql.c; \<br>        then mv -f ".deps/check_mysql-check_mysql.Tpo" ".deps/check_mysql-check_mysql.Po"; else rm -f 
 ".deps/check_mysql-check_mysql<br>.Tpo"; exit 1; fi<br>/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<br>osplug.a ../lib/libcoreutils.a  -lnsl -lresolv -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto -l<br>ssl -lcrypto <br>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 <br>../lib/libcoreutils.a -lresolv -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto<br>/usr/bin/ld: cannot find -lmysqlclient<br>collect2: ld returned 1 exit status<br>make[2]: *** [check_mysql] Error 1<br>make[2]: Leaving directory `/root/nagios-plugins-1.4.5/plugins'<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/root/nagios-plugins-1.4.5'<br>make: *** [all] Error 2<br><div> </div>Sam<div style="font-family: times
 new roman,new york,times,serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Lars Stavholm <stava@telcotec.se><br>To: Sam Fraser <samfraser@yahoo.co.uk><br>Cc: nagios-users@lists.sourceforge.net<br>Sent: Wednesday, 7 February, 2007 8:11:45 PM<br>Subject: Re: [Nagios-users] That didn't work what next?<br><br><div>Sam Fraser wrote:<br>> Hello Nagios users,<br>> <br>> 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?<br><br>Well, I did actually say more than that:|<br><br>You still seem to be missing the mysql source files,
 especially<br>[/usr/include/]mysql/errmsg.h and [/usr/include/]mysql/mysql.h.<br>It's either that or, if your mysql source files are in place,<br>you have to tell the plugin build were they are by means<br>of the configure option "--with-mysql", in case they are<br>in a nonstandard place. If you have a look at the configure<br>option --with-mysql, try "./configure --help", you'll see<br>that the --with-mysql is looking for the location of the file<br>mysql_config, which is part of the mysql-devel rpm package,<br>and therefore part of the source code. So, if you've installed<br>your mysql source code into /usr/local for example, the proper<br>configure statement would be "./configure --with-mysql=/usr/local"<br><br>It would help, and make it easier to help you, if you told us some<br>details about your environment, such as OS, distro, version, etc.<br><br>For example, on a SuSE Linux 10.2 box with the mysql-devel rpm<br>package installed, the plugins builds
 nicely.<br><br>Also, since it's the continuation of the same problem,<br>you might want to stay within the original thread.<br><br>Good Luck<br>/L<br><br>> check_mysql.c:51:19: error: mysql.h: No such file or directory<br>> check_mysql.c:52:20: error: errmsg.h: No such file or directory<br>> check_mysql.c:58: error: ΓÇÿMYSQL_PORTΓÇÖ undeclared here (not in a function)<br>> check_mysql.c: In function ΓÇÿmainΓÇÖ:<br>> check_mysql.c:73: error: ΓÇÿMYSQLΓÇÖ undeclared (first use in this function)<br>> check_mysql.c:73: error: (Each undeclared identifier is reported only once<br>> check_mysql.c:73: error: for each function it appears in.)<br>> check_mysql.c:73: error: expected ΓÇÿ;ΓÇÖ before ΓÇÿmysqlΓÇÖ<br>> check_mysql.c:74: error: ΓÇÿMYSQL_RESΓÇÖ undeclared (first use in this function)<br>> check_mysql.c:74: error: ΓÇÿresΓÇÖ undeclared (first use in this function)<br>> check_mysql.c:75: error:
 ΓÇÿMYSQL_ROWΓÇÖ undeclared (first use in this function)<br>> check_mysql.c:75: error: expected ΓÇÿ;ΓÇÖ before ΓÇÿrowΓÇÖ<br>> check_mysql.c:91: error: ΓÇÿmysqlΓÇÖ undeclared (first use in this function)<br>> check_mysql.c:93: error: ΓÇÿMYSQL_READ_DEFAULT_GROUPΓÇÖ undeclared (first use in this function)<br>> check_mysql.c:97: error: ΓÇÿCR_UNKNOWN_HOSTΓÇÖ undeclared (first use in this function)<br>> check_mysql.c:99: error: ΓÇÿCR_VERSION_ERRORΓÇÖ undeclared (first use in this function)<br>> check_mysql.c:101: error: ΓÇÿCR_OUT_OF_MEMORYΓÇÖ undeclared (first use in this function)<br>> check_mysql.c:103: error: ΓÇÿCR_IPSOCK_ERRORΓÇÖ undeclared (first use in this function)<br>> check_mysql.c:105: error: ΓÇÿCR_SOCKET_CREATE_ERRORΓÇÖ undeclared (first use in this function)<br>> check_mysql.c:112: warning: cast to pointer from integer of different size<br>> check_mysql.c:112: warning: cast to
 pointer from integer of different size<br>> check_mysql.c:112: warning: cast to pointer from integer of different size<br>> check_mysql.c:112: warning: passing argument 1 of ΓÇÿstrlenΓÇÖ makes pointer from integer without a cast<br>> check_mysql.c:112: warning: passing argument 2 of ΓÇÿ__builtin___memcpy_chkΓÇÖ makes pointer from integer without a cast<br>> check_mysql.c:112: warning: passing argument 2 of ΓÇÿ__memcpy_ichkΓÇÖ makes pointer from integer without a cast<br>> check_mysql.c:112: warning: passing argument 1 of ΓÇÿ__strdupΓÇÖ makes pointer from integer without a cast<br>> check_mysql.c:116: error: ΓÇÿCR_SERVER_GONE_ERRORΓÇÖ undeclared (first use in this function)<br>> check_mysql.c:118: error: ΓÇÿCR_SERVER_LOSTΓÇÖ undeclared (first use in this function)<br>> check_mysql.c:120: error: ΓÇÿCR_UNKNOWN_ERRORΓÇÖ undeclared (first use in this function)<br>> check_mysql.c:127: warning: cast to pointer
 from integer of different size<br>> check_mysql.c:127: warning: cast to pointer from integer of different size<br>> check_mysql.c:127: warning: cast to pointer from integer of different size<br>> check_mysql.c:127: warning: passing argument 1 of ΓÇÿstrlenΓÇÖ makes pointer from integer without a cast<br>> check_mysql.c:127: warning: passing argument 2 of ΓÇÿ__builtin___memcpy_chkΓÇÖ makes pointer from integer without a cast<br>> check_mysql.c:127: warning: passing argument 2 of ΓÇÿ__memcpy_ichkΓÇÖ makes pointer from integer without a cast<br>> check_mysql.c:127: warning: passing argument 1 of ΓÇÿ__strdupΓÇÖ makes pointer from integer without a cast<br>> check_mysql.c:134: warning: cast to pointer from integer of different size<br>> check_mysql.c:134: warning: cast to pointer from integer of different size<br>> check_mysql.c:134: warning: cast to pointer from integer of different size<br>> check_mysql.c:134: warning:
 passing argument 1 of ΓÇÿstrlenΓÇÖ makes pointer from integer without a cast<br>> check_mysql.c:134: warning: passing argument 2 of ΓÇÿ__builtin___memcpy_chkΓÇÖ makes pointer from integer without a cast<br>> check_mysql.c:134: warning: passing argument 2 of ΓÇÿ__memcpy_ichkΓÇÖ makes pointer from integer without a cast<br>> check_mysql.c:134: warning: passing argument 1 of ΓÇÿ__strdupΓÇÖ makes pointer from integer without a cast<br>> check_mysql.c:146: error: ΓÇÿrowΓÇÖ undeclared (first use in this function)<br>> check_mysql.c:147: warning: cast to pointer from integer of different size<br>> check_mysql.c:147: warning: cast to pointer from integer of different size<br>> check_mysql.c:147: warning: cast to pointer from integer of different size<br>> check_mysql.c:147: warning: passing argument 1 of ΓÇÿstrlenΓÇÖ makes pointer from integer without a cast<br>> check_mysql.c:147: warning: passing argument 2 of
 ΓÇÿ__builtin___memcpy_chkΓÇÖ makes pointer from integer without a cast<br>> check_mysql.c:147: warning: passing argument 2 of ΓÇÿ__memcpy_ichkΓÇÖ makes pointer from integer without a cast<br>> check_mysql.c:147: warning: passing argument 1 of ΓÇÿ__strdupΓÇÖ makes pointer from integer without a cast<br>> check_mysql.c:165: error: ΓÇÿMYSQL_FIELDΓÇÖ undeclared (first use in this function)<br>> check_mysql.c:165: error: ΓÇÿfieldsΓÇÖ undeclared (first use in this function)<br>> make[2]: *** [check_mysql-check_mysql.o] Error 1<br>> make[2]: Leaving directory `/root/nagios-plugins-1.4.5/plugins'<br>> make[1]: *** [all-recursive] Error 1<br>> make[1]: Leaving directory `/root/nagios-plugins-1.4.5'<br>> make: *** [all] Error 2<br>>  <br>> Sam Fraser<br>> <br>> <br>> <br>> <br>>         <br>> ___________________________________________________________
 <br>> Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. <a target="_blank" href="http://uk.docs.yahoo.com/nowyoucan.html">http://uk.docs.yahoo.com/nowyoucan.html</a><br>> <br>> <br>> ------------------------------------------------------------------------<br>> <br>> -------------------------------------------------------------------------<br>> Using Tomcat but need to do more? Need to support web services, security?<br>> Get stuff done quickly with pre-integrated technology to make your job easier.<br>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<br>> <a target="_blank" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a><br>> <br>> <br>> ------------------------------------------------------------------------<br>> <br>>
 _______________________________________________<br>> Nagios-users mailing list<br>> Nagios-users@lists.sourceforge.net<br>> <a target="_blank" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. <br>> ::: Messages without supporting info will risk being sent to /dev/null<br><br></div></div><br></div></div><br>
                <hr size=1> 
Now you can <a href="http://us.rd.yahoo.com/mail/uk/taglines/default/nowyoucan/reading_pane/*http://us.rd.yahoo.com/evt=40565/*http://uk.docs.yahoo.com/nowyoucan.html">scan emails quickly with a reading pane</a>. Get the new <a href="http://us.rd.yahoo.com/mail/uk/taglines/default/nowyoucan/reading_pane/*http://us.rd.yahoo.com/evt=40565/*http://uk.docs.yahoo.com/nowyoucan.html">Yahoo! Mail</a>.</body></html>