|
From: Bart V. <bar...@zo...> - 2006-05-17 20:31:56
|
Simon Westwood wrote: > I've grabbed the latest code from SVN instead of looking at 0.9.4 >=20 > PHP4.4.2 -=20 > ssize_t isn't defined, however PHP5 headers define it. I suggest addin= g > this macro (I added to cache.c as that's the only place ssize_t is > referenced) >=20 > #ifndef ssize_t=20 > #define ssize_t int > #endif=20 >=20 > Linking... > Creating library Release/eAccelerator.lib and object > Release/eAccelerator.expea_restore.obj : error LNK2001: unresolved > external symbol _zend_do_inheritance > Release/eAccelerator.dll : fatal error LNK1120: 1 unresolved externals > Error executing link.exe. >=20 > I've seen this in a ticket on the site http://eaccelerator.net/ticket/6= 9 > so it's something in the pipeline. >=20 > Also webui.c and webui.h are referenced in the project but aren't > present, not sure if these have been merged in with other code so I > copied over files from the .9.4 source for now. If they don't need to > be compiled in, I'll change the project files. >=20 >=20 > PHP5.1.2 - > Bunch of compilation errors I'm still looking at which seem to originat= e > from intptr_t not being defined. Some creative googling has found the > following to provide a temporary, although possibly incorrect fix >=20 > #ifndef _INTPTR_T_DEFINED > typedef int intptr_t; > # define _INTPTR_T_DEFINED > #endif >=20 > I'm not convinced it should be defined as type int (possibly long as I > think it's a pointer), but it seems to result in the code compiling > correctly and linking with no errors. I don't have PHP5 configured to > run on my machine at the moment so haven't actually tested to make sure= > the module loads yet. Hope to get PHP5 up and running on a separate > version of Windows tomorrow, time permitting >=20 > I hope the above is useful >=20 Sounds good. About the _zend_do_inheritance stuff. Hans used that function because it save us a huge amount of trouble. The problem is that it isn't exported in the win32 version. Only from php5.1 on, on linux it isn't marked as a part of the zend api but it isn't marked static either. We realy don't know what to do about it, because without it we only have two options: * don't support eA with php 4 on windows * provide a patch for php and compile it again for windows A third option would be to hack around it but that would require a lot of work. Hans has been looking into this. Maybe we should move this stuff to the developers mailing list. I've cc'ed that list. This way Hans can jump in too. I don't have that much time at the moment and in a few days I'll disapear again for a more then a month, my exams are comming up :(. gr, Bart --=20 Bart Vanbrabant <bar...@zo...> PGP fingerprint: 093C BB84 17F6 3AA6 6D5E FC4F 84E1 FED1 E426 64D1 |