Edit report at http://bugs.php.net/bug.php?id=52419&edit=1
ID: 52419 Comment by: f...@php.net 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: 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' Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2010-07-23 20:39:38] php-bugs at majkl578 dot cz No, I don't, I've only this one. Maybe it's really (somehow) related to my environment, because I'm also unable to compile PHP with pecl binary even if '--with-pear' and '--enable-cli' are set... ------------------------------------------------------------------------ [2010-07-23 19:38:21] ras...@php.net Do you have access to another Debian box somewhere? Or perhaps a clean VM? A lot of the PHP developers are on Debian, myself included, so it would really surprise me if there was a general compile issue there. And since I can't reproduce it with your exact configure line, there is something about your environment that is different. ------------------------------------------------------------------------ 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