You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Shlomi Fish <sh...@vipe.stud.technion.ac.il> on 2003/10/18 19:20:18 UTC

Problems installing the swig-py bindings

Hi!

I'm trying to install ViewCVS for Subversion and as such need the Python
Bindings. However, install-swig-py gives me some errors:

<<<
gcc -shared  svn_client.lo  -Wl,--rpath -Wl,/usr/local/apps/svn-repos/lib
-L/home/shlomi/progs/svn/SVN-From-Repos/subversion/subversion/libsvn_diff/.libs
-L/home/shlomi/progs/svn/SVN-From-Repos/subversion/subversion/libsvn_ra_svn/.libs
-L/usr/local/apps/neon//lib
-L/home/shlomi/progs/svn/SVN-From-Repos/subversion/subversion/libsvn_ra_dav/.libs
-L/home/shlomi/progs/svn/SVN-From-Repos/subversion/subversion/libsvn_fs/.libs
-L/home/shlomi/progs/svn/SVN-From-Repos/subversion/subversion/libsvn_repos/.libs
-L/usr/local/apps/db-4.0/lib
-L/home/shlomi/progs/svn/SVN-From-Repos/subversion/subversion/libsvn_ra_local/.libs
-L/home/shlomi/progs/svn/SVN-From-Repos/subversion/subversion/libsvn_ra/.libs
-L/home/shlomi/progs/svn/SVN-From-Repos/subversion/subversion/libsvn_wc/.libs
-L/usr/local/apps/apache2/lib
-L/home/shlomi/progs/svn/SVN-From-Repos/subversion/subversion/libsvn_subr/.libs
-L/home/shlomi/progs/svn/SVN-From-Repos/subversion/subversion/libsvn_delta/.libs
-L/usr/local/apps/db-4.0//lib -L/usr/lib -lswigpy
-L/usr/local/apps/svn-repos/lib -lsvn_swig_py-1 -lsvn_client-1
-Wl,-soname -Wl,_client.so -o .libs/_client.so
/usr/bin/ld: cannot find -lsvn_swig_py-1
collect2: ld returned 1 exit status
libtool: install: error: relink `_client.la' with the above command before
installing it
>>>

and similar ones for the other libraries.

How do I resolve it?

My setup is:
Subersion r7444
Mandrake Linux 9.1
Python 2.3-3mdk

Regards,

	Shlomi Fish



----------------------------------------------------------------------
Shlomi Fish        shlomif@vipe.technion.ac.il
Home Page:         http://t2.technion.ac.il/~shlomif/

An apple a day will keep a doctor away. Two apples a day will keep two
doctors away.

	Falk Fish

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Problems installing the swig-py bindings

Posted by Shlomi Fish <sh...@vipe.stud.technion.ac.il>.
On Sat, 18 Oct 2003, Russell Yanofsky wrote:

> 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.
>

Hmmm... after I did make install-swig-py-lib, it works perfectly. Thanks!

Regards,

	Shlomi Fish

> > 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
>



----------------------------------------------------------------------
Shlomi Fish        shlomif@vipe.technion.ac.il
Home Page:         http://t2.technion.ac.il/~shlomif/

An apple a day will keep a doctor away. Two apples a day will keep two
doctors away.

	Falk Fish

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Problems installing the swig-py bindings

Posted by Sander Stoks <sa...@stoks.nl>.
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

Re: Problems installing the swig-py bindings

Posted by Russell Yanofsky <re...@columbia.edu>.
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