Subject: pkg/36922: textproc/php5-xsl module does not load on php5
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <lguillaume@berklee.edu>
List: pkgsrc-bugs
Date: 09/05/2007 19:00:00
>Number:         36922
>Category:       pkg
>Synopsis:       textproc/php5-xsl module does not load on php5
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 05 19:00:00 +0000 2007
>Originator:     Louis Guillaume
>Release:        NetBSD-3.1_STABLE/i386, Darwin 8.10.0
>Organization:
>Environment:
NetBSD xxx.xxx.xxx 3.1_STABLE NetBSD 3.1_STABLE (GENERIC) #4: Sat Jul 28 12:07:13 EDT 2007  louis@xxx.xxx.xxx:/usr/obj/sys/arch/i386/compile/GENERIC i386

Darwin louis-powerbook-g4-15.local 8.10.0 Darwin Kernel Version 8.10.0: Wed May 23 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC Power Macintosh powerpc
>Description:
php5-xsl module does not load in pkgsrc-2007Q2.

There are no special settings in mk.conf that affect the building of this package. It appears to build cleanly but at run-time, the module is not loaded.

Here is the error on NetBSD...
$ php -v  
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/pkg/lib/php/20040412/xsl.so' - /usr/pkg/lib/php/20040412/xsl.so: Undefined symbol "dom_node_class_entry" (symnum = 66) in Unknown on line 0
PHP 5.2.3 (cli) (built: Aug 23 2007 13:09:43) 
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

... and on Darwin ...
$ php -v
dyld: NSLinkModule() error
dyld: Symbol not found: _dom_node_class_entry
  Referenced from: /usr/pkg/lib/php/20040412/xsl.so
  Expected in: flat namespace

Trace/BPT trap


Note: other modules do not have this problem. This is specific to the php5-xsl package.
>How-To-Repeat:
1. Install lang/php5 and textproc/php5-xsl
2. Edit php.ini to include "extensions=xsl.so"
3. Run php -v
4. See it fail.


>Fix: