nagios-plugins 1.4 & mysql

Brian T. O'Neill btoneill at misplaced.net
Wed May 11 21:50:21 CEST 2005


Add in -lm

Brian

Quoting Brian Huffman (bhuffman at incyte.com) from  :
> Close - then I get this:
> 
> bash-2.03$ gcc -o conftest -g -O2 -I/usr/local/mysql/include  -L. test.c
> -lmysqlclient -L/usr/local/mysql/lib/mysql -lz -lnsl -lsocket
> Undefined                       first referenced
>  symbol                             in file
> floor
> /usr/local/mysql/lib/mysql/libmysqlclient.a(password.o)
> ld: fatal: Symbol referencing errors. No output written to conftest
> collect2: ld returned 1 exit status
> 
> Thanks - it's getting close!
> Brian
> 
> -----Original Message-----
> From: Brian T. O'Neill [mailto:btoneill at misplaced.net] 
> Sent: Wednesday, May 11, 2005 3:46 PM
> To: Brian Huffman
> Cc: Nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] nagios-plugins 1.4 & mysql
> 
> You need to add -lnsl and -lsocket to the compile libs.
> 
> Brian
> 
> Quoting Brian Huffman (bhuffman at incyte.com) from  :
> > All,
> > 
> > I'm unable to build the mysql check plugin and while I'm not sure this
> > is a problem with the nagios plugins, I would like to know if anyone
> has
> > had similar problems.  I'm running Solaris 8 with the mysql package
> from
> > SMC.  When I run configure and then look at the logs, I see the
> > following:
> > 
> > Does anyone know what this might be?
> > 
> > Thanks,
> > Brian
> > 
> > configure:9283: checking for mysql_init in -lmysqlclient
> > configure:9313: gcc -o conftest -g -O2 -I/usr/local/mysql/include  -L.
> > conftest.
> > c -lmysqlclient -L/usr/local/mysql/lib/mysql -lz  >&5
> > Undefined                       first referenced
> >  symbol                             in file
> > getservbyname
> > /usr/local/mysql/lib/mysql/libmysqlclient.a(
> > libmysql.o)
> > connect
> > /usr/local/mysql/lib/mysql/libmysqlclient.a(
> > libmysql.o)
> > getpeername
> > /usr/local/mysql/lib/mysql/libmysqlclient.a(
> > viosocket.o)
> > inet_addr
> > /usr/local/mysql/lib/mysql/libmysqlclient.a(
> > libmysql.o)
> > inet_ntoa
> > /usr/local/mysql/lib/mysql/libmysqlclient.a(
> > my_net.o)
> > gethostbyname_r
> > /usr/local/mysql/lib/mysql/libmysqlclient.a(
> > libmysql.o)
> > setsockopt
> > /usr/local/mysql/lib/mysql/libmysqlclient.a(
> > viosocket.o)
> > shutdown
> > /usr/local/mysql/lib/mysql/libmysqlclient.a(
> > viosocket.o)
> > socket
> > /usr/local/mysql/lib/mysql/libmysqlclient.a(
> > libmysql.o)
> > floor
> > /usr/local/mysql/lib/mysql/libmysqlclient.a(
> > password.o)
> > ld: fatal: Symbol referencing errors. No output written to conftest
> > collect2: ld returned 1 exit status
> > configure:9319: $? = 1
> > 
> > 
> > -------------------------------------------------------
> > This SF.Net email is sponsored by Oracle Space Sweepstakes
> > Want to be the first software developer in space?
> > Enter now for the Oracle Space Sweepstakes!
> > http://ads.osdn.com/?ad_ids93&alloc_id281&op?k
> > _______________________________________________
> > 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
> 
> -- 
> btoneill at misplaced.net
> 
> ************************************************************************
> ****
> UNIX is simple and coherent, but it takes a genius (or at any rate a 
> programmer) to understand and appreciate the simplicity."  - Dennis
> Ritchie
> ************************************************************************
> ****

-- 
btoneill at misplaced.net

****************************************************************************
UNIX is simple and coherent, but it takes a genius (or at any rate a 
programmer) to understand and appreciate the simplicity."  - Dennis Ritchie
****************************************************************************


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id281&op=click
_______________________________________________
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