Changeset 28083


Ignore:
Timestamp:
2011-08-25T12:10:38+02:00 (5 years ago)
Author:
florian
Message:

[package] Fix mysql dependencies

Trying to fix some issues with php5 I discoverd that php5's mysql extension doesn't load:

<snip>
root@OpenWrt:/tmp# php-cli -m
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/mysql.so' - File not found in Unknown on line 0
[PHP Modules]
Core
ctype
curl
date
ereg
gettext
json
openssl
pcntl
pcre
posix
Reflection
session
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
zlib

[Zend Modules]
</snap>

After installing uclibcxx, the extension loads fine:

<snip>
root@OpenWrt:/tmp# opkg install uclibcxx
Installing uclibcxx (0.2.2-3) to root...
Downloading http://192.168.1.2:8081/brcm47xx/packages/uclibcxx_0.2.2-3_brcm47xx.ipk.
Configuring uclibcxx.
root@OpenWrt:/tmp# php-cli -m
[PHP Modules]
<...>
mysql
<...>

[Zend Modules]
</snap>

So the mysqlclient library needs uclibcxx, not only mysql-server. But since
mysql-server is depended of the mysqlclient library we can shorten its dependencies.

I also cross-checked that e.g. a mysql-enabled lighttpd shows the same behaviour
when uclibcxx is not installed.
<snip>
root@OpenWrt:/tmp/log/lighttpd# lighttpd -f /etc/lighttpd/lighttpd.conf
1970-01-01 05:07:30: (plugin.c.169) dlopen() failed for: /usr/lib/lighttpd/mod_mysql_vhost.so File not found
1970-01-01 05:07:30: (server.c.650) loading plugins finally failed
</snap>

Signed-off-by: Michael Heimpold <mhei@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/mysql/Makefile

    r26540 r28083  
    1010PKG_NAME:=mysql 
    1111PKG_VERSION:=5.1.53 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    3030  SECTION:=libs 
    3131  CATEGORY:=Libraries 
    32   DEPENDS:=+zlib 
     32  DEPENDS:=+uclibcxx +zlib 
    3333  TITLE:=MySQL client library 
    3434  URL:=http://dev.mysql.com/ 
     
    3838  SECTION:=utils 
    3939  CATEGORY:=Utilities 
    40   DEPENDS:=+zlib +libmysqlclient +uclibcxx 
     40  DEPENDS:=+libmysqlclient 
    4141  TITLE:=MySQL Server 
    4242  URL:=http://dev.mysql.com/ 
Note: See TracChangeset for help on using the changeset viewer.