Re: Compiling a SOAP extension for PHP5 in MaxOSX Leopard

From: Date: Fri, 18 Apr 2008 08:11:56 +0000
Subject: Re: Compiling a SOAP extension for PHP5 in MaxOSX Leopard
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-18827@lists.php.net to get a copy of this message
php.net@henrik.synth.no skrev:
dyld: NSLinkModule() error dyld: Symbol not found: _OnUpdateLong Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20060613/soap.so Expected in: flat namespace Trace/BPT trap I found an OnUpdateLong function in php_src/ext/zlib/zlib.c, but I don't know if that's relevant.
I got one step further by installing the zlib extension (which has the OnUpdateLong function): cd php_src/ext/zlib ln -s config0.m4 config.m4 sudo phpize MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" CXXFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" LDFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bind_at_load" ./configure --enable-shared make sudo make install I added extension=zlib.so before the soap.so line in /private/etc/php.ini. Now it fails with another function: dyld: NSLinkModule() error dyld: Symbol not found: _zend_ini_boolean_displayer_cb Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20060613/zlib.so Expected in: dynamic lookup Trace/BPT trap It seems like zend_ini_boolean_displayer_cb is defined in php_src/Zend/zend_ini.c as ZEND_INI_DISP(zend_ini_boolean_displayer_cb). I cannot compile zend as a module, since it's a core thingie. I guess it has something to do with linking. Or something? Best regards, Henrik

« previous php.install (#18827) next »