php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63059 Failed to build PHP-FPM
Submitted: 2012-09-11 06:00 UTC Modified: 2012-10-14 01:43 UTC
From: nam dot nh at nd24 dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.4.6 OS: OpenIndiana 151a6
Private report: No CVE-ID: None
 [2012-09-11 06:00 UTC] nam dot nh at nd24 dot net
Description:
------------
I'm building PHP 5.4.6 on a fresh machine that run OpenIndiana 151a6 OS, gcc 
version 4.6.3, error happens when do "make"

Test script:
---------------
./configure --prefix=/usr/php --with-gd --with-mcrypt --with-zlib --enable-mbstring --with-mysql=mysqlnd --with-mysqli=mysqlnd  --enable-inline-optimization --with-bz2 --enable-sockets --enable-mbregex --with-mhash --enable-zip --with-png-dir=/usr/include --with-jpeg-dir=/usr/include --with-freetype-dir=/usr/include --with-xpm-dir=/usr/include --enable-gd-native-ttf --with-pear=/usr/php/lib/php --disable-ipv6 --enable-fpm


Expected result:
----------------
Successfully

Actual result:
--------------
/bin/sh /usr/src/php-5.4.6/libtool --silent --preserve-dup-deps --mode=compile 
gcc -I/usr/src/php-5.4.6/sapi/fpm -Isapi/fpm/ -I/usr/src/php-5.4.6/sapi/fpm/ -
DPHP_ATOM_INC -I/usr/src/php-5.4.6/include -I/usr/src/php-5.4.6/main -
I/usr/src/php-5.4.6 -I/usr/src/php-5.4.6/ext/date/lib -I/usr/src/php-
5.4.6/ext/ereg/regex -I/usr/include/libxml2 -I/usr/X11R6/include -
I/usr/include/freetype2 -I/usr/src/php-5.4.6/ext/mbstring/oniguruma -
I/usr/src/php-5.4.6/ext/mbstring/libmbfl -I/usr/src/php-
5.4.6/ext/mbstring/libmbfl/mbfl -I/usr/src/php-5.4.6/ext/sqlite3/libsqlite -
I/usr/src/php-5.4.6/TSRM -I/usr/src/php-5.4.6/Zend  -D_POSIX_PTHREAD_SEMANTICS  
-I/usr/include -g -O2 -fvisibility=hidden  -c /usr/src/php-
5.4.6/sapi/fpm/fpm/fastcgi.c -o sapi/fpm/fpm/fastcgi.lo
/bin/sh /usr/src/php-5.4.6/libtool --silent --preserve-dup-deps --mode=compile 
gcc -I/usr/src/php-5.4.6/sapi/fpm -Isapi/fpm/ -I/usr/src/php-5.4.6/sapi/fpm/ -
DPHP_ATOM_INC -I/usr/src/php-5.4.6/include -I/usr/src/php-5.4.6/main -
I/usr/src/php-5.4.6 -I/usr/src/php-5.4.6/ext/date/lib -I/usr/src/php-
5.4.6/ext/ereg/regex -I/usr/include/libxml2 -I/usr/X11R6/include -
I/usr/include/freetype2 -I/usr/src/php-5.4.6/ext/mbstring/oniguruma -
I/usr/src/php-5.4.6/ext/mbstring/libmbfl -I/usr/src/php-
5.4.6/ext/mbstring/libmbfl/mbfl -I/usr/src/php-5.4.6/ext/sqlite3/libsqlite -
I/usr/src/php-5.4.6/TSRM -I/usr/src/php-5.4.6/Zend  -D_POSIX_PTHREAD_SEMANTICS  
-I/usr/include -g -O2 -fvisibility=hidden  -c /usr/src/php-
5.4.6/sapi/fpm/fpm/fpm.c -o sapi/fpm/fpm/fpm.lo
In file included from /usr/src/php-5.4.6/sapi/fpm/fpm/fpm.c:16:0:
/usr/src/php-5.4.6/sapi/fpm/fpm/fpm_sockets.h:28:54: error: expected ';', ',' or 
')' before numeric constant
make: *** [sapi/fpm/fpm/fpm.lo] Error 1

Patches

fpm_sockets-sock-patch (last revision 2012-10-13 17:40 UTC by mike at maytech dot net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-10-13 15:57 UTC] nam dot nh at nd24 dot net
Found similar to bug #62654, but still get error when "make"
 [2012-10-13 17:47 UTC] mike at maytech dot net
See patch attached; should fix the compilation problem.
 [2012-10-14 01:41 UTC] nam dot nh at nd24 dot net
The problem fixed. Thanks.
 [2012-10-14 01:43 UTC] nam dot nh at nd24 dot net
Compile successful, then the case is closed
 [2012-10-14 01:43 UTC] nam dot nh at nd24 dot net
-Status: Open +Status: Closed
 [2012-12-08 03:21 UTC] rainer dot jung at kippdata dot de
Problem still unfixed in PHP 5.4.9 on Solaris 10. Same error as seen by the OP.

The patch proposed here wasn't applied, so the problem still exists. Please apply the patch. It is a followup to Bug #62654. There the sapi/fpm/fpm/fpm_sockets.c file was fixed, but the sapi/fpm/fpm/fpm_sockets.h was forgotten.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 21:01:27 2024 UTC