RE: [PECL-DEV] problems compling apc from cvs.
| From: | Gordon Heydon | Date: | Fri, 29 Apr 2005 00:35:29 +0000 |
| Subject: | RE: [PECL-DEV] problems compling apc from cvs. | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-2315@lists.php.net to get a copy of this message | ||
Hello,
Thanks for this.
Gordon.
BTW. I hope that you had a good holiday in Australia.
-----Original Message-----
From: Rasmus Lerdorf [mailto:rasmus@lerdorf.com]
Sent: Friday, 29 April 2005 9:52 AM
To: Gordon Heydon
Cc: PECL developers list
Subject: Re: [PECL-DEV] problems compling apc from cvs.
The status screen is in apc.php in CVS. No docs for store/fetch. Check
the code.
-Rasmus
Gordon Heydon wrote:
> Hello,
>
> Yes I was compiling against php5, I have now compiled it against php4
> and it is working.
>
> I did have a look around for some additional documentation on how to use
> apc_store, apc_fetch, and the new status screen that you demonstrated at
> LCA, but couldn't find any. Can you please point me in the direction of
> some documentation.
>
> Thanks in advance.
> Gordon.
>
> On Sat, 2005-04-23 at 13:42 -0700, Rasmus Lerdorf wrote:
>
>>Gordon Heydon wrote:
>>
>>>Hello,
>>>
>>>I am trying to compile apc from cvs, and I am running into the following
>>>error.
>>>
>>>gcc -I. -I/home/gordon/src/pecl/apc -DPHP_ATOM_INC
>>>-I/home/gordon/src/pecl/apc/include -I/home/gordon/src/pecl/apc/main
>>>-I/home/gordon/src/pecl/apc -I/usr/local/include/php
>>>-I/usr/local/include/php/main -I/usr/local/include/php/TSRM
>>>-I/usr/local/include/php/Zend -DHAVE_CONFIG_H -g -O2
>>>-c /home/gordon/src/pecl/apc/apc_cache.c -fPIC -DPIC -o apc_cache.lo
>>>/home/gordon/src/pecl/apc/apc_cache.c: In function
>>>`prevent_garbage_collection':
>>>/home/gordon/src/pecl/apc/apc_cache.c:231: error: subscripted value is
>>>neither array nor pointer
>>>make: *** [apc_cache.lo] Error 1
>>
>>Are you sure you are compiling this against PHP-4.3? The line in
>>question is:
>>
>> classes[i].class_entry->refcount[0] = BIG_VALUE;
>>
>>That refcount field in the class_entry struct switched from an int* to a
>>straight int between PHP-4.3 and PHP5, so it looks suspiciously like the
>>zend.h file you are compiling against is from PHP5. APC does not
>>support PHP5 yet.
>>
>>-Rasmus
>>
>
>
--
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
!DSPAM:427177c5324617376370816!