Sunanda Menon wrote: > Hi Seema , > > The two issues are > > 1) - the inclusion of compiler in the link path > Removed this compiler location that was set in LDFLAGS settings .Please > see the LDFLAGS in the gate > 2) - the lack of the -R /usr/mysql/5.0/lib/mysql, without which a built > program will not find the shared libraries. > > I have added the standard library path's with -R option ie -R/usr/lib:/lib > > Now if I were to test the mysql_config --libs ,it shows it as > # cd /usr/mysql/5.0/bin > # ls -l mysql_config > -rwxr-xr-x 1 root bin 5493 Mar 12 23:27 mysql_config > # ./mysql_config --libs > -R/usr/lib:/lib -L/usr/lib -L/lib -lCrun -lrt > -L/usr/mysql/5.0/lib/mysql -lmysqlclient -lz -lgen -lsocket -lnsl -lm
That is fine. But, -L option means the user, before running the client program (compiled using the above flags), will have to explicitly set the LD_LIBRARY_PATH. Whereas with '-R', that is not required. You may want to find out how a mysql client program is usually invoked. -- Seema. > # pwd > /usr/mysql/5.0/bin > # uname -a > SunOS samp 5.11 snv_81 sun4u sparc SUNW,Sun-Fire-V240 > # > > Hope this clarifies . > Thanks Sunanda > > Seema Alevoor wrote: >> CR 6664712 lists 2 issues. >> How are you addressing the 2nd issue (lack of mysql lib path in the >> runpath) ? >> >> >> -- Seema. >> >> >> Sunanda Menon wrote: >>> Hi , >>> >>> As part of the CR's 6664712 & 6641437 ,I would like to make changes >>> to the Makefile.sfw .Please review the changes at >>> http://cr.opensolaris.org/~sunandam/6664712/ and send me your comments . >>> >>> >>> Thanks >>> > >