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

 ID:                 63748
 Updated by:         larue...@php.net
 Reported by:        xuefer at gmail dot com
 Summary:            error: 'struct fpm_scoreboard_s' has no member named
                     'lock'
 Status:             Feedback
 Type:               Bug
 Package:            FPM related
 Operating System:   linux
 PHP Version:        5.4.9
 Block user comment: N
 Private report:     N

 New Comment:

anyway, I think using anonymous union in struct is not very good idea, a patch 
attached.


Previous Comments:
------------------------------------------------------------------------
[2012-12-12 06:54:50] larue...@php.net

The following patch has been added/updated:

Patch Name: bug63748.patch
Revision:   1355295290
URL:        
https://bugs.php.net/patch-display.php?bug=63748&patch=bug63748.patch&revision=1355295290

------------------------------------------------------------------------
[2012-12-12 06:46:55] larue...@php.net

according to : http://gcc.gnu.org/onlinedocs/gcc/Unnamed-Fields.html#Unnamed-
Fields

I think you need "-fms-extensions"

thanks

------------------------------------------------------------------------
[2012-12-12 03:40:21] xuefer at gmail dot com

Description:
------------
CFLAGS='-pipe -Wall -std=c99 -D_GNU_SOURCE -pedantic'

"CFLAGS=-pipe -Wall -std=c99 -D_GNU_SOURCE -pedantic -O0 -g" "CXXFLAGS=-pipe -
Wall 
-std=c99 -D_GNU_SOURCE -pedantic -O0 -g" ../php5/configure --disable-pear --
enable-debug --enable-maintainer-zts --enable-experimental-zts --enable-fpm --
enable-cgi --enable-fastcgi --enable-fastcgi --enable-force-cgi-redirect --with-
pcre-regex --with-zlib --with-jpeg-dir=/usr --with-png-dir=/usr --with-gd --
with-
openssl --with-posix --with-iconv --enable-sockets --enable-inline-optimization 
--
disable-mbregex --enable-bcmath --enable-pcntl --enable-memory-limit --enable-
ftp 
--enable-event --with-mysql=/usr --enable-mmap --enable-mbstring 
--with-readline 
-
-with-xmlrpc --enable-soap --with-sqlite --enable-sqlite-utf8 --with-
mysqli=/usr/bin/mysql_config --with-pdo-mysql=/usr --prefix=/home/moo/test/php5-
debug-zts --cache-file=config.cache

make

Actual result:
--------------
 /home/moo/src/php/php5-debug-zts/meta_ccld -I/home/moo/src/php/php5/sapi/fpm -
Isapi/fpm/ -I/home/moo/src/php/php5/sapi/fpm/ -DPHP_ATOM_INC -
I/home/moo/src/php/php5-debug-zts/include -I/home/moo/src/php/php5-debug-
zts/main -I/home/moo/src/php/php5 -I/home/moo/src/php/php5-debug-
zts/ext/date/lib -I/home/moo/src/php/php5/ext/date/lib -
I/home/moo/src/php/php5/ext/ereg/regex -I/usr/include/libxml2 -
I/home/moo/src/php/php5/ext/mbstring/libmbfl -I/home/moo/src/php/php5-debug-
zts/ext/mbstring/libmbfl -I/home/moo/src/php/php5/ext/mbstring/libmbfl/mbfl -
I/home/moo/src/php/php5-debug-zts/ext/mbstring/libmbfl/mbfl 
-I/usr/include/mysql 
-I/home/moo/src/php/php5/ext/sqlite3/libsqlite -I/home/moo/src/php/php5-debug-
zts/TSRM -I/home/moo/src/php/php5-debug-zts/Zend -I/home/moo/src/php/php5/main -
I/home/moo/src/php/php5/Zend -I/home/moo/src/php/php5/TSRM -
I/home/moo/src/php/php5-debug-zts/ -D_REENTRANT -I/usr/include -pipe -Wall -
std=c99 -D_GNU_SOURCE -pedantic -g -fvisibility=hidden -pthread -O0 -Wall -DZTS 
-c /home/moo/src/php/php5/sapi/fpm/fpm/fpm_scoreboard.c -o 
sapi/fpm/fpm/fpm_scoreboard.o
In file included from /home/moo/src/php/php5/sapi/fpm/fpm/fpm_scoreboard.c:11:0:
/home/moo/src/php/php5/sapi/fpm/fpm/fpm_scoreboard.h:24:3: warning: declaration 
does not declare anything
/home/moo/src/php/php5/sapi/fpm/fpm/fpm_scoreboard.h:53:3: warning: declaration 
does not declare anything
/home/moo/src/php/php5/sapi/fpm/fpm/fpm_scoreboard.c: In function 
'fpm_scoreboard_update':
/home/moo/src/php/php5/sapi/fpm/fpm/fpm_scoreboard.c:87:26: error: 'struct 
fpm_scoreboard_s' has no member named 'lock'
/home/moo/src/php/php5/sapi/fpm/fpm/fpm_scoreboard.c:146:12: error: 'struct 
fpm_scoreboard_s' has no member named 'lock'
/home/moo/src/php/php5/sapi/fpm/fpm/fpm_scoreboard.c: In function 
'fpm_scoreboard_acquire':
/home/moo/src/php/php5/sapi/fpm/fpm/fpm_scoreboard.c:187:22: error: 'struct 
fpm_scoreboard_s' has no member named 'lock'
/home/moo/src/php/php5/sapi/fpm/fpm/fpm_scoreboard.c: In function 
'fpm_scoreboard_release':
/home/moo/src/php/php5/sapi/fpm/fpm/fpm_scoreboard.c:199:12: error: 'struct 
fpm_scoreboard_s' has no member named 'lock'
/home/moo/src/php/php5/sapi/fpm/fpm/fpm_scoreboard.c: In function 
'fpm_scoreboard_proc_acquire':
/home/moo/src/php/php5/sapi/fpm/fpm/fpm_scoreboard.c:211:25: error: 'struct 
fpm_scoreboard_proc_s' has no member named 'lock'
/home/moo/src/php/php5/sapi/fpm/fpm/fpm_scoreboard.c: In function 
'fpm_scoreboard_proc_release':
/home/moo/src/php/php5/sapi/fpm/fpm/fpm_scoreboard.c:225:6: error: 'struct 
fpm_scoreboard_proc_s' has no member named 'lock'


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



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

Reply via email to