php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63748 error: 'struct fpm_scoreboard_s' has no member named 'lock'
Submitted: 2012-12-12 03:40 UTC Modified: 2013-02-18 00:36 UTC
From: xuefer at gmail dot com Assigned:
Status: No Feedback Package: FPM related
PHP Version: 5.4.9 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
32 - 25 = ?
Subscribe to this entry?

 
 [2012-12-12 03:40 UTC] 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'

Patches

bug63748.patch (last revision 2012-12-12 06:56 UTC by laruence@php.net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-12 06:46 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2012-12-12 06:46 UTC] laruence@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 06:54 UTC] laruence@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:55 UTC] laruence@php.net
anyway, I think using anonymous union in struct is not very good idea, a patch 
attached.
 [2012-12-12 06:56 UTC] laruence@php.net
The following patch has been added/updated:

Patch Name: bug63748.patch
Revision:   1355295419
URL:        https://bugs.php.net/patch-display.php?bug=63748&patch=bug63748.patch&revision=1355295419
 [2012-12-12 07:17 UTC] xuefer at gmail dot com
-fms-extensions make it works. regarding to your patch: there maybe a space 
missing in "}u" (expected to be "} u"
 [2013-02-18 00:36 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC