Upgraded php, what did I do wrong:

Bjarne D Mathiesen macintosh at mathiesen.info
Tue Mar 16 11:27:06 PDT 2010


Scott Haneda wrote:
> On Mar 16, 2010, at 10:55 AM, Scott Haneda wrote:
> 
>> Last night I ran a quick `sudo port upgrade php5`
>> /opt/local/bin/php
>> haneda at macbook ~: $/opt/local/bin/php -i
>> dyld: lazy symbol binding failed: Symbol not found: __mysqlnd_palloc_init_cache
>>  Referenced from: /opt/local/lib/php/extensions/no-debug-non-zts-20090626/mysql.so
>>  Expected in: flat namespace
>>
>> dyld: Symbol not found: __mysqlnd_palloc_init_cache
>>  Referenced from: /opt/local/lib/php/extensions/no-debug-non-zts-20090626/mysql.so
>>  Expected in: flat namespace
>>
>> Trace/BPT trap
>>
>> Any idaes?
> 
> I can also add that I get this in the Apache log, and Apache2 will not start:
> $tail -f /opt/local/apache2/logs/error_log 
> 
> [Tue Mar 16 10:57:04 2010] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
> dyld: lazy symbol binding failed: Symbol not found: __mysqlnd_palloc_init_cache
>   Referenced from: /opt/local/lib/php/extensions/no-debug-non-zts-20090626/mysql.so
>   Expected in: flat namespace
> 
> dyld: Symbol not found: __mysqlnd_palloc_init_cache
>   Referenced from: /opt/local/lib/php/extensions/no-debug-non-zts-20090626/mysql.so
>   Expected in: flat namespace
> 

You've also installed php5-mysql +mysqlnd

I've got some problems getting the mysqlnd interface to work correctly,
so try :
port uninstall php5-mysql +mysqlnd
port clean     php5-mysqlnd
port install   php5-mysql +mysql5

The reason that httpd fails to start is that it's got php5 as a module.
And as php5 fails then the php5.so module in httpd fails and thus httpd
fails to start.

If you don't need the php5 functionality in httpd you can comment out
the loadmodule statement in httpd.conf and work around the problem
temporarily this way.

If you don't need ssl in httpd I'll recommend also to comment out he ssl
module in httpd.conf - that module is the reason for the warning as you
haven't configured the ssl module properly.

-- 
Bjarne D Mathiesen
København N ; Danmark ; Europa
----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacOS X 10.6.2 Snow Leopard ; 2.8GHz Intel Core i7 ; 16GB 1067MHz DDR3
                                       http://webadmin.mathiesen.info/


More information about the macports-users mailing list