ID:               48989
 Updated by:       j...@php.net
 Reported By:      lcoffin at cio dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Ubuntu 8.04
 PHP Version:      5.3.0
 New Comment:

You can't build multiple SAPIs. You're building an Apache SAPI here.
--enable-embed is simply ignored. (alphabetical order, A comes before E
:)


Previous Comments:
------------------------------------------------------------------------

[2009-07-20 16:13:16] lcoffin at cio dot com

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 this bug report at http://bugs.php.net/?id=48989&edit=1

Reply via email to