Subject: pkg/36922: textproc/php5-xsl module does not load on php5
To: None <,,>
From: None <>
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
NetBSD 3.1_STABLE NetBSD 3.1_STABLE (GENERIC) #4: Sat Jul 28 12:07:13 EDT 2007 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
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/' - /usr/pkg/lib/php/20040412/ 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/
  Expected in: flat namespace

Trace/BPT trap

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