It looks like this is a problem with the PHP extension. Rob at <a href="http://php.net">php.net</a> is updating it to be compatible with PHP 5.2 and PHP 5.3. <div><br></div><div>Here is his email response incase it can help anyone else:</div>
<div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(80, 0, 80); "><blockquote type="cite"><div><span>I need to make a new release for PHP 5.3 compatibility. The fixes had been added a few weeks after the 2.1.0 release.</span><br>
<span>Can you pull the latest php_spread.c code from the repository and try that?</span><br><span><a href="http://svn.php.net/viewvc/pecl/spread/trunk/php_spread.c?revision=297236&amp;view=co" target="_blank" style="color: rgb(42, 93, 176); ">http://svn.php.net/viewvc/pecl/spread/trunk/php_spread.c?revision=297236&amp;view=co</a></span><br>
<span>I just need to check to make sure its buildable against 5.2, 5.3 and trunk and will try to get a new release out asap.</span><br><span></span><br><span>Thanks,</span><br><span></span><br><span>Rob</span><br><span></span><br>
<span>Chris wrote:</span><br><blockquote type="cite"><span>I am trying to get the Spread extension to work in MAMP. </span><br></blockquote><blockquote type="cite"><span>This is what I get when I try and do a &quot;pecl install spread&quot;:</span><br>
</blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>macbook-pro-2:~ root# export PATH=/Applications/MAMP/bin/php5.3/bin:$PATH</span><br></blockquote><blockquote type="cite"><span>macbook-pro-2:~ root# pecl install spread</span><br>
</blockquote><blockquote type="cite"><span>downloading spread-2.1.0.tgz ...</span><br></blockquote><blockquote type="cite"><span>Starting to download spread-2.1.0.tgz (9,437 bytes)</span><br></blockquote><blockquote type="cite">
<span>.....done: 9,437 bytes</span><br></blockquote><blockquote type="cite"><span>4 source files, building</span><br></blockquote><blockquote type="cite"><span>WARNING: php_bin /Applications/MAMP/bin/php5/bin/php appears to have a suffix 5/bin/php, but config variable php_suffix does not match</span><br>
</blockquote><blockquote type="cite"><span>running: phpize</span><br></blockquote><blockquote type="cite"><span>Configuring for:</span><br></blockquote><blockquote type="cite"><span>PHP Api Version:         20090626</span><br>
</blockquote><blockquote type="cite"><span>Zend Module Api No:      20090626</span><br></blockquote><blockquote type="cite"><span>Zend Extension Api No:   220090626</span><br></blockquote><blockquote type="cite"><span>spread path prefix [autodetect] : building in /var/tmp/pear-build-root/spread-2.1.0</span><br>
</blockquote><blockquote type="cite"><span>running: /private/tmp/pear/temp/spread/configure --with-spread</span><br></blockquote><blockquote type="cite"><span>checking for grep that handles long lines and -e... /usr/bin/grep</span><br>
</blockquote><blockquote type="cite"><span>checking for egrep... /usr/bin/grep -E</span><br></blockquote><blockquote type="cite"><span>checking for a sed that does not truncate output... /usr/bin/sed</span><br></blockquote>
<blockquote type="cite"><span>checking for cc... cc</span><br></blockquote><blockquote type="cite"><span>checking for C compiler default output file name... a.out</span><br></blockquote><blockquote type="cite"><span>checking whether the C compiler works... yes</span><br>
</blockquote><blockquote type="cite"><span>checking whether we are cross compiling... no</span><br></blockquote><blockquote type="cite"><span>checking for suffix of executables...</span><br></blockquote><blockquote type="cite">
<span>checking for suffix of object files... o</span><br></blockquote><blockquote type="cite"><span>checking whether we are using the GNU C compiler... yes</span><br></blockquote><blockquote type="cite"><span>checking whether cc accepts -g... yes</span><br>
</blockquote><blockquote type="cite"><span>checking for cc option to accept ISO C89... none needed</span><br></blockquote><blockquote type="cite"><span>checking how to run the C preprocessor... cc -E</span><br></blockquote>
<blockquote type="cite"><span>checking for icc... no</span><br></blockquote><blockquote type="cite"><span>checking for suncc... no</span><br></blockquote><blockquote type="cite"><span>checking whether cc understands -c and -o together... yes</span><br>
</blockquote><blockquote type="cite"><span>checking for system library directory... lib</span><br></blockquote><blockquote type="cite"><span>checking if compiler supports -R... no</span><br></blockquote><blockquote type="cite">
<span>checking if compiler supports -Wl,-rpath,... yes</span><br></blockquote><blockquote type="cite"><span>checking build system type... i386-apple-darwin10.3.0</span><br></blockquote><blockquote type="cite"><span>checking host system type... i386-apple-darwin10.3.0</span><br>
</blockquote><blockquote type="cite"><span>checking target system type... i386-apple-darwin10.3.0</span><br></blockquote><blockquote type="cite"><span>checking for PHP prefix... /Applications/MAMP/bin/php5.3</span><br></blockquote>
<blockquote type="cite"><span>checking for PHP includes... -I/Applications/MAMP/bin/php5.3/include/php -I/Applications/MAMP/bin/php5.3/include/php/main -I/Applications/MAMP/bin/php5.3/include/php/TSRM -I/Applications/MAMP/bin/php5.3/include/php/Zend -I/Applications/MAMP/bin/php5.3/include/php/ext -I/Applications/MAMP/bin/php5.3/include/php/ext/date/lib</span><br>
</blockquote><blockquote type="cite"><span>checking for PHP extension directory... /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626</span><br></blockquote><blockquote type="cite"><span>checking for PHP installed headers prefix... /Applications/MAMP/bin/php5.3/include/php</span><br>
</blockquote><blockquote type="cite"><span>checking if debug is enabled... no</span><br></blockquote><blockquote type="cite"><span>checking if zts is enabled... no</span><br></blockquote><blockquote type="cite"><span>checking for re2c... no</span><br>
</blockquote><blockquote type="cite"><span>configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.</span><br></blockquote><blockquote type="cite"><span>checking for gawk... no</span><br>
</blockquote><blockquote type="cite"><span>checking for nawk... no</span><br></blockquote><blockquote type="cite"><span>checking for awk... awk</span><br></blockquote><blockquote type="cite"><span>checking if awk is broken... no</span><br>
</blockquote><blockquote type="cite"><span>checking for php_spread support... yes, shared</span><br></blockquote><blockquote type="cite"><span>checking for egrep... (cached) /usr/bin/grep -E</span><br></blockquote><blockquote type="cite">
<span>checking for a sed that does not truncate output... /usr/bin/sed</span><br></blockquote><blockquote type="cite"><span>checking for libspread in default path... found in /usr/local</span><br></blockquote><blockquote type="cite">
<span>checking for ANSI C header files... yes</span><br></blockquote><blockquote type="cite"><span>checking for sys/types.h... yes</span><br></blockquote><blockquote type="cite"><span>checking for sys/stat.h... yes</span><br>
</blockquote><blockquote type="cite"><span>checking for stdlib.h... yes</span><br></blockquote><blockquote type="cite"><span>checking for string.h... yes</span><br></blockquote><blockquote type="cite"><span>checking for memory.h... yes</span><br>
</blockquote><blockquote type="cite"><span>checking for strings.h... yes</span><br></blockquote><blockquote type="cite"><span>checking for inttypes.h... yes</span><br></blockquote><blockquote type="cite"><span>checking for stdint.h... yes</span><br>
</blockquote><blockquote type="cite"><span>checking for unistd.h... yes</span><br></blockquote><blockquote type="cite"><span>checking /usr/local/include/sp.h usability... yes</span><br></blockquote><blockquote type="cite">
<span>checking /usr/local/include/sp.h presence... yes</span><br></blockquote><blockquote type="cite"><span>checking for /usr/local/include/sp.h... yes</span><br></blockquote><blockquote type="cite"><span>checking /usr/local/include/sp_events.h usability... yes</span><br>
</blockquote><blockquote type="cite"><span>checking /usr/local/include/sp_events.h presence... yes</span><br></blockquote><blockquote type="cite"><span>checking for /usr/local/include/sp_events.h... yes</span><br></blockquote>
<blockquote type="cite"><span>checking for spread... no</span><br></blockquote><blockquote type="cite"><span>Spread 3.17.3 or superior...found</span><br></blockquote><blockquote type="cite"><span>checking for ld used by cc... /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld</span><br>
</blockquote><blockquote type="cite"><span>checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU ld... no</span><br></blockquote><blockquote type="cite"><span>checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload object files... -r</span><br>
</blockquote><blockquote type="cite"><span>checking for BSD-compatible nm... /usr/bin/nm</span><br></blockquote><blockquote type="cite"><span>checking whether ln -s works... yes</span><br></blockquote><blockquote type="cite">
<span>checking how to recognize dependent libraries... pass_all</span><br></blockquote><blockquote type="cite"><span>checking dlfcn.h usability... yes</span><br></blockquote><blockquote type="cite"><span>checking dlfcn.h presence... yes</span><br>
</blockquote><blockquote type="cite"><span>checking for dlfcn.h... yes</span><br></blockquote><blockquote type="cite"><span>checking the maximum length of command line arguments... 196608</span><br></blockquote><blockquote type="cite">
<span>checking command to parse /usr/bin/nm output from cc object... rm: conftest.dSYM: is a directory</span><br></blockquote><blockquote type="cite"><span>ok</span><br></blockquote><blockquote type="cite"><span>checking for objdir... .libs</span><br>
</blockquote><blockquote type="cite"><span>checking for ar... ar</span><br></blockquote><blockquote type="cite"><span>checking for ranlib... ranlib</span><br></blockquote><blockquote type="cite"><span>checking for strip... strip</span><br>
</blockquote><blockquote type="cite"><span>checking for dsymutil... dsymutil</span><br></blockquote><blockquote type="cite"><span>checking for nmedit... nmedit</span><br></blockquote><blockquote type="cite"><span>checking for -single_module linker flag... yes</span><br>
</blockquote><blockquote type="cite"><span>checking for -exported_symbols_list linker flag... yes</span><br></blockquote><blockquote type="cite"><span>checking if cc supports -fno-rtti -fno-exceptions... no</span><br></blockquote>
<blockquote type="cite"><span>checking for cc option to produce PIC... -fno-common</span><br></blockquote><blockquote type="cite"><span>checking if cc PIC flag -fno-common works... yes</span><br></blockquote><blockquote type="cite">
<span>checking if cc static flag -static works... no</span><br></blockquote><blockquote type="cite"><span>checking if cc supports -c -o file.o... yes</span><br></blockquote><blockquote type="cite"><span>checking whether the cc linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared libraries... yes</span><br>
</blockquote><blockquote type="cite"><span>checking dynamic linker characteristics... darwin10.3.0 dyld</span><br></blockquote><blockquote type="cite"><span>checking how to hardcode library paths into programs... immediate</span><br>
</blockquote><blockquote type="cite"><span>checking whether stripping libraries is possible... yes</span><br></blockquote><blockquote type="cite"><span>checking if libtool supports shared libraries... yes</span><br></blockquote>
<blockquote type="cite"><span>checking whether to build shared libraries... yes</span><br></blockquote><blockquote type="cite"><span>checking whether to build static libraries... no</span><br></blockquote><blockquote type="cite">
<span></span><br></blockquote><blockquote type="cite"><span>creating libtool</span><br></blockquote><blockquote type="cite"><span>appending configuration tag &quot;CXX&quot; to libtool</span><br></blockquote><blockquote type="cite">
<span>configure: creating ./config.status</span><br></blockquote><blockquote type="cite"><span>config.status: creating config.h</span><br></blockquote><blockquote type="cite"><span>running: make</span><br></blockquote><blockquote type="cite">
<span>/bin/sh /private/var/tmp/pear-build-root/spread-2.1.0/libtool --mode=compile cc  -I. -I/private/tmp/pear/temp/spread -DPHP_ATOM_INC -I/private/var/tmp/pear-build-root/spread-2.1.0/include -I/private/var/tmp/pear-build-root/spread-2.1.0/main -I/private/tmp/pear/temp/spread -I/Applications/MAMP/bin/php5.3/include/php -I/Applications/MAMP/bin/php5.3/include/php/main -I/Applications/MAMP/bin/php5.3/include/php/TSRM -I/Applications/MAMP/bin/php5.3/include/php/Zend -I/Applications/MAMP/bin/php5.3/include/php/ext -I/Applications/MAMP/bin/php5.3/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /private/tmp/pear/temp/spread/php_spread.c -o php_spread.lo</span><br>
</blockquote><blockquote type="cite"><span>mkdir .libs</span><br></blockquote><blockquote type="cite"><span>cc -I. -I/private/tmp/pear/temp/spread -DPHP_ATOM_INC -I/private/var/tmp/pear-build-root/spread-2.1.0/include -I/private/var/tmp/pear-build-root/spread-2.1.0/main -I/private/tmp/pear/temp/spread -I/Applications/MAMP/bin/php5.3/include/php -I/Applications/MAMP/bin/php5.3/include/php/main -I/Applications/MAMP/bin/php5.3/include/php/TSRM -I/Applications/MAMP/bin/php5.3/include/php/Zend -I/Applications/MAMP/bin/php5.3/include/php/ext -I/Applications/MAMP/bin/php5.3/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/spread/php_spread.c  -fno-common -DPIC -o .libs/php_spread.o</span><br>
</blockquote><blockquote type="cite"><span>/private/tmp/pear/temp/spread/php_spread.c:49: error: duplicate &#39;static&#39;</span><br></blockquote><blockquote type="cite"><span>make: *** [php_spread.lo] Error 1</span><br>
</blockquote><blockquote type="cite"><span>ERROR: `make&#39; failed</span></blockquote></div></blockquote></span></div><div><br><br><div class="gmail_quote">On Thu, May 6, 2010 at 12:46 AM, Alexey Zakhlestin <span dir="ltr">&lt;<a href="mailto:indeyets@gmail.com">indeyets@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Thu, May 6, 2010 at 2:46 AM, Chris Wilson &lt;<a href="mailto:chrisw@yepher.com">chrisw@yepher.com</a>&gt; wrote:<br>

&gt; I want to make a web page that shows information about the spread cluster.<br>
&gt; I have tried everything to get this working in MAMP (Snow Leopard) but have<br>
&gt; not been successful at all.<br>
&gt; Does anyone know any tricks to get this to work? Have you successfully<br>
&gt; gotten MAMP and Spread to work together?<br>
<br>
</div></div>What is your problem exactly?<br>
1) Does spread work correctly on this machine?<br>
2) Does spread&#39;s php extension load correctly (so you can see it in<br>
phpinfo, at least)?<br>
3) Can you connect from php extension to daemon? if not, what is the<br>
error returned?<br>
<font color="#888888"><br>
--<br>
Alexey Zakhlestin<br>
<a href="http://www.milkfarmsoft.com/" target="_blank">http://www.milkfarmsoft.com/</a><br>
</font></blockquote></div><br></div>