That didn't work what next?

Lars Stavholm stava at telcotec.se
Wed Feb 7 21:11:45 CET 2007


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


-------------------------------------------------------------------------
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