That didn't work what next?

Sam Fraser samfraser at yahoo.co.uk
Wed Feb 7 19:35:31 CET 2007


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?

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070207/4ae883b0/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