Subject: pkg/36869: php5 cannot load php extensions on Darwin 8.10.0
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <lguillaume@berklee.edu>
List: pkgsrc-bugs
Date: 08/31/2007 07:40:00
>Number:         36869
>Category:       pkg
>Synopsis:       php5 cannot load php extensions on Darwin 8.10.0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 31 07:40:00 +0000 2007
>Originator:     Louis Guillaume
>Release:        Darwin 8.10.0
>Organization:
>Environment:
Darwin dhcp-214.zabrico.com 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:
After a normal build of lang/php5 and an extension (such as archivers/php-zlib) php will start but will fail to load the extension like this...

# which php
/usr/pkg/bin/php
# php --version
dyld: NSLinkModule() error
dyld: Symbol not found: _zend_ini_boolean_displayer_cb
  Referenced from: /usr/pkg/lib/php/20040412/zlib.so
  Expected in: flat namespace

Trace/BPT trap
# ls -l /usr/pkg/lib/php/20040412/
total 64
-r--r--r--   1 root  wheel  30964 Aug 29 18:11 zlib.so
# grep ^extension /etc/php.ini
extension=zlib.so

>How-To-Repeat:
Using pkgsrc-2007Q2.
XCode Tools (version 2.4.1). 

1. build www/php5
2. build archivers/php-zlib
3. Ensure that "extension=zlib.so" is in your ${SYSCONFBASE}/php.ini
4. run `php --version'
5. See it fail to load the extension.

This happens with every extension I've attempted to build: zlib, pgsql, xsl, pear.

See also pkg/35018 for a possibly related issue with building of ap2-php5 (www/ap-php).
>Fix: