|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesAPC-3.0.19-duplicate-static.patch (last revision 2011-12-16 00:12 UTC by jbnance at tresgeek dot net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-12-16 00:10 UTC] jbnance at tresgeek dot net
[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
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 21:00:02 2025 UTC |
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