libsvn_swig_py not linking against the correct SWIG on shared hosting provider

Naru <[email protected]> Mon, 25 Jul 2005 22:56:38 +0200
Newsgroups gmane.comp.version-control.subversion.devel,gmane.mail.eyebrowse.user
Message-ID <20050725205638.GA25325__2618.55003559521$1122407332$gmane$org@gmx.ch>
hello list

I'm trying to build the SWIG bindings, using python 2.3.5 and SWIG
1.3.21 (this version is required for trac)

Everything is peachy except for the fact that the swig libraries link
against the (old) version of SWIG installed on my hosting provider's
machine.

I configure Python like this:
$ ./configure PYTHON=/home/fhofmann/trac/bin/python \
PERL=/home/fhofmann/bin/perl --prefix=/home/fhofmann/trac \
--with-swig=/home/fhofmann/trac/bin/swig

which the script apparently picks up:
...
checking for python2... /home/fhofmann/trac/bin/python
...
checking swig version... 1.3.21
checking for swig library directory... /home/fhofmann/trac/lib/swig1.3
configure: Configuring python swig binding
checking if swig needs -L for its libraries... -L/home/fhofmann/trac/lib


unfortunately afterwards execution of 'trac' fails with the following
error:
ImportError: /home/fhofmann/trac/lib/libsvn_swig_py-1.so.0: undefined
symbol: SWIG_Python_TypeQuery

and indeed, here's the ldd output:
$ ldd ~/trac/lib/libsvn_swig_py-1.*
/home/fhofmann/trac/lib/libsvn_swig_py-1.so.0.0.0:
        libswigpy-1.1.so => /usr/lib/libswigpy-1.1.so (0x4000e000)

can anybody tell me what to modify/what additional parameter to supply?

thanks & cheers
Naru