Re: Compiling a SOAP extension for PHP5 in MaxOSX Leopard

[email protected]
Newsgroups php.install
Message-ID <[email protected]>
[email protected] 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.