[Xapian-devel] Compiling PHP Bindings

Michael Schlenker schlenk at uni-oldenburg.de
Tue Jun 7 15:43:27 BST 2005


info at bannershift.com wrote:
> Hi all.
> 
> I have problem compiling xapian php bindings.
> 
> I am using debian sarge.
> 
> I have installed php4-dev before compilation.
> I am getting the following errors:
> 
> boomer:~/xapian/xapian-bindings-0.9.0# make
> make  all-recursive
> make[1]: Entering directory `/root/xapian/xapian-bindings-0.9.0'
> Making all in php4
> make[2]: Entering directory `/root/xapian/xapian-bindings-0.9.0/php4'
> make  all-recursive
> make[3]: Entering directory `/root/xapian/xapian-bindings-0.9.0/php4'
> Making all in docs
> make[4]: Entering directory `/root/xapian/xapian-bindings-0.9.0/php4/docs'
> Making all in examples
> make[5]: Entering directory
> `/root/xapian/xapian-bindings-0.9.0/php4/docs/examples'
> make[5]: Nothing to be done for `all'.
> make[5]: Leaving directory
> `/root/xapian/xapian-bindings-0.9.0/php4/docs/examples'
> make[5]: Entering directory `/root/xapian/xapian-bindings-0.9.0/php4/docs'
> make[5]: Nothing to be done for `all-am'.
> make[5]: Leaving directory `/root/xapian/xapian-bindings-0.9.0/php4/docs'
> make[4]: Leaving directory `/root/xapian/xapian-bindings-0.9.0/php4/docs'
> make[4]: Entering directory `/root/xapian/xapian-bindings-0.9.0/php4'
> if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. 
> -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/Zend
> -I/usr/include/php4/TSRM  -Wall -Wno-unused -Wno-uninitialized -g -O2
> -I/usr/local/include -MT xapian_wrap.lo -MD -MP -MF ".deps/xapian_wrap.Tpo" -c
> -o xapian_wrap.lo xapian_wrap.cc; \
> then mv -f ".deps/xapian_wrap.Tpo" ".deps/xapian_wrap.Plo"; else rm -f
> ".deps/xapian_wrap.Tpo"; exit 1; fi
> mkdir .libs
>  g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/php4 -I/usr/include/php4/main
> -I/usr/include/php4/Zend -I/usr/include/php4/TSRM -Wall -Wno-unused
> -Wno-uninitialized -g -O2 -I/usr/local/include -MT xapian_wrap.lo -MD -MP -MF
> .deps/xapian_wrap.Tpo -c xapian_wrap.cc  -fPIC -DPIC -o .libs/xapian_wrap.o
> xapian_wrap.cc: In function `void _wrap_PostingIterator_get_description(int,
>    zval*, zval*, int)':
> xapian_wrap.cc:2552: internal compiler error: Segmentation fault
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> For Debian GNU/Linux specific bug reporting instructions, see
Sounds like the GCC really doesn't like things there..., so reporting a 
GCC bug may be the correcter thing to do.
(it seems it crashes gcc, which is not directly a xapian error but a 
compiler fault/bug)

Michael




More information about the Xapian-devel mailing list