Sorry for the delay, finally got a chance to look into this:

On 2014-06-12 12:22, Guillaume Pelletier wrote:
> Hi, I’m trying to get a workable memcache extension for php on Cygwin
> and I’m getting some resistance. I tried getting the extension from PECL
> with pecl install memcache, however this obviously fails whenever
> litbool tries to link to anything. (Zlib in this case)

This shouldn't "obviously" fail; generally speaking, PECL extensions 
should and do build as-is, even when they need another library.

> My question is how should someone attempt this? I’ve started reading
> about statically compiling the extension into PHP, but I’m unsure how
> this would be achieved with cygport’s source.  Can something be done
> with the source coming from PECL at all?

The fault here is mostly memcache's.  The config file checks for zlib 
but is missing the command that would add -lz to the Makefile, hence the 
undefined references.  I have reported this upstream:

https://bugs.php.net/bug.php?id=67483

One more Cygwin-specific issue remained: the optional memcache session 
support requires the 'session' extension APIs, but php-session has been 
a shared extension.  I have changed php to make 'session' a builtin 
extension, so that this support may be enabled without further intervention.

I just uploaded php-5.5.13-2 and php-memcache-3.0.8-1 with these changes.

HTH,

Yaakov
Cygwin Ports


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general

Reply via email to