Edit report at http://bugs.php.net/bug.php?id=51772&edit=1
ID: 51772
Comment by: vaskes at mail dot ru
Reported by: vaskes at mail dot ru
Summary: php-fpm do not support PowerPC processors
Status: Analyzed
Type: Bug
Package: FPM related
Operating System: RedHat Ent. server 5.4-ppc64
PHP Version: 5.3.2
Assigned To: fat
New Comment:
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]#
Previous Comments:
------------------------------------------------------------------------
[2010-06-08 11:46:13] tony2001@php.net
Please try the patch attached.
------------------------------------------------------------------------
[2010-06-08 11:45:48] 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 01:13:06] 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-07 11:44:26] vaskes at mail dot ru
changed package to FPM related
------------------------------------------------------------------------
[2010-05-08 15:44:04] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51772&edit=1