[Xapian-discuss] Compiling the PHP bindings with Cygwin ?
Thomas Deniau
thomas at deniau.org
Tue Feb 14 09:38:42 GMT 2006
Has anyone successfully compiled the PHP bindings with Cygwin (on W2K) ?
I usually use OS X and the PHP bindings work fine there (thanks for the
astonishing work on Xapian !), but my web site is now production-ready and my
web server runs Windows 2000.
I've successfully compiled xapian-core with cygwin (worked out of the box) and I
almost got the PHP bindings to compile : I had to remove the '-g -O2' CXXFLAGS
because when they are on, cc runs out of memory ; now they are compiled, but
the link fails : it says that all the PHP _zend symbols are undefined (and
that's correct, we don't link with any PHP DLL).
I know the same error can be fixed on OS X with -undefined dynamic_lookup (since
PHP will load our bindings...) but if I've googled correctly there is no such
option on Windows, since the DLL system is different from the dynamic libraries
system on Unix and the bundles system on Mac OS X.
So, has anyone managed to find the right commands to get these bindings compiled
? I thought of using pexport (from mingw) and dlltool to build a .a version of
the PHP DLL that Apache loads, but statically linking with it does not seem to
be the proper way....
Thank you in advance,
--
Thomas Deniau
More information about the Xapian-discuss
mailing list