php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51772 php-fpm do not support PowerPC processors
Submitted: 2010-05-08 15:44 UTC Modified: 2013-02-18 00:34 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:0 of 0 (0.0%)
From: vaskes at mail dot ru Assigned: tony2001 (profile)
Status: No Feedback Package: FPM related
PHP Version: 5.3.2 OS: RedHat Ent. server 5.4-ppc64
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-05-08 15:44 UTC] vaskes at mail dot ru
Description:
------------
PHP-FPM sapi do not support PowerPC processor.
Build server IBM JS20 bladeserver
[root@headnode ~]# uname -a
Linux headnode.tst.local 2.6.18-194.el5 #1 SMP Tue Mar 16 22:03:12 EDT 2010 ppc64 ppc64 ppc64 GNU/Linux



Test script:
---------------
svn co http://svn.php.net/repository/php/php-src/trunk/sapi/fpm sapi/fpm
./buildconf --force

./configure --prefix=/opt/php --enable-fpm --build=powerpc-redhat-linux-gnu --host=powerpc-redhat-linux-gnu --target=ppc-redhat-linux-gnu
make
make install


Expected result:
----------------
Successfull compilation and php-fpm working

Actual result:
--------------
/bin/sh /home/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile cc  -I/home/php-5.3.2/sapi/fpm -Isapi/fpm/ -I/home/php-5.3.2/sapi/fpm/ -DPHP_ATOM_INC -I/home/php-5.3.2/include -I/home/php-5.3.2/main -I/home/php-5.3.2 -I/home/php-5.3.2/ext/date/lib -I/home/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/home/php-5.3.2/ext/sqlite3/libsqlite -I/home/php-5.3.2/TSRM -I/home/php-5.3.2/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /home/php-5.3.2/sapi/fpm/fpm/fastcgi.c -o sapi/fpm/fpm/fastcgi.lo
/bin/sh /home/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile cc  -I/home/php-5.3.2/sapi/fpm -Isapi/fpm/ -I/home/php-5.3.2/sapi/fpm/ -DPHP_ATOM_INC -I/home/php-5.3.2/include -I/home/php-5.3.2/main -I/home/php-5.3.2 -I/home/php-5.3.2/ext/date/lib -I/home/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/home/php-5.3.2/ext/sqlite3/libsqlite -I/home/php-5.3.2/TSRM -I/home/php-5.3.2/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /home/php-5.3.2/sapi/fpm/fpm/fpm.c -o sapi/fpm/fpm/fpm.lo
/bin/sh /home/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile cc  -I/home/php-5.3.2/sapi/fpm -Isapi/fpm/ -I/home/php-5.3.2/sapi/fpm/ -DPHP_ATOM_INC -I/home/php-5.3.2/include -I/home/php-5.3.2/main -I/home/php-5.3.2 -I/home/php-5.3.2/ext/date/lib -I/home/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/home/php-5.3.2/ext/sqlite3/libsqlite -I/home/php-5.3.2/TSRM -I/home/php-5.3.2/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /home/php-5.3.2/sapi/fpm/fpm/fpm_children.c -o sapi/fpm/fpm/fpm_children.lo
In file included from /home/php-5.3.2/sapi/fpm/fpm/fpm_shm_slots.h:8,
                 from /home/php-5.3.2/sapi/fpm/fpm/fpm_children.c:28:
/home/php-5.3.2/sapi/fpm/fpm/fpm_atomic.h:124:2: error: #error unsupported processor. please write a patch and send it to me
In file included from /home/php-5.3.2/sapi/fpm/fpm/fpm_shm_slots.h:8,
                 from /home/php-5.3.2/sapi/fpm/fpm/fpm_children.c:28:
/home/php-5.3.2/sapi/fpm/fpm/fpm_atomic.h:128: error: expected Б─≤)Б─≥ before Б─≤*Б─≥ token
In file included from /home/php-5.3.2/sapi/fpm/fpm/fpm_children.c:28:
/home/php-5.3.2/sapi/fpm/fpm/fpm_shm_slots.h:16: error: expected specifier-qualifier-list before Б─≤atomic_tБ─≥
make: *** [sapi/fpm/fpm/fpm_children.lo] Error 1
/bin/sh /home/php-5.3.2/libtool --silent --preserve-dup-deps --mode=compile cc  -I/home/php-5.3.2/sapi/fpm -Isapi/fpm/ -I/home/php-5.3.2/sapi/fpm/ -DPHP_ATOM_INC -I/home/php-5.3.2/include -I/home/php-5.3.2/main -I/home/php-5.3.2 -I/home/php-5.3.2/ext/date/lib -I/home/php-5.3.2/ext/ereg/regex -I/usr/include/libxml2 -I/home/php-5.3.2/ext/sqlite3/libsqlite -I/home/php-5.3.2/TSRM -I/home/php-5.3.2/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /home/php-5.3.2/sapi/fpm/fpm/fpm_children.c -o sapi/fpm/fpm/fpm_children.lo
In file included from /home/php-5.3.2/sapi/fpm/fpm/fpm_shm_slots.h:8,
                 from /home/php-5.3.2/sapi/fpm/fpm/fpm_children.c:28:
/home/php-5.3.2/sapi/fpm/fpm/fpm_atomic.h:124:2: error: #error unsupported processor. please write a patch and send it to me
In file included from /home/php-5.3.2/sapi/fpm/fpm/fpm_shm_slots.h:8,
                 from /home/php-5.3.2/sapi/fpm/fpm/fpm_children.c:28:
/home/php-5.3.2/sapi/fpm/fpm/fpm_atomic.h:128: error: expected Б─≤)Б─≥ before Б─≤*Б─≥ token
In file included from /home/php-5.3.2/sapi/fpm/fpm/fpm_children.c:28:
/home/php-5.3.2/sapi/fpm/fpm/fpm_shm_slots.h:16: error: expected specifier-qualifier-list before Б─≤atomic_tБ─≥
make: *** [sapi/fpm/fpm/fpm_children.lo] Error 1


Patches

ppc-support (last revision 2010-06-08 09:45 UTC) by tony2001@php.net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-12 09:21 UTC] mike@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: fat
 [2010-06-07 11:44 UTC] vaskes at mail dot ru
-Package: Compile Failure +Package: FPM related
 [2010-06-07 11:44 UTC] vaskes at mail dot ru
changed package to FPM related
 [2010-06-08 01:13 UTC] fat@php.net
-Status: Assigned +Status: Analyzed
 [2010-06-08 01:13 UTC] fat@php.net
I don't have a powerpc to test.

I'll get some code from nginx. Do you have time to test it ?
 [2010-06-08 11:45 UTC] tony2001@php.net
The following patch has been added/updated:

Patch Name: ppc-support
Revision:   1275990348
URL:        http://bugs.php.net/patch-display.php?bug=51772&patch=ppc-support&revision=1275990348
 [2010-06-08 11:46 UTC] tony2001@php.net
Please try the patch attached.
 [2010-06-09 11:29 UTC] vaskes at mail dot ru
After applying this patch i got following error:

sapi/fpm/fpm/fpm_main.o: In function `main':
/home/php-5.3.2/sapi/fpm/fpm/fpm_main.c:1698: undefined reference to `php_output_end_all'
/home/php-5.3.2/sapi/fpm/fpm/fpm_main.c:1699: undefined reference to `php_output_deactivate'
/home/php-5.3.2/sapi/fpm/fpm/fpm_main.c:1639: undefined reference to `php_output_end_all'
/home/php-5.3.2/sapi/fpm/fpm/fpm_main.c:1640: undefined reference to `php_output_deactivate'
sapi/fpm/fpm/fpm_main.o: In function `zif_fastcgi_finish_request':
/home/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
[root@headnode php-5.3.2]#
 [2010-06-09 11:29 UTC] vaskes at mail dot ru
I can provide ssh access to ppc server.
 [2010-06-09 12:17 UTC] fat@php.net
trunk seems to be broken.

please try to apply the patch in PHP_5_3 branch instead.
 [2010-06-09 15:43 UTC] tony2001@php.net
sapi/fpm/fpm/fpm_main.o: In function `main':
/home/php-5.3.2/sapi/fpm/fpm/fpm_main.c:1698: undefined reference to `php_output_end_all'

No, trunk is not broken =)
You're trying to compile FPM from trunk with 5.3.2 while you should be using FPM from PHP_5_3 branch instead.

But the easiest way to test it would be to try a snapshot from http://snaps.php.net
This way you wouldn't need to manually add FPM to your sources, since FPM is already available in 5.3.3 snapshots.
 [2010-06-09 15:43 UTC] tony2001@php.net
-Status: Analyzed +Status: Feedback
 [2010-06-17 22:28 UTC] vaskes at mail dot ru
Using http://snaps.php.net/php5.3-201006161230.tar.gz this patch applied successfully and php compiled successfully too. I did some stress testing on this php-fpm and discover that php-fpm working unstable. I will perform some additional test to discover the issue more thoroughly and post results here.
 [2010-06-23 18:59 UTC] tony2001@php.net
Ok, let me know if you need any help.
More info on your problems would be appreciated, of course.
 [2010-08-09 03:46 UTC] felipe@php.net
-Status: Feedback +Status: Assigned
 [2010-08-21 08:20 UTC] fat@php.net
-Status: Assigned +Status: Feedback -Assigned To: fat +Assigned To: tony2001
 [2010-09-27 14:16 UTC] tony2001@php.net
Any news?
 [2010-11-26 00:48 UTC] chris dot tandiono at gmail dot com
I can confirm that it compiles properly with the attached patch on 32-bit ppc:

[chris@host ~]$ uname -a
Darwin host.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh

No idea whether it works completely properly; the machine is very low load.
 [2010-11-26 09:27 UTC] tony2001@php.net
Well, I'm more concerned about the stability of the patch, as the original author has already reported that it compiles fine, but is unstable, without going into any details.
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC