[Nagiosplug-help] MySQL check

Loving, J. Travis (GEI, GEFA) Johnathan.Loving at ge.com
Thu Mar 13 12:53:05 CET 2003


MySQL is installed in /usr/local/mysql, with lib and include being under
/usr/local/mysql.  It was installed using the binary from www.mysql.org.

The configure options used to compile the plugins were:

./configure --with-mysql=/usr/local/mysql --with-openssl=/usr/local/ssl



-Travis Loving


> -----Original Message-----
> From: Subhendu Ghosh [mailto:sghosh at sghosh.org]
> Sent: Wednesday, March 12, 2003 9:19 PM
> To: 'nagiosplug-help at lists.sourceforge.net'
> Subject: Re: [Nagiosplug-help] MySQL check
> 
> 
> 
> Where is mysql installed?  what/if any configure options?
> 
> -sg
> 
> On Wed, 12 Mar 2003, Loving, J. Travis (GEI, GEFA) wrote:
> 
> > I am attempting to compile the Nagios Plugins v1.3 for 
> Nagios 1.0 on Solaris
> > 8 with MySQL distribution 3.23.55.
> > 
> > When configure attempts to check for mysql, the following 
> shows up in the
> > config.log.  What am I missing?
> > 
> > -Travis Loving
> > 
> > int main() {
> > main()
> > ; return 0; }
> > configure:2976: checking for mysql_init in -lmysqlclient
> > configure:2995: gcc -o conftest -g -O2 
> -I/usr/local/mysql/include  -L.
> > conftest.c -lmysqlclient -L/usr/local/mysql/lib/mysql -lz 
> -lkvm -lelf  1>&5
> > Undefined			first referenced
> >  symbol  			    in file
> > socket
> > /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> > getpeername
> > /usr/local/mysql/lib/libmysqlclient.a(violite.o)
> > gethostbyname_r
> > /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> > setsockopt
> > /usr/local/mysql/lib/libmysqlclient.a(violite.o)
> > getservbyname
> > /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> > floor
> > /usr/local/mysql/lib/libmysqlclient.a(password.o)
> > getsockopt
> > /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> > inet_addr
> > /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> > inet_ntoa
> > /usr/local/mysql/lib/libmysqlclient.a(my_net.o)
> > shutdown
> > /usr/local/mysql/lib/libmysqlclient.a(violite.o)
> > connect
> > /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> > ld: fatal: Symbol referencing errors. No output written to conftest
> > collect2: ld returned 1 exit status
> > configure: failed program was:
> > #line 2984 "configure"
> > #include "confdefs.h"
> > /* Override any gcc2 internal prototype to avoid an error.  */
> > /* We use char because int might match the return type of a gcc2
> >     builtin and then its argument prototype would still apply.  */
> > char mysql_init();
> > 
> > int main() {
> > mysql_init()
> > ; return 0; }
> > configure:3016: checking for mysql_close in -lmysqlclient
> > configure:3035: gcc -o conftest -g -O2 
> -I/usr/local/mysql/include  -L.
> > conftest.c -lmysqlclient  -lkvm -lelf  1>&5
> > Undefined			first referenced
> >  symbol  			    in file
> > socket
> > /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> > getpeername
> > /usr/local/mysql/lib/libmysqlclient.a(violite.o)
> > gethostbyname_r
> > /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> > setsockopt
> > /usr/local/mysql/lib/libmysqlclient.a(violite.o)
> > getservbyname
> > /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> > floor
> > /usr/local/mysql/lib/libmysqlclient.a(password.o)
> > getsockopt
> > /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> > inet_addr
> > /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> > inet_ntoa
> > /usr/local/mysql/lib/libmysqlclient.a(my_net.o)
> > shutdown
> > /usr/local/mysql/lib/libmysqlclient.a(violite.o)
> > connect
> > /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
> > ld: fatal: Symbol referencing errors. No output written to conftest
> > collect2: ld returned 1 exit status
> > configure: failed program was:
> > #line 3024 "configure"
> > #include "confdefs.h"
> > /* Override any gcc2 internal prototype to avoid an error.  */
> > /* We use char because int might match the return type of a gcc2
> >     builtin and then its argument prototype would still apply.  */
> > char mysql_close();
> > 
> > int main() {
> > mysql_close()
> > ; return 0; }
> > 
> 
> -- 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open! 
> Get cracking and register here for some mind boggling fun and 
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 




More information about the Help mailing list