#48989 [NEW]: --with-axps2 and --enable-embed incompatible
| From: | lcoffin at cio dot com | Date: | Mon, 20 Jul 2009 16:13:16 +0000 |
| Subject: | #48989 [NEW]: --with-axps2 and --enable-embed incompatible | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-139977@lists.php.net to get a copy of this message | ||
From: lcoffin at cio dot com
Operating system: Ubuntu 8.04
PHP version: 5.3.0
PHP Bug Type: Unknown/Other Function
Bug description: --with-axps2 and --enable-embed incompatible
Description:
------------
If --with-apxs2 is included with --enable-embed then the resulting library
can't be used with embedded applications. Trying to build an app
(plphp-1.3.5 and plphp-1.3.3) that embeds PHP results in a number of lines
like:
/usr/local/lib/libphp5.so: undefined reference to `apr_brigade_create'
/usr/local/lib/libphp5.so: undefined reference to `apr_bucket_eos_create'
/usr/local/lib/libphp5.so: undefined reference to `apr_brigade_cleanup'
/usr/local/lib/libphp5.so: undefined reference to `ap_auth_type'
If --with-apxs2 is left off of the PHP build, the embedding app compiles
just fine.
Not sure if this is a bug per-se, or a problem with not including enough
libraries (the apache libs?) when compiling the embedding app, or if there
needs to be a check in ./configure that flags the invalid combination and
doesn't allow ./configure to complete.
But now I seem to be stuck with the problem of needing to have two
"versions" of php -- compile once with --with-apxs2 and once with
--enable-embed. And I'm not sure which one I should do first, which one I
should do second, and what the implications are (i.e. if the CLI version of
php needs to be one vs the other. Or if Apache will stop working if the
--enable-embed one is the second compile.)
Reproduce code:
---------------
cd /usr/src/php-5.3.0
./configure --with-apxs2="..." --enable-embed (other options)
make && make install
cd /usr/src/plphp-1.3.5/trunk
./configure (configure fails... config.log shows above errors)
cd /usr/src/php-5.3.0
./configure --enable-embed (other options)
make && make install
cd /usr/src/plphp-1.3.5/trunk
./configure (succeeds)
Expected result:
----------------
Expected plphp/configure to succeed
Actual result:
--------------
plphp/configure fails with:
/usr/local/lib/libphp5.so: undefined reference to `apr_brigade_create'
/usr/local/lib/libphp5.so: undefined reference to `apr_bucket_eos_create'
/usr/local/lib/libphp5.so: undefined reference to `apr_brigade_cleanup'
/usr/local/lib/libphp5.so: undefined reference to `ap_auth_type'
... etc.
--
Edit bug report at http://bugs.php.net/?id=48989&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48989&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48989&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48989&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=48989&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=48989&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48989&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48989&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48989&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48989&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48989&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48989&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48989&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48989&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48989&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48989&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48989&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48989&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48989&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48989&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48989&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48989&r=mysqlcfg