undefined symbol: output_globals

  • Dzmitry Haiduchonak

    /usr/local/lib/php/extensions/no-debug-non-zts-20020429/mmcache.so: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/mmcache.so: undefined symbol: output_globals

    whats wrong?

    apache 2.0.48
    php 4.3.4 with ts

    • John_K

      John_K - 2004-10-03

      For those of you having trouble getting turck-mmcache to work properly with Apache 2.0 with worker mpm and thread safe php:

      This will fix the undefined symbol: output_globals error.

      grab turck-mmcache from CVS
      untar it
      then do this exactly (making sure the paths are right for you):
      ./configure --enable-mmcache=shared --with-php-config=/usr/bin/php-config.mod_php
      if you don't have a php-config.mod_pjp just use php-config
      edit Makefile and add -DZTS -DPTHREADS to the DEFS = line
      make install
      then check your mod_php's php.ini to ensure that mmcache is loaded using zend_extension_ts=
      restart apache and enjoy

      why does this work? when php is thread safe, ouput_globals_id is defined instead of outpug_globals so we have to make sure that the php includes that turck-mmcache uses are in threadsafe mode. To do this we must ensure that ZTS and PTHREADS are defined.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks