Subject: Re: pkg/36869 (php5 cannot load php extensions on Darwin 8.10.0)
To: None <gnats-bugs@NetBSD.org>
From: Louis Guillaume <lguillaume@berklee.edu>
List: pkgsrc-bugs
Date: 09/02/2007 16:25:27
Jaromir Dolecek wrote:
> The following reply was made to PR pkg/36869; it has been noted by GNATS.
> 
> From: Jaromir Dolecek <jdolecek@NetBSD.org>
>  
>  Hi,
>  
>  can you send me output of 'php -v' ?

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

Trace/BPT trap


>  
>  Mac OS contains PHP 4.4.7 in /usr/bin, perhaps you run the other
>  version by mistake. Good way to ensure you have proper version
>  is to edit $PKGBASE/etc/php.ini, not /etc/php.ini.
>  

I understand... Here are some environmental details...

================================================================
# echo $PATH
/usr/pkg/bin:/usr/pkg/sbin:/bin:/sbin:/usr/bin:/usr/sbin
================================================================
# cat /etc/mk.conf
.ifdef BSD_PKG_MK       # begin pkgsrc settings

PKG_DBDIR=/var/db/pkg
LOCALBASE=/usr/pkg
VARBASE=/var
FETCH_CMD=/usr/pkg/bin/ftp
PAX=/usr/pkg/bin/pax

DISTDIR=/Volumes/Chacachacare/distfiles
PACKAGES=/Volumes/Huevos/pkgsrc-packages
WRKOBJDIR=/usr/pkgobj
PKG_SYSCONFBASE=/etc
PKGCHK_CONF=/etc/pkgchk.conf
#X11_TYPE=xorg

DEPENDS_TARGET=package
USE_BUILTIN.cups= yes
USE_BUILTIN.x11 = yes

PKG_OPTIONS.ruby += ruby-build-ri-db
PKG_OPTIONS.vim += ruby

PGHOME=${VARBASE}/${PGUSER}

.endif                  # end pkgsrc settings
================================================================

Note the PKG_SYSCONFBASE setting. So /etc/php.ini is the right one.

Louis