OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004149 [php5_mysql] upgrade major always 2010-01-12 18:51 2012-01-29 16:47
Reporter dorix View Status public  
Assigned To bwalton
Priority normal Resolution fixed  
Status closed  
Summary 0004149: Cannot find libmysqlclient.so.15
Description Since a recent upgrade of the Mysql5 packages, php5_mysql's mysql.so file cannot find its required libmysqlclient.so.15 library anymore.

I have worked around this by:

ln -s /opt/csw/mysql5/lib/mysql /opt/csw/lib/mysql
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0007280)
pfelecan (developer)
2010-01-18 11:53

just to confirm that the workaround is correct
(0007399)
gadavis (reporter)
2010-02-02 23:21

Any chance we can get new packages built so that the library locations are corrected?
(0007411)
maciej (reporter)
2010-02-08 09:58

The conversation today on IRC:

08:51 <@automaciej> Dagobert: http://www.opencsw.org/bugtrack/view.php?id=4149 [^]
08:52 <@Dagobert> What is wrong in making that link I also proposed?
08:52 <@automaciej> ...I'm thinking that either this symlink shouldn't be there, or the whole package should be in /opt/csw.
08:52 <@Dagobert> We can reorder the library-includes in GAR
08:52 <@Dagobert> It is for legacy only!
08:52 <@Dagobert> We must update php.
08:52 <@automaciej> but if we have the symlink, it'll never go away
08:52 <@Dagobert> :-P
08:52 <@Dagobert> just for the few legacy packages.
08:52 <@automaciej> because people will keep linking against it
08:52 <@automaciej> in the new packages
08:53 <@Dagobert> *Sigh*
08:53 <@automaciej> so I can as well move the whole thing to /opt/csw.
08:53 <@Dagobert> NO!!
08:53 <@automaciej> so, "legacy forever"?
08:54 <@Dagobert> No. Just until the dependencies have been rebuild.
08:54 <@automaciej> Maybe CSWmysql5legacysymlink?
08:55 <@Dagobert> That wouldn't help because it wouldn't be pulled in automatically
08:55 <@automaciej> right, so we'll also need a check to verify that nothing links against /opt/csw/lib/mysql
08:55 <@Dagobert> Or try fixing php now.
08:56 <@automaciej> in other words, that /opt/csw/lib/mysql is not part of any RPATH of any binary in the new packages
08:56 <@Dagobert> Yes.
(0007415)
maciej (reporter)
2010-02-08 21:25

Updated rt packages are available for download:

http://mirror.opencsw.org/experimental.html#maciej [^]
(0007476)
skayser (administrator)
2010-02-18 21:46

Problem with PHP's mysql.so persists. Looks as if the symlink points one directory too high.

# pkgparam CSWmysql5rt VERSION
5.0.87,REV=2010.02.08

# grep /opt/csw/lib/mysql /var/sadm/install/contents
/opt/csw/lib/mysql=../../mysql5/lib/mysql s none CSWmysql5rt
# cd /opt/csw/lib/
# ls -l mysql
lrwxrwxrwx 1 root root 22 Feb 18 19:24 mysql -> ../../mysql5/lib/mysql
# cd ../../mysql5/lib/mysql
bash: cd: ../../mysql5/lib/mysql: No such file or directory
# ls -ld /opt/csw/mysql5/lib/mysql
drwxr-xr-x 2 root bin 512 Feb 18 19:24 /opt/csw/mysql5/lib/mysql

Re-pointing the link does the job (notice the single ../ instead of ../../).

# rm mysql
# ln -s ../mysql5/lib/mysql .
# ls -l mysql
lrwxrwxrwx 1 root root 19 Feb 18 21:45 mysql -> ../mysql5/lib/mysql
# cd mysql
# ls
64 libmysqlclient.so.15 libmysqlclient_r.so libmysqlclient_r.so.15.0.0 sparcv9
libmysqlclient.so libmysqlclient.so.15.0.0 libmysqlclient_r.so.15 sparcv8
(0009557)
bwalton (administrator)
2012-01-29 16:03

This is now resolved, no?
(0009562)
maciej (reporter)
2012-01-29 16:42

Yes, the libraries are now in /opt/csw/lib, any binary with /opt/csw/lib in the RPATH should be able to find them.
(0009563)
bwalton (administrator)
2012-01-29 16:47

No longer an issue.

- Issue History
Date Modified Username Field Change
2010-01-12 18:51 dorix New Issue
2010-01-18 11:53 pfelecan Note Added: 0007280
2010-02-02 23:21 gadavis Note Added: 0007399
2010-02-02 23:21 gadavis Issue Monitored: gadavis
2010-02-08 09:58 maciej Note Added: 0007411
2010-02-08 21:25 maciej Note Added: 0007415
2010-02-18 21:46 skayser Note Added: 0007476
2012-01-29 16:03 bwalton Note Added: 0009557
2012-01-29 16:08 bwalton Status new => assigned
2012-01-29 16:08 bwalton Assigned To => bwalton
2012-01-29 16:42 maciej Note Added: 0009562
2012-01-29 16:47 bwalton Note Added: 0009563
2012-01-29 16:47 bwalton Status assigned => closed
2012-01-29 16:47 bwalton Resolution open => fixed


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker