<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">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>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><div> </div>Sam Fraser<br><br></div><br>
<hr size=1>
What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the <a href="http://uk.rd.yahoo.com/mail/uk/taglines/default/championships/quiz/*http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk/">Yahoo! Mail Championship</a>.</body></html>