[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Bugs in Subversion's SWIG 1.3.21 support

From: John Lenz <lenz_at_cs.wisc.edu>
Date: 2005-08-08 07:14:50 CEST

On Sun, August 7, 2005 4:23 pm, David Summers said:

> I'm trying out SWIG 1.3.25 on RH7.3, RH8, RH9, RHEL3, and RHEL4 to try to
> get rid of more package dependencies.
> So far on RHEL3 and RHEL4, no problems.
> I'm just now trying RH9 which uses python 2.2.2 and when I try the
> python -c "from svn import client", I get the following error:
> Traceback (most recent call last):
> File "<string>", line 1, in ?
> File "/usr/lib/svn-python/svn/client.py", line 19, in ?
> File "/usr/lib/svn-python/libsvn/client.py", line 5, in ?
> ImportError: /usr/lib/python2.2/site-packages/libsvn/_client.so: undefined
> symbol: SWIG_TypeQuery
> Any ideas what might be causing the undefined symbol? Anything I can do
> do to help debug it more? I'm using subversion trunk as of r15616.

In 1.3.25, SWIG_TypeQuery is declared static and included inline in every
file SWIG generates, so this error is very wierd. In 1.3.25, there is
absolutly no linking of library functions.

I would make sure that the SWIG you are building with is the correct one,
and that the paths are all set up... if you have multiple versions of
SWIG. Also note that SWIG needs the correct path to the library files
(SWIG_LIB) so you could be using the latest binary with old library
files... RH9 might include a copy of SWIG and that library path is above
the others in the search path. Check out the preinst-swig.sh file inside
the SWIG source, for how to run SWIG correctly without installing it.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Aug 8 07:15:45 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.