Discussion:
[PHP-INSTALL] Deploying an extension
Roman Gelfand
2012-11-16 17:49:03 UTC
Permalink
I have manually built version 5.4.8 to /usr/local prefix on debian
squeeze. I need to deploy a custom extension mapi.so already
precompiled. It is part of deployment .deb package. This package
deploys to /usr prefix. From my php.ini, I specify extension="mapi.so
deployment path". I didn't try it personally but, others tell me that
it works if they deploy php from apt-get.

I get this error...

PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20090626+lfs/mapi.so' -
/usr/lib/php5/20090626+lfs/mapi.so: undefined symbol: compiler_globals
in Unknown on line 0

Thanks in advance
Roman Gelfand
2012-11-16 18:24:42 UTC
Permalink
I have manually built version 5.4.8 to /usr/local prefix on debian
squeeze. I need to deploy a custom extension mapi.so already
precompiled. It is part of deployment .deb package. This package
deploys to /usr prefix. From my php.ini, I specify extension="mapi.so
deployment path". I didn't try it personally but, others tell me that
it works if they deploy php from apt-get.

I get this error...

PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20090626+lfs/mapi.so' -
/usr/lib/php5/20090626+lfs/mapi.so: undefined symbol: compiler_globals
in Unknown on line 0

Thanks in advance
LIN PENG
2012-11-17 05:51:53 UTC
Permalink
Lingpeng
Post by Roman Gelfand
I have manually built version 5.4.8 to /usr/local prefix on debian
squeeze. I need to deploy a custom extension mapi.so already
precompiled. It is part of deployment .deb package. This package
deploys to /usr prefix. From my php.ini, I specify extension="mapi.so
deployment path". I didn't try it personally but, others tell me that
it works if they deploy php from apt-get.
I get this error...
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20090626+lfs/mapi.so' -
/usr/lib/php5/20090626+lfs/mapi.so: undefined symbol: compiler_globals
in Unknown on line 0
Thanks in advance
Keith Roberts
2012-11-17 08:55:31 UTC
Permalink
Subject: Re: [PHP-INSTALL] Deploying an extension
Lingpeng
Post by Roman Gelfand
I have manually built version 5.4.8 to /usr/local prefix on debian
squeeze. I need to deploy a custom extension mapi.so already
precompiled. It is part of deployment .deb package. This package
deploys to /usr prefix. From my php.ini, I specify extension="mapi.so
deployment path". I didn't try it personally but, others tell me that
it works if they deploy php from apt-get.
I get this error...
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20090626+lfs/mapi.so' -
/usr/lib/php5/20090626+lfs/mapi.so: undefined symbol: compiler_globals
in Unknown on line 0
Hi Lin.

By the look of the error messages above, I think you need to
get the source code for this mapi extension, and compile it
yourself when you are compiling PHP. That should make those
error messages disappear.

Or just use PHP from the debian repo with apt-get?

HTH

Keith

-----------------------------------------------------------
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-----------------------------------------------------------
Roman Gelfand
2012-11-19 13:50:31 UTC
Permalink
Thanks, that did the job.
Post by Keith Roberts
Subject: Re: [PHP-INSTALL] Deploying an extension
Lingpeng
Post by Roman Gelfand
I have manually built version 5.4.8 to /usr/local prefix on debian
squeeze. I need to deploy a custom extension mapi.so already
precompiled. It is part of deployment .deb package. This package
deploys to /usr prefix. From my php.ini, I specify extension="mapi.so
deployment path". I didn't try it personally but, others tell me that
it works if they deploy php from apt-get.
I get this error...
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20090626+lfs/mapi.so' -
/usr/lib/php5/20090626+lfs/mapi.so: undefined symbol: compiler_globals
in Unknown on line 0
Hi Lin.
By the look of the error messages above, I think you need to get the source
code for this mapi extension, and compile it yourself when you are compiling
PHP. That should make those error messages disappear.
Or just use PHP from the debian repo with apt-get?
HTH
Keith
-----------------------------------------------------------
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-----------------------------------------------------------
Loading...