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

Re: Python bindings/ViewCVS/Swig trouble

From: Johannes Fahrenkrug <jfa_at_gebeco.de>
Date: 2004-04-21 12:50:59 CEST

Hi again,

> On Tue, Apr 20, 2004 at 12:49:16PM +0000, Johannes Fahrenkrug wrote:
> > Hi everyone,
> >
> > I am running a Subversion server on Solaris 2.8. I was running a
> > version 1.0.1 till this morning; now I'm running a version 1.0.2.
> > I tried Swig 1.3.21, but had troubles with it (didn't build
> > libswigpy.so), so I switched back to Swig 1.3.19.
> > And I am using a viewcvs1.0-dev CVS build.
> > After I set everything up, I get this error when I try to connect to
> > my viewcvs server:
> >
> > An Exception Has Occurred
> > Python Traceback
<snip>
> > ImportError: ld.so.1: /usr/local/bin/python: fatal: relocation error:
> > file /usr/local/lib/python2.3/site-packages/libsvn/_fs.so: symbol
> > SWIG_Python_ConvertPtr: referenced symbol not found
<snip>

> This looks like you have the swig executable installed from 1.3.21
while
> having the 1.3.19 runtimes installed. See the documentation in
> subversion/bindings/INSTALL on how to install SWIG. Note the:
> * run 'make && make runtime && make install && make
install-runtime'
> line.

Ok, I tried that. Unfortunately swig doesn't have a -v or --version
switch. But I deleted the swig binary and the swig libraries and
compiled swig-1.3.19 again and installed it again (with
install-runtime and everything).
Everything worked fine. Then I ran a »make clean« in my
subversion-1.0.2 source dir, ran a ./config.nice and a »make« and
»make install«. All that worked smoothly. (The config script found
swig-1.3.19 and also told me that it was configuring swig python
bindings.)
Then I ran »make swig-py«. I got a couple of these warnings:

/bin/bash /home/jfa/subversion-1.0.2/libtool --silent --mode=compile
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib
-DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-I/home/jfa/subversion-1.0.2/subversion/bindings/swig
-I/home/jfa/subversion-1.0.2/subversion/include
-I/usr/local/lib/swig1.3 -DSVN_SWIG_VERSION=103019
-I/usr/local/apache2/include -I/usr/local/apache2/include
-I/usr/local/BerkeleyDB.4.2/include -I/usr/local/include
-I/home/jfa/subversion-1.0.2/subversion/bindings/swig
-I/home/jfa/subversion-1.0.2/subversion/include
-I/usr/local/lib/swig1.3 -DSVN_SWIG_VERSION=103019
-I/usr/local/apache2/include -I/usr/local/apache2/include
-I/usr/local/BerkeleyDB.4.2/include -I/usr/local/include
-I/usr/local/include/python2.3 -prefer-pic -c -o
subversion/bindings/swig/python/svn_client.lo
subversion/bindings/swig/python/svn_client.c
In file included from /usr/local/include/python2.3/stringobject.h:10,
                 from /usr/local/include/python2.3/Python.h:83,
                 from subversion/bindings/swig/python/svn_client.c:14:
/opt/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include/stdarg.h:170:
warning: redefinition of `va_list'
/usr/include/stdio.h:120: warning: `va_list' previously declared here
cd subversion/bindings/swig/python && /bin/bash
/home/jfa/subversion-1.0.2/libtool --silent --mode=link gcc -shared
-L/usr/local/lib -rpath /usr/local/lib/svn-python/libsvn
-avoid-version -module -o _client.la svn_client.lo -lswigpy
../../../../subversion/bindings/swig/libsvn_swig_py-1.la
../../../../subversion/libsvn_client/libsvn_client-1.la -lsocket

Then I ran »make install-swig-py« and I got a couple of these
warnings:

cd subversion/bindings/swig/python ; /bin/bash
/home/jfa/subversion-1.0.2/libtool --mode=install
/home/jfa/subversion-1.0.2/ac-helpers/install-sh -c _wc.la
/usr/local/lib/svn-python/libsvn/_wc.la
libtool: install: warning: relinking `_wc.la'
cd /home/jfa/subversion-1.0.2/subversion/bindings/swig/python;
/bin/bash /home/jfa/subversion-1.0.2/libtool --mode=relink gcc -shared
-L/usr/local/lib -rpath /usr/local/lib/svn-python/libsvn
-avoid-version -module -o _wc.la svn_wc.lo -lswigpy
../../../../subversion/bindings/swig/libsvn_swig_py-1.la
../../../../subversion/libsvn_wc/libsvn_wc-1.la -lsocket
/usr/ccs/bin/ld -G -h _wc.so -o .libs/_wc.so svn_wc.lo
-R/usr/local/lib
-L/home/jfa/subversion-1.0.2/subversion/libsvn_diff/.libs
-L/usr/local/apache2/lib
-L/home/jfa/subversion-1.0.2/subversion/libsvn_subr/.libs
-L/home/jfa/subversion-1.0.2/subversion/libsvn_delta/.libs
-L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/lib -lswigpy
-lsvn_swig_py-1 -lsvn_wc-1 -lsocket -lc
/home/jfa/subversion-1.0.2/ac-helpers/install-sh -c .libs/_wc.soT
/usr/local/lib/svn-python/libsvn/_wc.so
chmod +x /usr/local/lib/svn-python/libsvn/_wc.so
/home/jfa/subversion-1.0.2/ac-helpers/install-sh -c .libs/_wc.lai
/usr/local/lib/svn-python/libsvn/_wc.la
/home/jfa/subversion-1.0.2/ac-helpers/install-sh -c .libs/_wc.a
/usr/local/lib/svn-python/libsvn/_wc.a
ranlib /usr/local/lib/svn-python/libsvn/_wc.a
chmod 644 /usr/local/lib/svn-python/libsvn/_wc.a

And the errors remained when I tried to run viewcvs. I also get a
similar error when I run
python -c »from svn import client«

Btw, I got the warnings mentioned above from the start. They didn't
just occur now...

I hope these warnings mean something to someone :)

All help is very much appreciated...

-Johannes.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 21 10:51:57 2004

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.