[OpenIndiana-discuss] php-cgi

Anil replicase at gmail.com
Fri Dec 31 18:52:42 UTC 2010


Looks like this bug was filed:
http://www.illumos.org/issues/247

Not sure I understand the fix for it.
Later after I sent this email, I did find the fix/workaround for *my*
environment:

Changed extension_dir to not use zts-modules:

root at mask:/etc/php/5.2/nsapi# grep extension_dir php.ini
extension_dir=/usr/php/5.2/zts-modules
extension_dir = "/usr/php/5.2/modules:/var/php/5.2/modules"
root at mask:/etc/php/5.2/nsapi#




On Fri, Dec 31, 2010 at 10:44 AM, Anil <replicase at gmail.com> wrote:
> Has this been fixed in OI? Have you guys seen this?
>
> http://bugs.opensolaris.org/bugdatabase/printableBug.do?bug_id=6982901
>
>
> Running /usr/php/bin/php-cgi throws a bunch of symbol errors:
>
> root at mask:/usr/php/bin# ./php-cgi --version
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/php/5.2/zts-modules/apc.so' - ld.so.1: php-cgi: fatal:
> relocation error: file /usr/php/5.2/zts-modules/apc.so: symbol
> compiler_globals_id: referenced symbol not found in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/php/5.2/zts-modules/bz2.so' - ld.so.1: php-cgi: fatal:
> relocation error: file /usr/php/5.2/zts-modules/bz2.so: symbol
> core_globals_id: referenced symbol not found in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/php/5.2/zts-modules/curl.so' - ld.so.1: php-cgi: fatal:
> relocation error: file /usr/php/5.2/zts-modules/curl.so: symbol
> core_globals_id: referenced symbol not found in Unknown on line 0
> PHP Warning:  PHP Startup: ftp: Unable to initialize module
> Module compiled with module API=20060613, debug=0, thread-safety=1
> PHP    compiled with module API=20060613, debug=0, thread-safety=0
> These options need to match
>  in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/php/5.2/zts-modules/gd.so' - ld.so.1: php-cgi: fatal: relocation
> error: file /usr/php/5.2/zts-modules/gd.so: symbol core_globals_id:
> referenced symbol not found in Unknown on line 0
> PHP Warning:  PHP Startup: gettext: Unable to initialize module
> Module compiled with module API=20060613, debug=0, thread-safety=1
> PHP    compiled with module API=20060613, debug=0, thread-safety=0
> These options need to match
>  in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/php/5.2/zts-modules/iconv.so' - ld.so.1: php-cgi: fatal:
> relocation error: file /usr/php/5.2/zts-modules/iconv.so: symbol
> sapi_globals_id: referenced symbol not found in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/php/5.2/zts-modules/imap.so' - ld.so.1: php-cgi: fatal:
> relocation error: file /usr/php/5.2/zts-modules/imap.so: symbol
> file_globals_id: referenced symbol not found in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/php/5.2/zts-modules/ldap.so' - ld.so.1: php-cgi: fatal:
> relocation error: file /usr/php/5.2/zts-modules/ldap.so: symbol
> executor_globals_id: referenced symbol not found in Unknown on line 0
> PHP Warning:  PHP Startup: mcrypt: Unable to initialize module
> Module compiled with module API=20060613, debug=0, thread-safety=1
> PHP    compiled with module API=20060613, debug=0, thread-safety=0
> These options need to match
>  in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/php/5.2/zts-modules/mysql.so' - ld.so.1: php-cgi: fatal:
> relocation error: file /usr/php/5.2/zts-modules/mysql.so: symbol
> core_globals_id: referenced symbol not found in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/php/5.2/zts-modules/mysqli.so' - ld.so.1: php-cgi: fatal:
> relocation error: file /usr/php/5.2/zts-modules/mysqli.so: symbol
> executor_globals_id: referenced symbol not found in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/php/5.2/zts-modules/openssl.so' - ld.so.1: php-cgi: fatal:
> relocation error: file /usr/php/5.2/zts-modules/openssl.so: symbol
> core_globals_id: referenced symbol not found in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/php/5.2/zts-modules/pdo.so' - ld.so.1: php-cgi: fatal:
> relocation error: file /usr/php/5.2/zts-modules/pdo.so: symbol
> compiler_globals_id: referenced symbol not found in Unknown on line 0
> PHP Warning:  PHP Startup: pdo_mysql: Unable to initialize module
> Module compiled with module API=20060613, debug=0, thread-safety=1
> PHP    compiled with module API=20060613, debug=0, thread-safety=0
> These options need to match
>  in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/php/5.2/zts-modules/pdo_sqlite.so' - ld.so.1: php-cgi: fatal:
> relocation error: file /usr/php/5.2/zts-modules/pdo_sqlite.so: symbol
> executor_globals_id: referenced symbol not found in Unknown on line 0
> PHP Warning:  PHP Startup: snmp: Unable to initialize module
> Module compiled with module API=20060613, debug=0, thread-safety=1
> PHP    compiled with module API=20060613, debug=0, thread-safety=0
> These options need to match
>  in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/php/5.2/zts-modules/sqlite.so' - ld.so.1: php-cgi: fatal:
> relocation error: file /usr/php/5.2/zts-modules/sqlite.so: symbol
> executor_globals_id: referenced symbol not found in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library
> '/usr/php/5.2/zts-modules/tidy.so' - ld.so.1: php-cgi: fatal:
> relocation error: file /usr/php/5.2/zts-modules/tidy.so: symbol
> core_globals_id: referenced symbol not found in Unknown on line 0
> PHP 5.2.12 (cgi-fcgi) (built: Aug 21 2010 20:40:18)
> Copyright (c) 1997-2009 The PHP Group
> Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
> root at mask:/usr/php/bin#
>



More information about the OpenIndiana-discuss mailing list