Opened 15 years ago
Closed 15 years ago
#21573 closed defect (duplicate)
php5-mysql: Symbol not found: _core_globals, apache2 +workermpm
Reported by: | james.applemac@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | Cc: | nerdling (Jeremy Lavergne) | |
Port: | php5-mysql |
Description
Hi,
I compiled and installed php5-mysql under OS X 10.6.1 but encounter problem when run 'php -m' .
The following are the error message:
php -m dyld: NSLinkModule() error dyld: Symbol not found: _core_globals Referenced from: /opt/local/lib/php/extensions/no-debug-zts-20090626/mysql.so Expected in: flat namespace in /opt/local/lib/php/extensions/no-debug-zts-20090626/mysql.so Trace/BPT trap
Change History (15)
comment:1 Changed 15 years ago by mf2k (Frank Schima)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|
comment:2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
comment:4 Changed 15 years ago by james.applemac@…
I compiled apache2(2.2.13_2) with variants:+darwin+openldap+workermpm and, php5(5.3.0_2) with variants "+apache2+darwin_10+dbase+ipc+macosx+pear+snmp+suhosin"
comment:5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Please reinstall php5 with the +preforkmpm variant instead of the +workermpm variant and let me know if that fixes the problem.
comment:6 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Let me try that again: Please reinstall apache2 with the +preforkmpm variant instead of the +workermpm variant and then reinstall php5 and let me know if that fixes the problem.
comment:7 Changed 15 years ago by james.applemac@…
It's means that I need uninstall apache2, php5 and each php* package? or just forced uninstall apache2 and php5 ?
comment:8 follow-up: 9 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
I believe you just need to rebuild apache2 with the +preforkmpm variant and rebuild php5:
sudo port deactivate apache2 sudo port install apache2 +openldap sudo port -n upgrade --force php5
comment:9 Changed 15 years ago by james.applemac@…
Replying to ryandesign@…:
I believe you just need to rebuild apache2 with the +preforkmpm variant and rebuild php5:
sudo port deactivate apache2 sudo port install apache2 +openldap sudo port -n upgrade --force php5
It show me the following error message after doing the steps you mentioned:
php -m dyld: NSLinkModule() error dyld: Symbol not found: _compiler_globals_id Referenced from: /opt/local/lib/php/extensions/no-debug-zts-20090626/xdebug.so Expected in: flat namespace in /opt/local/lib/php/extensions/no-debug-zts-20090626/xdebug.so Trace/BPT trap }} I try to uninstall php5-xdebug then executed 'php -m', it show me many Warnings: {{ php -m PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/calendar.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/calendar.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/exif.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/exif.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/ftp.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/ftp.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/gd.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/gd.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/gettext.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/gettext.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/gmp.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/gmp.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/iconv.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/iconv.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/imap.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/imap.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/intl.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/intl.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/mbstring.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/mbstring.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/mcrypt.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/memcache.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/memcache.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/openssl.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/openssl.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/pcntl.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/pcntl.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/posix.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/posix.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/pspell.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/pspell.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/rrdtool.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/rrdtool.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/soap.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/soap.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/sockets.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/sockets.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/tidy.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/tidy.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/uploadprogress.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/uploadprogress.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/wddx.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/wddx.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/xmlrpc.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/xmlrpc.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/xsl.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/xsl.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/yaz.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/yaz.so' - (null) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/zip.so' - (null) in Unknown on line 0 Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/zip.so' - (null) in Unknown on line 0 [PHP Modules] bcmath bz2 Core ctype date dba dom ereg fileinfo filter hash json ldap libxml mhash mysqlnd odbc pcre PDO Phar readline Reflection session shmop SimpleXML snmp SPL standard sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlwriter zlib [Zend Modules]
comment:10 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Ok, then do rebuild the modules as well after all. This command should do it:
sudo port -n upgrade --force installed and 'php5-*' and not php5-devel
comment:11 Changed 15 years ago by james.applemac@…
After executing "sudo port -n upgrade --force installed and 'php5-*' and not php5-devel" It show me the following ERROR message when running 'php -m':
dyld: lazy symbol binding failed: Symbol not found: _zend_mh_bundle_symbol Referenced from: /opt/local/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so Expected in: flat namespace dyld: Symbol not found: _zend_mh_bundle_symbol Referenced from: /opt/local/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so Expected in: flat namespace Trace/BPT trap
comment:12 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Try uninstalling the php5-suhosin port (and the suhosin port if you have it; that was its old name). Does php work then? If so, then you can try cleaning and installing php5-suhosin again if you want.
comment:14 Changed 15 years ago by james.applemac@…
I try to uninstall php-suhosin, then it seems OK But when I clean and install php5-suhosin again, it show me the same ERROR
php -m dyld: lazy symbol binding failed: Symbol not found: _zend_mh_bundle_symbol Referenced from: /opt/local/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so Expected in: flat namespace dyld: Symbol not found: _zend_mh_bundle_symbol Referenced from: /opt/local/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so Expected in: flat namespace Trace/BPT trap
comment:15 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Summary: | php5-mysql compile OK, but running ERROR under OS X 10.6.1 → php5-mysql: Symbol not found: _core_globals, apache2 +workermpm |
See also #21574 reported against a different module.
How is your php5 compiled? With what variants?
Are you using it with apache2? If so, with what variants is your apache2 compiled?