Ticket #157 (closed defect: fixed)
Error compiling RC1 with PHP 4.3.11 or 4.4.3
| Reported by: | chrisd | Owned by: | 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
comment:2 Changed 4 years ago by chrisd
I was able to compile by adding:
#ifndef ssize_t # define ssize_t int #endif
IN CACHE.C
comment:3 Changed 4 years ago by hans
- Status changed from new to closed
- Resolution set to fixed
Fixed in changeset [266]. Thanks for your help!
comment:4 Changed 6 months ago by sim
decoration Changed 1 year ago by admin
bathtub Changed 1 year ago by admin
solar system Changed 1 year ago by admin
stair parts Changed 1 year ago by admin
solar supply Changed 1 year ago by admin
Note: See
TracTickets for help on using
tickets.
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.