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

Subversion Python bindings breaking on SWIG_TypeQuery

From: Fancher, Bruce <bfancher_at_hfmus.com>
Date: 2004-12-28 07:49:31 CET

Hi. I'm still having trouble with the python bindings, and SWIG_TypeQuery in particular. From googling I see that I'm not the only one who's had similar problems, but I couldn't find a solution to the problem I'm having.

In a nutshell, when I try to test the Subversion python bindings, I get this:

[root@meatwad subversion-1.1.1]# tools/examples/svnlook.py
Traceback (most recent call last):
  File "tools/examples/svnlook.py", line 23, in ?
    from svn import core, fs, delta, repos
  File "/usr/local/lib/svn-python/svn/core.py", line 21, in ?
    from libsvn.core import *
  File "/usr/local/lib/svn-python/libsvn/core.py", line 5, in ?
    import _core
ImportError: /usr/local/lib/libsvn_swig_py-1.so.0: undefined symbol: SWIG_TypeQuery

I find SWIG_Python_TypeQuery, not SWIG_TypeQuery:

[root@meatwad subversion-1.1.1]# ldd /usr/local/lib/libsvn_swig_py-1.so.0 | grep libswigpy
        libswigpy.so.0 => /usr/local/lib/libswigpy.so.0 (0xb75f7000)

[root@meatwad subversion-1.1.1]# nm -A /usr/local/lib/libswigpy.so | grep -i SWIG_TypeQuery

[root@meatwad bruce]# nm -A /usr/local/lib/libswigpy.so | grep -i SWIG_Python_TypeQuery
/usr/local/lib/libswigpy.so:000012dc T SWIG_Python_TypeQuery

Although I see a few statements like #define SWIG_TypeQuery SWIG_Python_TypeQuery in both the subversion and swig source trees. So, where is SWIG_TypeQuery supposed to be coming from? Is SWIG not building correctly on my system or is the problem elsewhere?

Any help would be appreciated.

Thanks,

Bruce Fancher
Received on Tue Dec 28 07:50:35 2004

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

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