Project

General

Profile

Bug #1848

php-wddx starting error in v2.5.x

Added by V Krishn about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Aports
Target version:
Start date:
05/07/2013
Due date:
% Done:

100%

Estimated time:
Affected versions:
Security IDs:

Description

Using:
PHP 5.3.18 (cgi-fcgi) (built: Oct 23 2012 20:19:19)

Test Method:

$ apk add php-apache2 php-xml php-wddx
$ /etc/init.d/apache2 start
$ tail -n 15 /var/log/apache2/error.log

<snip>...

/usr/sbin/httpd: symbol 'php_XML_SetCharacterDataHandler': can't resolve symbol in lib '/usr/lib/php/20090626/wddx.so'.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20090626/wddx.so' - (null) in Unknown on line 0
[Tue May 07 07:42:09.440360 2013] [mpm_prefork:notice] [pid 1378] AH00163: Apache/2.4.3 (Unix) PHP/5.3.18 configured -- resuming normal operations
[Tue May 07 07:42:09.440416 2013] [core:notice] [pid 1378] AH00094: Command line: '/usr/sbin/httpd -d /var/www -f /etc/apache2/httpd.conf'

Associated revisions

Revision 36e33d6d (diff)
Added by Natanael Copa about 6 years ago

main/php: fix dependency issue for wddx

ref #1848

Revision f8fd1f17 (diff)
Added by Natanael Copa about 6 years ago

main/php: fix dependency issue for wddx

fixes #1848
(cherry picked from commit 36e33d6dc1164a8c990d7a4ed8b2f37cf752d382)

Conflicts:
main/php/APKBUILD

History

#1 Updated by V Krishn about 6 years ago

Same issue with v2.6rc3.iso

#2 Updated by Natanael Copa about 6 years ago

Simplified testcase:

$ apk add php-xml php-wddx
$ php-cgi 

/usr/bin/php-cgi: symbol 'php_XML_SetCharacterDataHandler': can't resolve symbol
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/wddx.so' - (null) in Unknown on line 0

Workarounds:

$ LD_PRELOAD=/usr/lib/php/modules/xml.so php-cgi
  1. mv /etc/php/conf.d/xml.ini /etc/php/conf.d/_xml.ini

The problem is that by default php will load wddx before xml because it loads them in alphabetic order.

Not sure what the proper solution would be. Possible solution would be that we track the deps manually and prefix the xml.ini with a numeric prefix (eg 10-xml.ini, 20.wddx.ini)

I would have prefered that we link wddx.so directly to xml.so so xml.so ends up in wddx.so's NEEDED section. Then would apk-tools also trace the deps automatically for us. Duuno how to do that though.

#3 Updated by V Krishn about 6 years ago

I just changed xml.ini to 10-xml.ini and it works. Thanks.

If the order is an issue than other mods may also be affected, example.
I also noticed the following list order for pdo* mods in debian:

10-pdo.ini -> ../mods-available/pdo.ini
20-mysqli.ini -> ../mods-available/mysqli.ini
20-mysql.ini -> ../mods-available/mysql.ini
20-pdo_mysql.ini -> ../mods-available/pdo_mysql.ini

This order is not made in alpine. So pls have a look for dep for all mods.

#4 Updated by Natanael Copa about 6 years ago

  • Category set to Aports
  • Priority changed from High to Normal
  • Target version set to Alpine 2.6.0

looks like fedora simply renames the .ini file to xml_wddx.ini:
http://pkgs.fedoraproject.org/cgit/php.git/tree/php.spec#n1304

I guess this is the only modules having this problem.

#5 Updated by Natanael Copa about 6 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#6 Updated by Natanael Copa about 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF