I'm trying to compile php with php-fpm on a server running CentOS 5.5,
but the build is failing with the following errors:
cd php-5.3.2;
svn co http://svn.php.net/repository/php/php-src/trunk/sapi/fpm sapi/fpm;
./buildconf --force;
./configure --enable-fpm;
make;
...
sapi/fpm/fpm/fpm_main.o: In function `main':
/usr/local/src/php-5.3.2/sapi/fpm/fpm/fpm_main.c:1666: undefined
reference to `php_output_end_all'
/usr/local/src/php-5.3.2/sapi/fpm/fpm/fpm_main.c:1667: undefined
reference to `php_output_deactivate'
sapi/fpm/fpm/fpm_main.o: In function `zif_fastcgi_finish_request':
/usr/local/src/php-5.3.2/sapi/fpm/fpm/fpm_main.c:1496: undefined
reference to `php_output_end_all'
collect2: ld returned 1 exit status
make: *** [sapi/fpm/php-fpm] Error 1
# uname -a
Linux www3 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:08:30 EDT 2010
x86_64 x86_64 x86_64 GNU/Linux
I haven't had any issues before when building php with fpm before on
similar servers.
Any help or advice would be much appreciated.
Thanks!
Antonio
--
Antonio Lupher
anto...@gmail.com
http://www.lupher.com
Change this to
svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3/sapi/fpm sapi/fpm;
There was a major update to output buffering API in trunk.
--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP
Great, it's compiling now. Thanks!
Yes you should.
FPM is in trunk for dev and int the 5.3 branch. We are comitting only
fixes ton 5.3. Only new and experimentals features are going to trunk.
In the page on php-fpm.org there should be 3 download items:
- stable --> PHP_5_3
- dev --> trunk
- old --> patches
did you set chroot in your FPM conf ?
if so, all the PHP path are relative to the chroot
did you try your PHP under apache + Mod_php to ensure it's a FPM
problem and not a problem on your code ?
suhosin-patch has been made form PHP 5.3.2 and FPM has been merged
into PHP_5_3 after the 5.3.2 release. It's maybe not compliant.
++ Jerome
2010/6/5 Jérôme Mahuet <jerome...@gmail.com>:
disable cache ext first. eaccelerator and apc.
can you try the following scenarios please ?
1- activate eaccelerator and apc --> not working
2- activate eaccelerator and NOT apc
3- activate apc and NOT eaccelerator
4- allow eaccelerator.cache_dir in your open_basedir and re-try
scenarios 1, 2, 3
thx
++ Jerome
OK so this is a problem with eaccelerator. Can you open a bug on
http://bugs.php.net about this bug. So I can look at it later ?
thx you very much for helping us making FPM better
++ jerome
eaccelerator is not PHP.net extension.
> - stable --> PHP_5_3
which one is it, exactly?
http://svn.php.net/repository/php/php-src/branches/PHP_5_3/
http://svn.php.net/repository/php/php-src/branches/PHP_5_3_FPM/
Also, should there be instructions on snaps.php.net, or is that the
same thing as grabbing directly from trunk (just on a nightly basis?)
This is what I have so far:
http://php-fpm.org/download/
> http://svn.php.net/repository/php/php-src/branches/PHP_5_3_FPM/
PHP_5_3_FPM is not used anymore. Please forget it.
Since snaps should be a rollup of trunk, which can contain unstable
code. There still needs to be instructions for the stable 5.3 version.
> PHP_5_3_FPM is not used anymore. Please forget it.
Done. I went to look on the web to see which branches were
available... Perhaps that branch should be nixed :)