AW: [Nagiosplug-help] MySQL check

Masopust Christian christian.masopust at siemens.com
Thu Mar 13 00:21:24 CET 2003


hi there,

you are missing libs "-lsocket -lnsl" to link it!

regards,
chris



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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20030313/92aaf3ef/attachment.html>


More information about the Help mailing list