php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58449 APC will not compile with PHP 5.3alpha2
Submitted: 2008-12-09 09:55 UTC Modified: 2008-12-09 18:10 UTC
From: stanlemon at mac dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5_3 CVS-2008-12-09 (dev) OS: Mac OS X 10.5.5
Private report: No CVE-ID: None
 [2008-12-09 09:55 UTC] stanlemon at mac dot com
Description:
------------
When trying to compile APC for PHP 5.3.0alpha3 on Mac OS X 
10.5.5 with Apache 2.2.10prefork compilation fails.



Reproduce code:
---------------
Lil-Lemon:APC-3.0.19 stan$ /usr/local/php/bin/phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20071006
Zend Extension Api No:   220070929
Lil-Lemon:APC-3.0.19 stan$ ./configure --prefix=/usr/local/php && make
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-apple-darwin9.5.0
checking host system type... i686-apple-darwin9.5.0
checking target system type... i686-apple-darwin9.5.0
checking for PHP prefix... /usr/local/php-5.3.0alpha3
checking for PHP includes... -I/usr/local/php-5.3.0alpha3/include/php
-I/usr/local/php-5.3.0alpha3/include/php/main
-I/usr/local/php-5.3.0alpha3/include/php/TSRM
-I/usr/local/php-5.3.0alpha3/include/php/Zend
-I/usr/local/php-5.3.0alpha3/include/php/ext
-I/usr/local/php-5.3.0alpha3/include/php/ext/date/lib
checking for PHP extension directory...
/usr/local/php-5.3.0alpha3/lib/php/extensions/no-debug-non-zts-20071006
checking for PHP installed headers prefix...
/usr/local/php-5.3.0alpha3/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to
regenerate PHP parsers.
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether apc needs to get compiler flags from apxs... no
checking whether to enable APC support... yes, shared
checking Checking whether we should enable cache request file info...
no
checking Checking whether we should use mmap... yes
checking Checking whether we should use semaphore locking instead of
fcntl... no
checking Checking whether we should use futex locking... no
checking Checking whether we should use pthread mutex locking... yes
Unable to set PTHREAD_PROCESS_SHARED (pthread_mutexattr_setpshared),
your system may not support shared mutex's.
configure: WARNING: It doesn't appear that pthread mutex's are supported
on your system
checking Checking whether we should use spin locks... no
checking for sigaction... yes
checking for union semun... yes
checking whether we should enable valgrind support... no
checking for shm_open in -lrt... no
checking for ld used by cc...
/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is
GNU ld... no
checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to
reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -p output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc static flag  works... yes
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fno-common
checking if cc PIC flag -fno-common works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker
(/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared
libraries... yes
checking dynamic linker characteristics... darwin9.5.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
/bin/sh /Users/stan/Downloads/APC-3.0.19/libtool --mode=compile cc  -I.
-I/Users/stan/Downloads/APC-3.0.19 -DPHP_ATOM_INC
-I/Users/stan/Downloads/APC-3.0.19/include
-I/Users/stan/Downloads/APC-3.0.19/main
-I/Users/stan/Downloads/APC-3.0.19
-I/usr/local/php-5.3.0alpha3/include/php
-I/usr/local/php-5.3.0alpha3/include/php/main
-I/usr/local/php-5.3.0alpha3/include/php/TSRM
-I/usr/local/php-5.3.0alpha3/include/php/Zend
-I/usr/local/php-5.3.0alpha3/include/php/ext
-I/usr/local/php-5.3.0alpha3/include/php/ext/date/lib 
-I/usr/local/php-5.3.0alpha3/include/php -DHAVE_CONFIG_H 
-D__FreeBSD__=10 -isysroot /Developer/SDKs/MacOSX10.5.sdk   -c
/Users/stan/Downloads/APC-3.0.19/apc.c -o apc.lo 
mkdir .libs
 cc -I. -I/Users/stan/Downloads/APC-3.0.19 -DPHP_ATOM_INC
-I/Users/stan/Downloads/APC-3.0.19/include
-I/Users/stan/Downloads/APC-3.0.19/main
-I/Users/stan/Downloads/APC-3.0.19
-I/usr/local/php-5.3.0alpha3/include/php
-I/usr/local/php-5.3.0alpha3/include/php/main
-I/usr/local/php-5.3.0alpha3/include/php/TSRM
-I/usr/local/php-5.3.0alpha3/include/php/Zend
-I/usr/local/php-5.3.0alpha3/include/php/ext
-I/usr/local/php-5.3.0alpha3/include/php/ext/date/lib
-I/usr/local/php-5.3.0alpha3/include/php -DHAVE_CONFIG_H
-D__FreeBSD__=10 -isysroot /Developer/SDKs/MacOSX10.5.sdk -c
/Users/stan/Downloads/APC-3.0.19/apc.c  -fno-common -DPIC -o
.libs/apc.o
/bin/sh /Users/stan/Downloads/APC-3.0.19/libtool --mode=compile cc  -I.
-I/Users/stan/Downloads/APC-3.0.19 -DPHP_ATOM_INC
-I/Users/stan/Downloads/APC-3.0.19/include
-I/Users/stan/Downloads/APC-3.0.19/main
-I/Users/stan/Downloads/APC-3.0.19
-I/usr/local/php-5.3.0alpha3/include/php
-I/usr/local/php-5.3.0alpha3/include/php/main
-I/usr/local/php-5.3.0alpha3/include/php/TSRM
-I/usr/local/php-5.3.0alpha3/include/php/Zend
-I/usr/local/php-5.3.0alpha3/include/php/ext
-I/usr/local/php-5.3.0alpha3/include/php/ext/date/lib 
-I/usr/local/php-5.3.0alpha3/include/php -DHAVE_CONFIG_H 
-D__FreeBSD__=10 -isysroot /Developer/SDKs/MacOSX10.5.sdk   -c
/Users/stan/Downloads/APC-3.0.19/php_apc.c -o php_apc.lo 
 cc -I. -I/Users/stan/Downloads/APC-3.0.19 -DPHP_ATOM_INC
-I/Users/stan/Downloads/APC-3.0.19/include
-I/Users/stan/Downloads/APC-3.0.19/main
-I/Users/stan/Downloads/APC-3.0.19
-I/usr/local/php-5.3.0alpha3/include/php
-I/usr/local/php-5.3.0alpha3/include/php/main
-I/usr/local/php-5.3.0alpha3/include/php/TSRM
-I/usr/local/php-5.3.0alpha3/include/php/Zend
-I/usr/local/php-5.3.0alpha3/include/php/ext
-I/usr/local/php-5.3.0alpha3/include/php/ext/date/lib
-I/usr/local/php-5.3.0alpha3/include/php -DHAVE_CONFIG_H
-D__FreeBSD__=10 -isysroot /Developer/SDKs/MacOSX10.5.sdk -c
/Users/stan/Downloads/APC-3.0.19/php_apc.c  -fno-common -DPIC -o
.libs/php_apc.o
/Users/stan/Downloads/APC-3.0.19/php_apc.c:959: error: duplicate
'static'
make: *** [php_apc.lo] Error 1




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-09 11:33 UTC] shire@php.net
Can you please try the latest APC CVS Head?
 [2008-12-09 18:10 UTC] stanlemon at mac dot com
That worked, thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 01:01:32 2024 UTC