[root@zara-mon xapian-bindings-1.2.21]# ./configure --with-php
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for xapian-config... /usr/local/bin/xapian-config
checking /usr/local/bin/xapian-config works... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for php-config... /usr/bin/php-config
checking /usr/bin/php-config version... 5.4.16
checking for PHP extension directory... /usr/lib64/php/modules
checking for zend.h... yes
checking for /usr/bin/php5... no
checking for /usr/bin/php... /usr/bin/php
checking for PHP path separator... :
checking whether to use -fvisibility=hidden... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating xapian-version.h
config.status: creating python/Makefile
config.status: creating python/version.i
config.status: creating php/Makefile
config.status: creating java/Makefile
config.status: creating java/native/Makefile
config.status: creating java/org/xapian/Makefile
config.status: creating java/org/xapian/errors/Makefile
config.status: creating java/org/xapian/examples/Makefile
config.status: creating java-swig/Makefile
config.status: creating tcl8/Makefile
config.status: creating tcl8/pkgIndex.tcl
config.status: creating csharp/Makefile
config.status: creating csharp/AssemblyInfo.cs
config.status: creating ruby/Makefile
config.status: creating perl/Makefile
config.status: creating perl/util.i
config.status: creating lua/Makefile
config.status: creating xapian-bindings.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

*** Building bindings for languages: php

[root@zara-mon xapian-bindings-1.2.21]# make
make  all-recursive
make[1]: Entering directory `/root/harry/xapian/xapian-bindings-1.2.21'
Making all in php
make[2]: Entering directory `/root/harry/xapian/xapian-bindings-1.2.21/php'
make  all-am
make[3]: Entering directory `/root/harry/xapian/xapian-bindings-1.2.21/php'
/bin/sh ../libtool   --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden -I/usr/local/include -DSWIG_ZEND_ERROR_NORETURN=zend_error -g -O2 -MT xapian_wrap.lo -MD -MP -MF .deps/xapian_wrap.Tpo -c -o xapian_wrap.lo `test -f 'php5/xapian_wrap.cc' || echo './'`php5/xapian_wrap.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden -I/usr/local/include -DSWIG_ZEND_ERROR_NORETURN=zend_error -g -O2 -MT xapian_wrap.lo -MD -MP -MF .deps/xapian_wrap.Tpo -c php5/xapian_wrap.cc  -fPIC -DPIC -o .libs/xapian_wrap.o
php5/xapian_wrap.cc: In member function virtual Xapian::doccount SwigDirector_PostingSource::get_termfreq_min() const:
php5/xapian_wrap.cc:1970:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual Xapian::doccount SwigDirector_PostingSource::get_termfreq_est() const:
php5/xapian_wrap.cc:1996:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual Xapian::doccount SwigDirector_PostingSource::get_termfreq_max() const:
php5/xapian_wrap.cc:2022:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual Xapian::weight SwigDirector_PostingSource::get_weight() const:
php5/xapian_wrap.cc:2048:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual Xapian::docid SwigDirector_PostingSource::get_docid() const:
php5/xapian_wrap.cc:2074:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual bool SwigDirector_PostingSource::check(Xapian::docid, Xapian::weight):
php5/xapian_wrap.cc:2163:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual bool SwigDirector_PostingSource::at_end() const:
php5/xapian_wrap.cc:2189:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual std::string SwigDirector_PostingSource::name() const:
php5/xapian_wrap.cc:2221:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual std::string SwigDirector_PostingSource::get_description() const:
php5/xapian_wrap.cc:2285:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual bool SwigDirector_MatchDecider::operator()(const Xapian::Document&) const:
php5/xapian_wrap.cc:2322:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual bool SwigDirector_ExpandDecider::operator()(const string&) const:
php5/xapian_wrap.cc:2362:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual std::string SwigDirector_MatchSpy::name() const:
php5/xapian_wrap.cc:2435:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual std::string SwigDirector_MatchSpy::get_description() const:
php5/xapian_wrap.cc:2507:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual bool SwigDirector_Stopper::operator()(const string&) const:
php5/xapian_wrap.cc:2544:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual std::string SwigDirector_Stopper::get_description() const:
php5/xapian_wrap.cc:2571:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual Xapian::valueno SwigDirector_ValueRangeProcessor::operator()(std::string&, std::string&):
php5/xapian_wrap.cc:2616:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual std::string SwigDirector_StemImplementation::operator()(const string&):
php5/xapian_wrap.cc:2654:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual std::string SwigDirector_StemImplementation::get_description() const:
php5/xapian_wrap.cc:2678:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual std::string SwigDirector_KeyMaker::operator()(const Xapian::Document&) const:
php5/xapian_wrap.cc:2713:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
php5/xapian_wrap.cc: In member function virtual std::string SwigDirector_Compactor::resolve_duplicate_metadata(const string&, size_t, const string*):
php5/xapian_wrap.cc:2796:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
mv -f .deps/xapian_wrap.Tpo .deps/xapian_wrap.Plo
/bin/sh ../libtool  --tag=CXX   --mode=link g++ -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden -I/usr/local/include -DSWIG_ZEND_ERROR_NORETURN=zend_error -g -O2 -avoid-version -module   -o xapian.la -rpath /usr/lib64/php/modules xapian_wrap.lo -L/usr/local/lib -lxapian -lstdc++
libtool: link: rm -fr  .libs/xapian.la .libs/xapian.lai .libs/xapian.so
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.2/crtbeginS.o  .libs/xapian_wrap.o   -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib /usr/local/lib/libxapian.so -lz -luuid -L/usr/lib/gcc/x86_64-redhat-linux/4.8.2 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.8.2/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/crtn.o  -g -O2   -Wl,-soname -Wl,xapian.so -o .libs/xapian.so
libtool: link: ( cd ".libs" && rm -f "xapian.la" && ln -s "../xapian.la" "xapian.la" )
make[3]: Leaving directory `/root/harry/xapian/xapian-bindings-1.2.21/php'
make[2]: Leaving directory `/root/harry/xapian/xapian-bindings-1.2.21/php'
make[2]: Entering directory `/root/harry/xapian/xapian-bindings-1.2.21'
make[2]: Leaving directory `/root/harry/xapian/xapian-bindings-1.2.21'
make[1]: Leaving directory `/root/harry/xapian/xapian-bindings-1.2.21'
[root@zara-mon xapian-bindings-1.2.21]#


[root@zara-mon xapian-bindings-1.2.21]# uname -a
Linux zara-mon 3.10.0-123.8.1.el7.x86_64 #1 SMP Mon Sep 22 19:06:58 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@zara-mon xapian-bindings-1.2.21]#

## DURING EXECUTION of the durpal website, I got these errors:
(While searching for the string "FACTUUR" in the pdf documents)

[root@zara-mon xapian-bindings-1.2.21]# tail /var/log/httpd/error_log
[Fri Oct 09 10:12:03.046832 2015] [:error] [pid 19906] [client 13.41.46.31:1256] PHP Fatal error:  No matching function for overloaded 
'QueryParser_parse_query' in /usr/local/share/php5/xapian.php on line 2930, referer: http://13.41.46.181/dms/?q=search/xapian/FACTUUR
[Fri Oct 09 10:12:03.240609 2015] [:error] [pid 19906] [client 13.41.46.31:1256] PHP Fatal error:  No matching function for overloaded 
'QueryParser_parse_query' in /usr/local/share/php5/xapian.php on line 2930, referer: http://13.41.46.181/dms/?q=search/xapian/FACTUUR
[Fri Oct 09 11:31:09.668329 2015] [:error] [pid 19911] [client 13.41.46.31:1456] PHP Fatal error:  No matching function for overloaded 
'QueryParser_parse_query' in /usr/local/share/php5/xapian.php on line 2930, referer: http://13.41.46.181/dms/?q=search/xapian/FACTUUR
[Fri Oct 09 11:31:09.901593 2015] [:error] [pid 19911] [client 13.41.46.31:1456] PHP Fatal error:  No matching function for overloaded 
'QueryParser_parse_query' in /usr/local/share/php5/xapian.php on line 2930, referer: http://13.41.46.181/dms/?q=search/xapian/FACTUUR
[Fri Oct 09 11:45:28.383409 2015] [:error] [pid 19895] [client 13.41.46.31:1470] PHP Fatal error:  No matching function for overloaded
 'QueryParser_parse_query' in /usr/local/share/php5/xapian.php on line 2930, referer: http://13.41.46.181/dms/?q=search/xapian/FACTUUR
[Fri Oct 09 11:45:29.509825 2015] [:error] [pid 19895] [client 13.41.46.31:1470] PHP Fatal error:  No matching function for overloaded 
'QueryParser_parse_query' in /usr/local/share/php5/xapian.php on line 2930, referer: http://13.41.46.181/dms/?q=search/xapian/FACTUUR
[root@zara-mon xapian-bindings-1.2.21]# tail /var/log/httpd/error_log


## When I try to create an index in drupal, I got this error:

[Fri Oct 09 12:11:25.574069 2015] [:error] [pid 19899] [client 13.41.46.31:1545] PHP Fatal error:  No matching function for overloaded
 'QueryParser_parse_query' in /usr/local/share/php5/xapian.php on line 2930, referer: http://13.41.46.181/dms/?q=admin/config/search/search_api
