On Wed, Sep 21, 2005 at 05:05:53PM +0200, Ralf Wildenhues wrote:
> Olly, can you show us the libtool link line that fails, plus the output
> it generates (you can probably cut off after the first ten or so
> errors to keep size down).

The libtool link doesn't fail.  The failure comes when Python tries to
dlopen the resulting module.

Here's the libtool link line (from the output from "make"):

/bin/sh ../libtool --tag=CXX --mode=link g++ -Wall -Wno-unused 
-Wno-uninitialized  -g -I/home/olly/install/include   -o _xapian.la -rpath 
/usr/local/lib/python2.3/site-packages -avoid-version -module -no-undefined 
xapian_wrap.lo /home/olly/install/lib/libxapian.la
rm -fr  .libs/_xapian.la .libs/_xapian.lai .libs/_xapian.so
g++ -shared  -fPIC -DPIC   .libs/xapian_wrap.o  -L/home/olly/install/lib 
-lxapian   -o .libs/_xapian.so
creating _xapian.la
(cd .libs && rm -f _xapian.la && ln -s ../_xapian.la _xapian.la)

And here's the error when Python tries to load it:

$ PYTHONPATH=/home/olly/xb-install-tmp:. python -c 'import xapian'
python:/usr/local/lib/libxapian.so.8.0: undefined symbol '_ZTISi'
python: /usr/local/lib/libxapian.so.8.0: can't resolve reference '_ZTISi'
python:/usr/local/lib/libxapian.so.8.0: undefined symbol '_ZTISi'
python: /usr/local/lib/libxapian.so.8.0: can't resolve reference '_ZTISi'
python:/usr/local/lib/libxapian.so.8.0: undefined symbol '_ZTISi'
python: /usr/local/lib/libxapian.so.8.0: can't resolve reference '_ZTISi'
python:/usr/local/lib/libxapian.so.8.0: undefined symbol '_ZNSiD1Ev'
python: /usr/local/lib/libxapian.so.8.0: can't resolve reference '_ZNSiD1Ev'
[And lots more!]

Demangling with c++filt, "_ZTISi" is "typeinfo for std::basic_istream<char,
std::char_traits<char> >".  The other symbols are all C++ STL stuff too
from what I could see.

Cheers,
    Olly


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to