Dear MySQL developers and fanatics:

Alright, after lots of fiddling, I have more information for you. My previous fix (to 
set LD_LIBRARY_PATH) DOES work. However, it has a shortcoming: users need to have 
LD_LIBRARY_PATH set to use the mysql client and root needs to have LD_LIBRARY_PATH set 
to run the mysql daemon. Even setting LD_RUN_PATH only partially fixes this problem, 
preventing root from needing to set LD_LIBRARY_PATH before running mysqld, but not 
helping on the client side. This is because the client compilation already includes a 
-R flag that overrides the LD_RUN_PATH.

A more complete fix is to set LDFLAGS to '-R/opt/sfw/lib' prior to compilation. This 
will override LDFLAGS and force a correct compile and prevent anyone from having to 
set their LD_LIBRARY_PATH. Obviously, this shortcut could be implemented in the 
configure script.

HOWEVER, this is inadequate for a permenant fix. The proper fix would be to properly 
utilize CXXFLAGS in the configure script and various Makefiles. Currently, it's in the 
Makefiles but not used (as far as I can see). The appropriate fix for this problem is 
to set CXXFLAGS to '-R/opt/sfw/lib' for SOLARIS users WHO ARE USING /opt/sfw/* 
compilers and have the configure script use that for c++ compiler testing instead of 
LDFLAGS.

I've posted a website about this. It can be found at 
http://home.earthlink.net/~jaymzh666/mysql.html

I hope this helps!

Phil Dibowitz
--
Insanity Palace of Metallica
http://www.ipom.com/
[EMAIL PROTECTED]
--

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to