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

 ID:                 54273
 User updated by:    a dot sykes at ucl dot ac dot uk
 Reported by:        a dot sykes at ucl dot ac dot uk
 Summary:            php-fpm SAPI fails to build on AIX 6.1 (on IBM
                     POWER6 arch)
 Status:             Open
 Type:               Bug
 Package:            FPM related
 Operating System:   AIX 6.1
 PHP Version:        5.3.5
 Block user comment: N
 Private report:     N

 New Comment:

Should've mentioned that I've looked at the patch in this bug: 

http://bugs.php.net/bug.php?id=51772



But it doesn't seem relevant against PHP 5.3.5. I'd be happy to test
(and 

stability test) any patch.


Previous Comments:
------------------------------------------------------------------------
[2011-03-16 14:12:44] a dot sykes at ucl dot ac dot uk

Description:
------------
Attempting to build php with the php-fpm SAPI fails on AIX 6.1. It's
clearly 

because the processor type isn't defined in
php-5.3.5/sapi/fpm/fpm/fpm_atomic.h.



I have no idea what the appropriate typedefs for this architecture
should be.



Additionally, I'm compiling with the IBM xlc compiler.



I can successfully compile every other part of PHP with my toolchain.



Output of uname -pM:



powerpc IBM,8203-E4A



(This is arch and machine model number - an IBM Power 520 Express)



PHP's configure line:



./configure \

    --cache-file=../config.cache \

    --prefix=/opt/freeware \

    --with-config-file-path=/opt/freeware/etc \

    --enable-shared --enable-static \

    --without-pear \

    --with-gd=/opt/freeware \

    --with-openssl=/opt/freeware \

    --with-zlib \

    --with-bz2 \

    --with-curl=/opt/freeware \

    --with-t1lib=/opt/freeware \

    --with-freetype-dir=/opt/freeware \

    --with-jpeg-dir=/opt/freeware \

    --with-png-dir=/opt/freeware \

    --with-xpm-dir=/opt/freeware \

    --with-zlib-dir=/opt/freeware \

    --enable-soap \

    --enable-bcmath \

    --enable-ftp \

    --with-iconv \

    --enable-dom \

    --enable-json \

    --with-pcre-regex=/opt/freeware \

    --enable-fpm





End of the compile output:



/opt/freeware/bin/bash
/opt/freeware/src/packages/BUILD/php-5.3.5/build-php-

fpm/libtool --silent --preserve-dup-deps --mode=compile xlc -

I/opt/freeware/src/packages/BUILD/php-5.3.5/sapi/fpm -Isapi/fpm/ -

I/opt/freeware/src/packages/BUILD/php-5.3.5/sapi/fpm/ -DPHP_ATOM_INC -

I/opt/freeware/src/packages/BUILD/php-5.3.5/build-php-fpm/include -

I/opt/freeware/src/packages/BUILD/php-5.3.5/build-php-fpm/main -

I/opt/freeware/src/packages/BUILD/php-5.3.5 -

I/opt/freeware/src/packages/BUILD/php-5.3.5/build-php-fpm/ext/date/lib
-

I/opt/freeware/src/packages/BUILD/php-5.3.5/ext/date/lib -

I/opt/freeware/src/packages/BUILD/php-5.3.5/ext/ereg/regex -

I/opt/freeware/include/libxml2 -I/opt/freeware/include -

I/opt/freeware/include/freetype2
-I/opt/freeware/src/packages/BUILD/php-

5.3.5/ext/sqlite3/libsqlite
-I/opt/freeware/src/packages/BUILD/php-5.3.5/build-

php-fpm/TSRM
-I/opt/freeware/src/packages/BUILD/php-5.3.5/build-php-fpm/Zend -

I/opt/freeware/src/packages/BUILD/php-5.3.5/main -

I/opt/freeware/src/packages/BUILD/php-5.3.5/Zend -

I/opt/freeware/src/packages/BUILD/php-5.3.5/TSRM -

I/opt/freeware/src/packages/BUILD/php-5.3.5/build-php-fpm/   
-I/usr/include -

qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52
-

D_AIX53 -D_AIX61 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include
 -c 

/opt/freeware/src/packages/BUILD/php-5.3.5/sapi/fpm/fpm/fpm_children.c
-o 

sapi/fpm/fpm/fpm_children.lo

"/opt/freeware/src/packages/BUILD/php-5.3.5/Zend/zend.h", line 179.10:
1506-236 

(W) Macro name __restrict__ has been redefined.

"/opt/freeware/src/packages/BUILD/php-5.3.5/Zend/zend.h", line 179.10:
1506-358 

(I) "__restrict__" is defined on line 186 of /usr/include/standards.h.

"/opt/freeware/src/packages/BUILD/php-5.3.5/sapi/fpm/fpm/fpm_atomic.h",
line 

142.2: 1506-205 (S) #error Unsupported processor. Please open a bug
report 

(bugs.php.net).

"/opt/freeware/src/packages/BUILD/php-5.3.5/sapi/fpm/fpm/fpm_atomic.h",
line 

146.41: 1506-277 (S) Syntax error: possible missing ')' or ','?

"/opt/freeware/src/packages/BUILD/php-5.3.5/sapi/fpm/fpm/fpm_atomic.h",
line 

149.39: 1506-045 (S) Undeclared identifier lock.

"/opt/freeware/src/packages/BUILD/php-5.3.5/sapi/fpm/fpm/fpm_shm_slots.h",
line 

16.17: 1506-046 (S) Syntax error.

gmake: *** [sapi/fpm/fpm/fpm_children.lo] Error 1

Expected result:
----------------
php compiles with the php-fpm.



------------------------------------------------------------------------



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

Reply via email to