FAQ
It appears that several modules/extensions don't work when built as
loadable extensions.

All software was built on Apple servers using the Apple Developer
Environment, I have tried the builds on owned machines running
current OSes with the same results to eliminate the possibility of
the ADE being at fault.

Building for apache 1.3.33 and everything except gmp works, the issue
occurs with apache 2 versions 2.0.53 and 2.2.4 (both I have installed).

If the extensions are built as bundled they appear to work properly
provided I force flat_namespace (some do build and work as
twolevel_namespace but they are rare), the issue is only when they
are built as loadable.

What I find odd about this problem is that none of the extensions
actually reference the missing symbols so I'm not sure what to make
of it other than it's a build bug but I'm not sure how to define it
or file it.

"either namespace" refers to "-twolevel_namespace" and "-
flat_namespace".

_________________________________________________


ones included that do work in apache 2: (forced as flat_namespace)
bcmath
dbase
filepro
gd
imap
memcache
mssql
mysql
mysqli
openbase_module
openssl
pdo_sqlite
pgsql
rrdtool
soap
tidy
wddx
xmlrpc
xsl

_________________________________________________


ones included that don't work in apache 2: (either namespace)
fbsql
gmp
rar

_________________________________________________


ones I added that do work in apache 2: (forced as flat_namespace)
big_int
bcompiler
dio
ffmpeg
pcntl
zip

_________________________________________________


ones I wrote that do work in apache 2: (forced as flat_namespace)
rrdtool

_________________________________________________


ones I wrote that don't work in apache 2: (either namespace)
clam

_________________________________________________

[ ERROR REPORT ]

Host Name: c20.apple.com
Date/Time: 2007-08-23 14:52:06.176 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 4632
Thread: Unknown

Link (dyld) error:

Symbol not found: _compiler_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/bcompiler
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 14:52:23.452 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 4641
Thread: Unknown

Link (dyld) error:

Symbol not found: _compiler_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/bcompiler
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 14:53:47.942 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 7408
Thread: Unknown

Link (dyld) error:

Symbol not found: _compiler_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/bcompiler
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 14:55:49.708 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 17789
Thread: Unknown

Link (dyld) error:

Symbol not found: _compiler_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/big_int
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 14:57:38.311 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 27056
Thread: Unknown

Link (dyld) error:

Symbol not found: _core_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/dbase
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 14:58:32.543 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 1497
Thread: Unknown

Link (dyld) error:

Symbol not found: _core_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/dio
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 14:59:23.724 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 3885
Thread: Unknown

Link (dyld) error:

Symbol not found: _executor_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/ffmpeg
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:00:20.410 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 3910
Thread: Unknown

Link (dyld) error:

Symbol not found: _core_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/filepro
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:01:10.702 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 5436
Thread: Unknown

Link (dyld) error:

Symbol not found: _core_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/gd
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:02:16.865 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 10603
Thread: Unknown

Link (dyld) error:

Symbol not found: _core_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/imap
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:03:25.600 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 14479
Thread: Unknown

Link (dyld) error:

Symbol not found: _executor_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/memcache
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:04:37.522 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 17688
Thread: Unknown

Link (dyld) error:

Symbol not found: _core_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/mssql
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:05:09.339 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 7775
Thread: Unknown

Link (dyld) error:

Symbol not found: _executor_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/fbsql
Expected in: flat namespace

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:05:50.690 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 25909
Thread: Unknown

Link (dyld) error:

Symbol not found: _executor_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/fbsql
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:08:08.041 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 9271
Thread: Unknown

Link (dyld) error:

Symbol not found: _core_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/mysql
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:08:51.663 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 13003
Thread: Unknown

Link (dyld) error:

Symbol not found: _core_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/mysqli
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:09:35.538 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 14530
Thread: Unknown

Link (dyld) error:

Symbol not found: _executor_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/openbase_module
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:10:53.457 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 18563
Thread: Unknown

Link (dyld) error:

Symbol not found: _core_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/openssl
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:11:40.640 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 22076
Thread: Unknown

Link (dyld) error:

Symbol not found: _executor_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/pcntl
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:12:26.475 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 24925
Thread: Unknown

Link (dyld) error:

Symbol not found: _core_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/pdo_sqlite
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:13:11.716 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 26898
Thread: Unknown

Link (dyld) error:

Symbol not found: _core_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/pgsql
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:14:05.566 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 664
Thread: Unknown

Link (dyld) error:

Symbol not found: _core_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/rar
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:14:33.949 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 2386
Thread: Unknown

Link (dyld) error:

Symbol not found: _sapi_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/rrdtool
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:15:26.671 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 5404
Thread: Unknown

Link (dyld) error:

Symbol not found: _core_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/soap
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:16:11.508 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 8219
Thread: Unknown

Link (dyld) error:

Symbol not found: _core_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/tidy
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:16:57.802 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 10813
Thread: Unknown

Link (dyld) error:

Symbol not found: _basic_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/wddx
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:17:39.584 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 13828
Thread: Unknown

Link (dyld) error:

Symbol not found: _compiler_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/xmlrpc
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:18:22.487 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 16892
Thread: Unknown

Link (dyld) error:

Symbol not found: _executor_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/xsl
Expected in: dynamic lookup

**********

Host Name: c20.apple.com
Date/Time: 2007-08-23 15:19:04.002 -0400
OS Version: 10.4 (Build 8A428)
Report Version: 3

Command: httpd
Path: /usr/local/apache-2.2.4/bin/httpd
Parent: launchd [1]

Version: ??? (???)

PID: 18997
Thread: Unknown

Link (dyld) error:

Symbol not found: _core_globals
Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
zts-20060613/zip
Expected in: dynamic lookup

Search Discussions

  • Johannes Schlüter at Aug 23, 2007 at 8:50 pm
    Hi,

    On Thu, 2007-08-23 at 16:23 -0400, BuildSmart wrote:
    [...]
    Symbol not found: _compiler_globals
    Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
    zts-20060613/bcompiler
    Expected in: dynamic lookup
    [...]

    This simply means that your PHP was built using a thread-safe
    environment but the extension was linked against a non-thread-safe PHP.
    The documentation and regular support channels (php.net/support.php)
    should be able to help you figuring out what's going wrong.

    johannes
  • BuildSmart at Aug 23, 2007 at 9:05 pm
    - -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    On Aug 23, 2007, at 16:50:02, Johannes Schlüter wrote:

    Hi,

    On Thu, 2007-08-23 at 16:23 -0400, BuildSmart wrote:
    [...]
    Symbol not found: _compiler_globals
    Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
    zts-20060613/bcompiler
    Expected in: dynamic lookup
    [...]

    This simply means that your PHP was built using a thread-safe
    environment but the extension was linked against a non-thread-safe
    PHP.
    The PHP and modules are built simultaneously so linking against the
    generated PHP should not be an issue.
    The documentation and regular support channels (php.net/support.php)
    should be able to help you figuring out what's going wrong.

    johannes
    I went that route and looked at http://php.net/manual/en/
    faq.build.php already but couldn't find anything related.

    Since I build in a thread-safe environemt and pthreads is actually
    embedded in libSystem ( -lpthread isn't required but can be used for
    legacy linking) and "#define PTHREADS 1" shouldn't it build and link
    against the php that is being built since therre is no PHP installed
    in the build environment?

    Maybe I should undef PTHREADS ??? (just guessing now).

    - -- Dale
  • BuildSmart at Aug 24, 2007 at 1:41 am

    On Aug 23, 2007, at 17:05:06, BuildSmart wrote:

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    - -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    On Aug 23, 2007, at 16:50:02, Johannes Schlüter wrote:

    Hi,

    On Thu, 2007-08-23 at 16:23 -0400, BuildSmart wrote:
    [...]
    Symbol not found: _compiler_globals
    Referenced from: /usr/local/php/lib/php/extensions/no-debug-non-
    zts-20060613/bcompiler
    Expected in: dynamic lookup
    [...]

    This simply means that your PHP was built using a thread-safe
    environment but the extension was linked against a non-thread-safe
    PHP.
    The PHP and modules are built simultaneously so linking against the
    generated PHP should not be an issue.
    The documentation and regular support channels (php.net/support.php)
    should be able to help you figuring out what's going wrong.

    johannes
    I went that route and looked at http://php.net/manual/en/
    faq.build.php already but couldn't find anything related.

    Since I build in a thread-safe environemt and pthreads is actually
    embedded in libSystem ( -lpthread isn't required but can be used
    for legacy linking) and "#define PTHREADS 1" shouldn't it build and
    link against the php that is being built since therre is no PHP
    installed in the build environment?

    Maybe I should undef PTHREADS ??? (just guessing now).

    - -- Dale
    I'm wondering if it's possible to have 3 builds of PHP 5.2.3 sapi
    modules (one for each version of apache) that share common
    configuration and loadable module.

    I ask because it makes no sense to have 3 full separate installations
    using different repositories to achieve the same configuration under
    the various versions of apache.

    Perhaps forcing pthreads off might be a solution because I've been
    unable to get pthreads working under apache 1.3.33 and other than
    manually setting it in the php_config.h file I haven't been able to
    enable it during configure.

    I tried with --with-tsrm-pthreads but it didn't seem to do anything
    differently and I diffed the two build directories and no build
    related files showed any differences (excluded config.log,
    config.nice etc...) and editing php_config.h and setting "#define
    PTHREADS 1" manually and adding "-DZTS" to the CFLAGS_CLEAN flags but
    it didn't seem to have any affect either (or none that I could tell)
    however setting it under apache 2 seemed to make a difference but
    under apache 2 it seemed to enable PTHREADS itself.

    It still leaves me with symbol issues and I haven't found any
    documentation on the php site that touches on the topic let alone
    reveals a solution.

    - -- BuildSmart

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedAug 23, '07 at 8:23p
activeAug 24, '07 at 1:41a
posts4
users2
websitephp.net

2 users in discussion

BuildSmart: 3 posts Johannes Schlüter: 1 post

People

Translate

site design / logo © 2022 Grokbase