[Xapian-discuss] Swig bug for PHP

Olly Betts olly@survex.com
Wed, 26 May 2004 15:43:14 +0100


On Wed, May 26, 2004 at 03:12:16PM +0100, Richard Boulton wrote:
> Just in case others have been having the same problem:
> 
> I've been having problems getting the PHP bindings to build at all, 
> because swig reports an error:
> 
> "/usr/share/swig1.3/php4/std_map.i:8: Unable to find 'std_common.i'"

We've been here before:

http://article.gmane.org/gmane.comp.search.xapian.devel/215

The quick fix is to just touch the file into existence - it was empty in
SWIG's CVS at the time (more recent versions have some size_t stuff in).

> Looking at the cvs commits log, it looks like php4/std_common.i was 
> missed out of 1.3.19, but should be in 1.3.20 and 1.3.21.

Should xapian-bindings perhaps require SWIG 1.3.20?  Currently we check
for at least 1.3.14, but I'm not confident that is good enough anyway -
I'm using 1.3.19 with std_common.i touched into existence.

Cheers,
    Olly