php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60539 php_apc.c:959: error: duplicate 'static'
Submitted: 2011-12-15 22:11 UTC Modified: 2012-03-18 13:43 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: jbnance at tresgeek dot net Assigned: pajoye (profile)
Status: Closed Package: APC (PECL)
PHP Version: 5.3.8 OS: RHEL5
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jbnance at tresgeek dot net
New email:
PHP Version: OS:

 

 [2011-12-15 22:11 UTC] jbnance at tresgeek dot net
Description:
------------
This seems to be a resurface of an old bug reported on PECL a few different times:

    58449 58602 58760 58968 59197 59411

When attempting to compile APC 3.1.9 against PHP 5.3.8 the following error is 
thrown and the build fails:

    APC-3.0.19/php_apc.c:959: error: duplicate 'static'

A more complete trace follows.

Test script:
---------------
phpize
./configure \
  --enable-apc \
  --enable-apc-mmap \
  --with-libdir=lib64 \
  --with-php-config=/path/to/php-config \
  --with-apxs=/usr/sbin/apxs \
  --with-pic

Same results on i386 architecture as well with libdir set to "lib".

Actual result:
--------------
 cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --
param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -I. -
I/builddir/build/BUILD/APC-3.0.19 -DPHP_ATOM_INC -I/builddir/build/BUILD/APC-
3.0.19/include -I/builddir/build/BUILD/APC-3.0.19/main -
I/builddir/build/BUILD/APC-3.0.19 -I/data02/svvs/opt/php-5.3.8/include/php -
I/data02/svvs/opt/php-5.3.8/include/php/main -I/data02/svvs/opt/php-
5.3.8/include/php/TSRM -I/data02/svvs/opt/php-5.3.8/include/php/Zend -
I/data02/svvs/opt/php-5.3.8/include/php/ext -I/data02/svvs/opt/php-
5.3.8/include/php/ext/date/lib -DHAVE_CONFIG_H -O2 -g -pipe -Wall -Wp,-
D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 
-mtune=generic -c /builddir/build/BUILD/APC-3.0.19/php_apc.c  -fPIC -DPIC -o 
.libs/php_apc.o
/builddir/build/BUILD/APC-3.0.19/php_apc.c: In function 'zif_apc_compile_file':
/builddir/build/BUILD/APC-3.0.19/php_apc.c:881: warning: unused variable 
'eg_class_table'
/builddir/build/BUILD/APC-3.0.19/php_apc.c:881: warning: unused variable 
'eg_function_table'
/builddir/build/BUILD/APC-3.0.19/php_apc.c: At top level:
/builddir/build/BUILD/APC-3.0.19/php_apc.c:959: error: duplicate 'static'
make: *** [php_apc.lo] Error 1

Patches

APC-3.0.19-duplicate-static.patch (last revision 2011-12-16 00:12 UTC by jbnance at tresgeek dot net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-16 00:10 UTC] jbnance at tresgeek dot net
Sorry for the confusion.  This is against APC 3.0.19, not 3.1.9.  The issue 
doesn't exist in 3.1.9.

Addition a patch for 3.0.19 from:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569117
 [2012-03-18 13:43 UTC] pajoye@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pajoye
 [2012-03-18 13:43 UTC] pajoye@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 03:01:33 2025 UTC