Hello,
I also have problems trying to get ViewCVS to work - even getting the
Python bindings. There seems to be something strange going on with my
libtool. First, when I do "make swig-py", I get:
/usr/local/bin/swig -c -python -I/root/subversion-0.31.0/subversion/
bindings/swig -I/root/subversion-0.31.0/subversion/include -I/root/
subversion-0.31.0/apr/include -I/usr/local/include/python2.3 -o
subversion/bindings/swig/python/svn_client.c ./subversion/bindings/swig
/svn_client.i
/root/subversion-0.31.0/subversion/bindings/swig/svn_types.i:295:
Warning(453): Can't apply (unsigned char digest[ANY]). No typemaps are
defined.
/bin/sh /root/subversion-0.31.0/libtool --silent --mode=compile -
DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -I/root/subversion-0.31.0/subversion/bindings/swig -I/
root/subversion-0.31.0/subversion/include -I/root/subversion-0.31.0/apr
/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
libtool: unrecognized option `-DLINUX=2'
Try `libtool --help' for more information.
make: *** [subversion/bindings/swig/python/svn_client.lo] Error 1
Nota bene that this is the libtool binary which sits in my subversion-
0.31.0 directory:
pc1:~/subversion-0.31.0 # ./libtool --version
ltmain.sh (GNU libtool) 1.4.3 (1.922.2.111 2002/10/23 02:54:36)
If I do the compile it by hand, it works:
pc1:~/subversion-0.31.0 # gcc -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=
500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I/root/subversion-
0.31.0/subversion/bindings/swig -I/root/subversion-0.31.0/subversion/
include/ -I/root/subversion-0.31.0/apr/include -I/usr/local/include/
python2.3 -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/Python.h:8,
from subversion/bindings/swig/python/svn_client.c:14:
/usr/local/include/python2.3/pyconfig.h:859: warning: `_XOPEN_SOURCE'
redefined
*Initialization*:1: warning: this is the location of the previous
definition
I then try to make swig-py again:
cd subversion/bindings/swig/python && /bin/sh /root/subversion-0.31.0/
libtool --silent --mode=link -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 -lz
libtool: unrecognized option `-rpath'
Try `libtool --help' for more information.
make: *** [subversion/bindings/swig/python/_client.la] Error 1
I _tried_ linking it by hand, but got:
pc1:~/subversion-0.31.0/subversion/bindings/swig/python # ld -o
_client.la svn_client.lo -lswigpy ../libsvn_swig_py-1.la ../../../
libsvn_client/libsvn_client-1.la -lz
../libsvn_swig_py-1.la: file not recognized: File format not recognized
And I'm told:
pc1:~/subversion-0.31.0 # file subversion/libsvn_client/libsvn_client-
1.la
subversion/libsvn_client/libsvn_client-1.la: ASCII English text, with
very long lines
I have to give up at this point.
I'm using gcc 2.95.3 on a SuSE Linux 7.3 system.
Any help?
Thanks,
Sander
> Shlomi Fish wrote:
> > Hi!
> >
> > I'm trying to install ViewCVS for Subversion and as such need the
> > Python
> > Bindings. However, install-swig-py gives me some errors:
> >
> > ...
> > /usr/bin/ld: cannot find -lsvn_swig_py-1
> > collect2: ld returned 1 exit status
> > ...
> > and similar ones for the other libraries.
>
> Does the subversion/bindings/swig/libsvn_swig_py-1.la library not
> exist? You
> can run "make swig-py-lib" to manually build it.
>
> > How do I resolve it?
> >
> > My setup is:
> > Subersion r7444
> > Mandrake Linux 9.1
> > Python 2.3-3mdk
>
> I'm not having any problems here with r7444, so I'd recommend that
> you try a
> clean build. In order to diagnose the problem you'd have to see how
> libtool
> is trying to link the libraries. Getting rid of the --silent
> parameter (by
> changing the LTFLAGS definition in the makefile) will cause this
> information
> to be outputted.
>
> - Russ
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 21 17:29:29 2003