On 06/03/14 21:27, Daniel Pocock wrote:
> 
> 
> On 03/03/14 23:33, Nick Satterly wrote:
>> Hi Daniel,
>>
>> When I ran your commands the configure step failed with an error about
>> "php-config" so I installed "php5-dev" and it worked.
> 
> 
> For the PHP stuff to compile:
> 
> - it also needs libphp5-embed  (maybe php5-dev should depend on that?)
> or there is a link error about missing libphp5.so
> 
> - I had to remove
>     #include "file.h"
>  from gmond/modules/php/mod_php.c
>     - file.h no longer exists in the project
> 
> I've enabled --with-php in the travis builds now.  We should really aim
> to have all options building cleanly in travis before any release.
> 
> Here is the current travis configure line:
> 
> ./configure --with-gmetad --with-php --with-perl=/usr --enable-status
> --with-memcached
> 
> and here is what I tried:
> 
> ./configure --with-gmetad --enable-perl          --enable-php
> --enable-status --with-python          --with-riemann
> 
> so we also need to ask travis to try
>   --with-python --with-riemann
> 
> That doesn't fix the other problems I had with the tarball though.
> 
> 

While the php build works for me, it still doesn't build in travis.

If the PHP stuff is not stable or complete, could it be moved to a
branch so it is not in releases?


https://travis-ci.org/ganglia/monitor-core/builds/20236861


libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -DLINUX
-D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/php5
-I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext
-I/usr/include/php5/ext/date/lib -I/usr/include/php5
-I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext
-I/usr/include/php5/ext/date/lib -D_LARGEFILE64_SOURCE
-I../../../include -I../../../lib -g -O2 -DWITH_MEMCACHED
-fno-strict-aliasing -Wall -D_REENTRANT -MT mod_php.lo -MD -MP -MF
.deps/mod_php.Tpo -c mod_php.c  -fPIC -DPIC -o .libs/mod_php.o
In file included from /usr/include/php5/main/php.h:35:0,
                 from /usr/include/php5/sapi/embed/php_embed.h:23,
                 from mod_php.c:53:
/usr/include/php5/Zend/zend.h:282:3: error: redeclaration of enumerator
‘SUCCESS’
/usr/include/rpc/rpc_msg.h:65:2: note: previous definition of ‘SUCCESS’
was here
mod_php.c: In function ‘php_metric_init’:

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to