check_mysql plugin will not compile

Lundgren, Scott SELundgr at email.uncc.edu
Mon Mar 20 21:11:08 CET 2006


>> Errors I have in config.log:
>>  
>> configure:9365: checking for mysql_init in -lmysqlclient
>> configure:9395: cc -o conftest -g -I/opt/csw/include  -L. conftest.c 
>> -lmysqlclient -L/opt/csw/lib/mysql -lz  >&5
>> ld: fatal: library -lmysqlclient: not found
>> ld: fatal: File processing errors. No output written to conftest
>
>This looks like thy mysqlclient library is not found, so either it is
not installed, it is installed in a non-standard location, or your LD
path isn't >complete.
>
>In other words, make sure that ld searches for the library in the
correct locations, i.e. the directories in the LD_OPTIONS or the
standard system library paths.

I'm compiling on Solaris 9, using the MySQL packages from the blastwave
project (http://www.blastwave.org) so MySQL has been relocated. My
LD_OPTIONS path is what I had to set to get the Pure-FTP ftp daemon to
compile w/ MySQL support but if you think LD_OPTIONS needs to be set
differently for this case let me know. Again ld options is set to:

LD_OPTIONS=-R/opt/csw/lib -R/opt/csw/mysql4/lib/mysql -L/opt/csw/lib 

The one odd thing is I don't have a libmysqlclient file that the
config.log references. I have shared objects but not just a plain
"libmysqlclient" file. Here is the file listing. What do you suggest
next ?

selundgr at its20 $ ls -l /opt/csw/lib/mysql/
lrwxrwxrwx   1 root     other         19 Mar  1 15:20
/opt/csw/lib/mysql/ -> ../mysql4/lib/mysql
selundgr at its20 # ls -l /opt/csw/mysql4/lib/mysql/
total 15460
-rw-r--r--   1 root     bin        19568 Nov 13 10:21 libdbug.a
-rw-r--r--   1 root     bin       129060 Nov 13 10:21 libheap.a
-rw-r--r--   1 root     bin       548152 Nov 13 10:21 libmyisam.a
-rw-r--r--   1 root     bin        99588 Nov 13 10:21 libmyisammrg.a
-rw-r--r--   1 root     bin      1756184 Nov 13 10:22 libmysqlclient.a
-rwxr-xr-x   1 root     bin          926 Nov 13 10:22 libmysqlclient.la
lrwxrwxrwx   1 root     other         24 Mar  1 15:20 libmysqlclient.so
-> libmysqlclient.so.14.0.0
lrwxrwxrwx   1 root     other         24 Mar  1 15:20
libmysqlclient.so.12 -> libmysqlclient.so.12.0.0
lrwxrwxrwx   1 root     other         24 Mar  1 15:20
libmysqlclient.so.12.0 -> libmysqlclient.so.12.0.0
-rwxr-xr-x   1 root     bin       294900 Nov 13 11:07
libmysqlclient.so.12.0.0
lrwxrwxrwx   1 root     other         24 Mar  1 15:20
libmysqlclient.so.14 -> libmysqlclient.so.14.0.0
lrwxrwxrwx   1 root     other         24 Mar  1 15:20
libmysqlclient.so.14.0 -> libmysqlclient.so.14.0.0
-rwxr-xr-x   1 root     bin      1199836 Nov 13 11:07
libmysqlclient.so.14.0.0
-rw-r--r--   1 root     bin      1781036 Nov 13 10:22 libmysqlclient_r.a
-rwxr-xr-x   1 root     bin          978 Nov 13 10:22
libmysqlclient_r.la
lrwxrwxrwx   1 root     other         26 Mar  1 15:20
libmysqlclient_r.so -> libmysqlclient_r.so.14.0.0
lrwxrwxrwx   1 root     other         26 Mar  1 15:20
libmysqlclient_r.so.12 -> libmysqlclient_r.so.12.0.0
lrwxrwxrwx   1 root     other         26 Mar  1 15:20
libmysqlclient_r.so.12.0 -> libmysqlclient_r.so.12.0.0
-rwxr-xr-x   1 root     bin            0 Mar 20 12:09
libmysqlclient_r.so.12.0.0
lrwxrwxrwx   1 root     other         26 Mar  1 15:20
libmysqlclient_r.so.14 -> libmysqlclient_r.so.14.0.0
lrwxrwxrwx   1 root     other         26 Mar  1 15:20
libmysqlclient_r.so.14.0 -> libmysqlclient_r.so.14.0.0
-rwxr-xr-x   1 root     bin            0 Mar 20 12:09
libmysqlclient_r.so.14.0.0
-rw-r--r--   1 root     bin      1255372 Nov 13 10:21 libmystrings.a
-rw-r--r--   1 root     bin       676392 Nov 13 10:21 libmysys.a
-rw-r--r--   1 root     bin        31104 Nov 13 10:21 libvio.a
lrwxrwxrwx   1 root     other          1 Mar  1 15:20 sparcv8 -> .
drwxr-xr-x   2 root     bin          512 Mar  1 15:20 sparcv8plus+vis
drwxr-xr-x   2 root     bin          512 Mar  1 15:20 sparcv9

Scott Lundgren
ITS - Web Services
UNC at Charlotte
http://www.uncc.edu
 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
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