[Xapian-devel] [PHP5] Xapian not compiling

Jacob Mahoney kittenman at myactv.net
Sat Jul 30 16:18:30 BST 2005


On Sat, 2005-07-30 at 16:09 +0100, James Aylett wrote:
> On Sat, Jul 30, 2005 at 10:33:38AM -0400, Jacob Mahoney wrote:
> 
> > The Xapian PHP extension is refusing to compile on my system, is there
> > any way to force it, or can someone provide the extension compiled for
> > FreeBSD 5.4?  Please?
> 
> If you gave us the error messages you're seeing, we might be able to
> suggest things to try to get it building.
> 
> Cheers,
> James
> 
Here's the weird part, its not even trying to build the PHP extension.
o.0  The attached file is everything that was output when I tried to
build the extension.  Any help at all would be much loved <3. (and I
hope ya don't kill me for attaching a text file).
-------------- next part --------------
ocelot# ./configure --with-php
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking build system type... i386-unknown-freebsd5.4
checking host system type... i386-unknown-freebsd5.4
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
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 g77... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f77 accepts -g... yes
checking the maximum length of command line arguments... 49152
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... freebsd5.4 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
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd5.4 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for f77 option to produce PIC... -fPIC
checking if f77 PIC flag -fPIC works... yes
checking if f77 supports -c -o file.o... yes
checking whether the f77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd5.4 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
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 python... /usr/local/bin/python
checking for /usr/local/include/python2.4/Python.h... yes
checking for php-config... /usr/local/bin/php-config
checking for tclsh... /usr/local/bin/tclsh
test: yes: unexpected operator
checking for mcs... no
checking for java... /usr/local/bin/java
checking for javac... /usr/local/bin/javac
checking for jar... /usr/local/bin/jar
checking jni.h usability... no
checking jni.h presence... no
checking for jni.h... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating python/Makefile
config.status: creating python/docs/Makefile
config.status: creating python/docs/examples/Makefile
config.status: creating php4/Makefile
config.status: creating php4/docs/Makefile
config.status: creating php4/docs/examples/Makefile
config.status: creating php4/util.i
config.status: creating java/Makefile
config.status: creating java/native/Makefile
config.status: creating java/org/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 guile/Makefile
config.status: creating tcl8/Makefile
config.status: creating tcl8/docs/Makefile
config.status: creating tcl8/docs/examples/Makefile
config.status: creating csharp/Makefile
config.status: creating csharp/AssemblyInfo.cs
config.status: creating xapian-bindings.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
ocelot# make
make  all-recursive
Making all in python
make  all-recursive
Making all in docs
Making all in examples
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/local/include/python2.4  -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 `test -f 'modern/xapian_wrap.cc' || echo './'`modern/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/local/include/python2.4 -Wall -Wno-unused -Wno-uninitialized -g -O2 -I/usr/local/include -MT xapian_wrap.lo -MD -MP -MF .deps/xapian_wrap.Tpo -c modern/xapian_wrap.cc  -fPIC -DPIC -o .libs/xapian_wrap.o
/bin/sh ../libtool --tag=CXX --mode=link g++ -Wall -Wno-unused -Wno-uninitialized  -g -O2 -I/usr/local/include   -o _xapian.la -rpath /usr/local/lib/python2.4/site-packages -avoid-version -module -no-undefined xapian_wrap.lo /usr/local/lib/libxapian.la
g++ -shared -nostdlib /usr/lib/crti.o /usr/lib/crtbeginS.o  .libs/xapian_wrap.o  -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib /usr/local/lib/libxapian.so -L/usr/lib -lstdc++ -lm -lgcc_pic /usr/lib/crtendS.o /usr/lib/crtn.o  -Wl,-soname -Wl,_xapian.so -o .libs/_xapian.so
creating _xapian.la
(cd .libs && rm -f _xapian.la && ln -s ../_xapian.la _xapian.la)
cp `test -f modern/xapian.py || echo './'`modern/xapian.py xapian.py
PYTHONPATH=".:.libs" /usr/local/bin/python -c "import xapian"
ocelot#


More information about the Xapian-devel mailing list