Ticket #157 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Error compiling RC1 with PHP 4.3.11 or 4.4.3

Reported by: chrisd Assigned to: somebody
Priority: major Milestone: 0.9.5
Component: eAccelerator Version: 0.9.5
Keywords: Cc:

Description

I receive the folloing errors when compiling 095 RC1 code with PHP 4.3.11 or 4.4.3:

cache.c
C:\php4311\ext\eaccelerator\cache.c(281) : error C2065: 'ssize_t' : undeclared identifier
C:\php4311\ext\eaccelerator\cache.c(281) : error C2146: syntax error : missing ';' before identifier 'result'
C:\php4311\ext\eaccelerator\cache.c(281) : error C2065: 'result' : undeclared identifier
content.c
debug.c
ea_dasm.c
ea_info.c
ea_restore.c
C:\php4311\ext\eaccelerator\ea_restore.c(906) : warning C4020: 'zend_do_inheritance' : too many actual parameters
ea_store.c
C:\php4311\ext\eaccelerator\ea_store.c(829) : warning C4101: 'i' : unreferenced local variable
eaccelerator.c
encoder.c
loader.c
mm.c
opcodes.c
optimize.c
session.c
shm.c
Error executing cl.exe.

Thanks, Christophe Delsol

Change History

08/05/06 12:51:04 changed by bart

Can you give some more information about the compiler you are using? I guess it's windows, as the release notes say, on windows eA doesn't support the PHP 4 tree any more. It might work when you compile eA as a static extension in php.

08/10/06 21:03:02 changed by chrisd

I was able to compile by adding:

#ifndef ssize_t
#	define ssize_t int
#endif

IN CACHE.C

08/23/06 16:48:39 changed by hans

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in changeset [266]. Thanks for your help!