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

Solution to Undefined Symbol: SWIG_TypeQuery

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: 2005-02-20 11:41:03 CET



I have been behind this problem for a while now. This undefined symbol
happens when using ViewCVS with SVN 1.13. I saw from googling that
more than a few people have encoutered this error. Finally managed to
solve it, but only after I found the hint from this link

Here is the configuration:

SVN 1.1.3.
ViewCVS latest codeline.
SWIG 1.3.19.
Latest mod_python

Build SWIG first (./configure, make, make install, make runtime, make
install-runtime -- though the last two seems not required: make and
make install do the runtime bulid as well).
Then build SVN (./configure --with-ssl --with-apxs=/path/to/apxs;
make, make install, make swig-py, make install-swig-py).
Then installed mod_python and ViewCVS.

After this, when I used ViewCVS, it gave me an "Undefined Symbol on
SWIG_TypeQuery" error.

Apparently, the libraries (*.so) in
<svn-dir>/subversion/bindings/swig/python/.lib are not copied
correctly to /usr/local/lib/svn-python/libsvn directory.

What baffles me is, this was a clean box. There was no
/usr/local/lib/svn-python before I started my installation. So I do
not understand why a set of libraries that is different from the ones
in <svn-dir>/subversion/bindings/swig/python/.lib got into
/usr/local/lib/svn-python/libsvn. I looked at their sizes and they
were all different. So I copied them over to
/usr/local/lib/svn-python/libsvn and after that everything worked

I had installed a similar set up on RHEL3, with SVN 1.1.2 and SWIG
1.3.19. It worked like a charm then. So I wonder what is causing this
problem on the new setup. There are a bunch of differences in the new
setup, but I can not say which one is the issue. The differences
* FC3 instead of RHEL3
* SVN 1.1.3 instaed of SVN 1.1.2
* Default SWIG installation in FC3 of 1.3.21 (and 1.1 in RHEL3) --
though i did not use either of the defaults
* Default python is 2.3.4 in FC3 (and 2.2.x in RHEL3)

I am sending this email to this list just in case its an issue with
the makefiles for SVN 1.1.3. not copying the right .so files. And if
not, if anyone knows what exactly the problem is with this set up is,
please let us know.

Thanks much!

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Feb 20 11:43:13 2005

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.