Edit report at http://bugs.php.net/bug.php?id=52419&edit=1
ID: 52419 Comment by: james dot butler at sandfox dot co dot uk Reported by: php-bugs at majkl578 dot cz Summary: Unable to compile PHP with both Apache2 and FPM support Status: Open Type: Bug Package: Compile Failure Operating System: Linux Debian PHP Version: 5.3.3 Block user comment: N New Comment: I can confirm this is an issue on Centos 5.5 64bit get exactly the same error when trying to compile with apxs AND fpm both enabled. Removing either one from the config line results in successful compilation. Previous Comments: ------------------------------------------------------------------------ [2010-09-01 17:42:25] f...@php.net the problem is the same if compiling SAPI apache2handler with litespeed. The same with fpm and litespeed. Is it possible to compile PHP with multiple SAPI ? ------------------------------------------------------------------------ [2010-09-01 14:29:49] f...@php.net The problem is: in the general Makefile there is: BUILD_FPM = $(LIBTOOL) --mode=link $(CC) -export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(SAPI_EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_FPM_PATH) and PHP_SAPI_OBJS = sapi/apache2handler/mod_php5.lo sapi/apache2handler/sapi_apache2.lo sapi/apache2handler/apache_config.lo sapi/apache2handler/php_functions.lo sapi/fpm/fpm/fastcgi.lo sapi/fpm/fpm/fpm.lo sapi/fpm/fpm/fpm_children.lo sapi/fpm/fpm/fpm_cleanup.lo sapi/fpm/fpm/fpm_clock.lo sapi/fpm/fpm/fpm_conf.lo sapi/fpm/fpm/fpm_env.lo sapi/fpm/fpm/fpm_events.lo sapi/fpm/fpm/fpm_main.lo sapi/fpm/fpm/fpm_php.lo sapi/fpm/fpm/fpm_php_trace.lo sapi/fpm/fpm/fpm_process_ctl.lo sapi/fpm/fpm/fpm_request.lo sapi/fpm/fpm/fpm_shm.lo sapi/fpm/fpm/fpm_shm_slots.lo sapi/fpm/fpm/fpm_signals.lo sapi/fpm/fpm/fpm_sockets.lo sapi/fpm/fpm/fpm_status.lo sapi/fpm/fpm/fpm_stdio.lo sapi/fpm/fpm/fpm_unix.lo sapi/fpm/fpm/fpm_worker_pool.lo sapi/fpm/fpm/zlog.lo sapi/fpm/fpm/fpm_trace.lo sapi/fpm/fpm/fpm_trace_ptrace.lo main/internal_functions.lo FPM is linked with apache but the apr lib is not known at compile time. There is the same problem when compiling libphp5.so which is linked agains FPM object files and libevent is not known at compile time: # make libs/libphp5.bundle sapi/fpm/fpm/fpm_children.o: In function `fpm_children_make': /LIBRE/dev/php-src/branches/PHP_5_3/sapi/fpm/fpm/fpm_children.c:381: undefined reference to `event_reinit' ------------------------------------------------------------------------ [2010-09-01 12:05:43] f...@php.net I have a similar issue with the current PHP_5_3. When the php-fpm is built, it's linked against : sapi/apache2handler/mod_php5.lo sapi/apache2handler/sapi_apache2.lo sapi/apache2handler/apache_config.lo sapi/apache2handler/php_functions.lo I think it's somehow related to http://bugs.php.net/52498. ------------------------------------------------------------------------ [2010-08-04 10:35:24] ali at aliziad dot clom fyi: I am also getting the same error with php 5.3.3 (/w apxs and fpm) on CentOS -ali ------------------------------------------------------------------------ [2010-07-23 20:44:23] ras...@php.net You could try it in a clean Debian image using the free vmware player and the images from http://www.thoughtpolice.co.uk/vmware/ Just so you have a clean environment to compare yours against. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=52419 -- Edit this bug report at http://bugs.php.net/bug.php?id=52419&edit=1