Hello,
On 3/20/2006 9:11 PM, Lundgren, Scott wrote:
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.
From the info you give below I guess it's safe to assume the stuff is
in fact available.
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
Well, from the LP_OPTIONS line I guessed you're running Solaris, but
hat's about as far as my knowledge of that system goes :-(
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 ?
Usually, you should see a reference to a mysqlclient or mysqlclient_r
file, or at least the linker should be informed of the need for such a
file. If you need the .a (library for static linking) or .so
(dynamically shared object) variety is beyond my knowledge, but all four
variants are available in your setup.
I'd suggest to analyze the informative output about the linker and
dynamic linker solaris can produce to make sure the paths you give are
actually used. I notice that you have /opt/csw/lib/mysql and
/opt/csw/mysql4/lib/mysql and ./configure searches in the first variant.
Try the actual path, perhaps that works.
Arno
[EMAIL PROTECTED] $ ls -l /opt/csw/lib/mysql/
lrwxrwxrwx 1 root other 19 Mar 1 15:20
/opt/csw/lib/mysql/ -> ../mysql4/lib/mysql
[EMAIL PROTECTED] # 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
--
IT-Service Lehmann [EMAIL PROTECTED]
Arno Lehmann http://www.its-lehmann.de
-------------------------------------------------------
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&kid=110944&bid=241720&dat=121642
_______________________________________________
Nagios-users mailing list
[email protected]
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