From: stanlemon at mac dot com Operating system: Mac OS X 10.5.5 PHP version: 5.3.0alpha3 PHP Bug Type: Compile Failure Bug description: APC fails to compile
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 -- Edit bug report at http://bugs.php.net/?id=46797&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46797&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46797&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46797&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46797&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46797&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46797&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46797&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46797&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46797&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46797&r=support Expected behavior: http://bugs.php.net/fix.php?id=46797&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46797&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46797&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46797&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46797&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46797&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46797&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46797&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46797&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46797&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46797&r=mysqlcfg