From:
Operating system: AIX 6.1
PHP version: 5.3.5
Package: FPM related
Bug Type: Bug
Bug description:php-fpm SAPI fails to build on AIX 6.1 (on IBM POWER6 arch)
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 bug report at http://bugs.php.net/bug.php?id=54273&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=54273&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=54273&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=54273&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=54273&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=54273&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=54273&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=54273&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=54273&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=54273&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=54273&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=54273&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=54273&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=54273&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=54273&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54273&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=54273&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=54273&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=54273&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=54273&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=54273&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=54273&r=mysqlcfg