Re: [INTERNALS-WIN] Compiling memcache and APC for PHP 5.6

[email protected] (Ferenc Kovacs) Fri, 16 May 2014 12:00:21 +0200
Newsgroups php.internals.win
Message-ID <CAH-PCH5_FwJV9sDE11sdyYmxV2hJLe6oNXG7xJVxQCNYe4kFNg@mail.gmail.com>
On Thu, May 15, 2014 at 7:08 PM, Jorge F. Hernandez <[email protected]>wrote:

> Hey guys,
>
> Does anybody know what can cause this?
>
> When I try to compile memcache and APC PECL extensions for PHP 5.6 I get
> this:
>
> MEMCACHE:
>
> Creating library Release_TS\php_memcache.lib and object
> Release_TS\php_memcache.exp
> memcache_pool.obj : error LNK2019: unresolved external symbol _compress
> referenced in function _mmc_compress
> memcache_pool.obj : error LNK2019: unresolved external symbol _uncompress
> referenced in function _mmc_uncompress
> Release_TS\php_memcache.dll : fatal error LNK1120: 2 unresolved externals
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 11.0\VC\BIN\cl.exe"' : return code '0x2'
> Stop.
>
> APC (some lines erased - Warnings, not errors):
>
> ..\pecl\APC-3.1.13\apc_bin.c(487) : error C2065: 'IS_CONSTANT_ARRAY' :
> undeclared identifier
> ..\pecl\APC-3.1.13\apc_bin.c(487) : error C2051: case expression not
> constant
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 11.0\VC\BIN\cl.exe"' : return code '0x2'
> Stop.
>
> I'm using the latest versions of each.
>
> ALSO:
>
> APC won't compile for PHP 5.5 either, I tried version 3.1.9 and 3.1.13
>
> ..\pecl\APC-3.1.9\apc_zend.c(170) : error C2039: 'Ts' : is not a member
> of '_zend_execute_data'
> d:\php-sdk\php55dev\vc11\x86\php-5.5.12-src\zend\zend_compile.h(384) :
> see declaration of '_zend_execute_data'
> d:\php-sdk\php55dev\vc11\x86\php-5.5.12-src\zend\zend_compile.h(384) :
> see declaration of '_zend_execute_data'
> d:\php-sdk\php55dev\vc11\x86\php-5.5.12-src\zend\zend_compile.h(384) :
> see declaration of '_zend_execute_data'
> ..\pecl\APC-3.1.9\apc_zend.c(171) : error C2039: 'Ts' : is not a member
> of '_zend_execute_data'
> d:\php-sdk\php55dev\vc11\x86\php-5.5.12-src\zend\zend_compile.h(384) :
> see declaration of '_zend_execute_data'
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 11.0\VC\BIN\cl.exe"' : return code '0x2'
> Stop.
>
> Thanks,
>

could you please open a bugreport about it?
this is a change in the internals API which needs the extensions to be
updated with, see
https://github.com/php/php-src/blob/php-5.6.0beta3/UPGRADING.INTERNALS for
the details (Removal of IS_CONSTANT_ARRAY and IS_CONSTANT_INDEX hack)

-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu