Bug #51772 [Ana]: php-fpm do not support PowerPC processors

2010-06-09 Thread tony2001
Edit report at http://bugs.php.net/bug.php?id=51772&edit=1

 ID:   51772
 Updated by:   tony2...@php.net
 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:

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.


Previous Comments:

[2010-06-09 12:17:56] f...@php.net

trunk seems to be broken.



please try to apply the patch in PHP_5_3 branch instead.


[2010-06-09 11:29:52] vaskes at mail dot ru

I can provide ssh access to ppc server.


[2010-06-09 11:29:09] 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

[r...@headnode php-5.3.2]#


[2010-06-08 11:46:13] tony2...@php.net

Please try the patch attached.


[2010-06-08 11:45:48] tony2...@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




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=51772


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51772&edit=1


Bug #51772 [Ana]: php-fpm do not support PowerPC processors

2010-06-09 Thread fat
Edit report at http://bugs.php.net/bug.php?id=51772&edit=1

 ID:   51772
 Updated by:   f...@php.net
 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:

trunk seems to be broken.



please try to apply the patch in PHP_5_3 branch instead.


Previous Comments:

[2010-06-09 11:29:52] vaskes at mail dot ru

I can provide ssh access to ppc server.


[2010-06-09 11:29:09] 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

[r...@headnode php-5.3.2]#


[2010-06-08 11:46:13] tony2...@php.net

Please try the patch attached.


[2010-06-08 11:45:48] tony2...@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] f...@php.net

I don't have a powerpc to test.



I'll get some code from nginx. Do you have time to test it ?




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=51772


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51772&edit=1


Bug #51772 [Ana]: php-fpm do not support PowerPC processors

2010-06-08 Thread tony2001
Edit report at http://bugs.php.net/bug.php?id=51772&edit=1

 ID:   51772
 Updated by:   tony2...@php.net
 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:

Please try the patch attached.


Previous Comments:

[2010-06-08 11:45:48] tony2...@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] f...@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

[r...@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