[Xapian-discuss] Compiling xapian-bindings-0.9.2 on OpenBSD 3.7

Pat Johnson pat at gamesinmind.com
Mon Sep 12 19:04:57 BST 2005


Hello,

Compiling xapian-core-0.9.2 worked fine, and make check reported that the tests ran without problems (although it skipped some near the end). Now I'm trying to compile xapian-bindings-0.9.2 on OpenBSD 3.7 but have run into a problem. After hours of searching the net I haven't found a solution.

For reference gcc -v gives the following output:
Configured with:
Thread model: single
gcc version 3.3.5 (propolice)

And I'm using Python 2.3.5.

This works fine:
./configure XAPIAN_CONFIG=/usr/local/src/xapian-core-0.9.2/xapian-config

But when I run make I get the following (some parts removed because it's quite a long list of similar errors):

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.3  -Wall -Wno-unused -Wno-uninitialized -g -O2 -I/usr/local/src/xapian-core-0.9.2/include -I/usr/local/src/xapian-core-0.9.2/extra -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.3 -Wall -Wno-unused -Wno-uninitialized -g -O2 -I/usr/local/src/xapian-core-0.9.2/include -I/usr/local/src/xapian-core-0.9.2/extra -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/src/xapian-core-0.9.2/include -I/usr/local/src/xapian-core-0.9.2/extra   -o _xapian.la -rpath /usr/local/lib/python2.3/site-packages -avoid-version -module -no-undefined xapian_wrap.lo /usr/local/src/xapian-core-0.9.2/libxapian.la
g++ -shared  -fPIC -DPIC   .libs/xapian_wrap.o  -L/usr/local/src/xapian-core-0.9.2/.libs -lxapian   -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"
/usr/local/bin/python:/usr/local/lib/libxapian.so.8.0: undefined symbol '_ZTISi'
/usr/local/bin/python: /usr/local/lib/libxapian.so.8.0: can't resolve reference '_ZTISi'
/usr/local/bin/python:/usr/local/lib/libxapian.so.8.0: undefined symbol '_ZTISi'
/usr/local/bin/python: /usr/local/lib/libxapian.so.8.0: can't resolve reference '_ZTISi'

(this list of undefined symbols goes on for awhile then:)

/usr/local/bin/python:/usr/local/lib/libxapian.so.8.0: undefined symbol '_ZNSsC1EPKcjRKSaIcE'
lazy binding failed!
Segmentation fault (core dumped)
*** Error code 139

Stop in /usr/local/src/xapian-bindings-0.9.2/python (line 752 of Makefile).
*** Error code 1

Stop in /usr/local/src/xapian-bindings-0.9.2/python (line 410 of Makefile).
*** Error code 1

Stop in /usr/local/src/xapian-bindings-0.9.2/python (line 253 of Makefile).
*** Error code 1

Stop in /usr/local/src/xapian-bindings-0.9.2 (line 303 of Makefile).
*** Error code 1

Stop in /usr/local/src/xapian-bindings-0.9.2 (line 208 of Makefile).


Does anyone know why this occurs and what I can do about it?

Thanks,

-Pat




More information about the Xapian-discuss mailing list