You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Florian Schulze <fl...@gmx.net> on 2003/03/30 17:44:20 UTC
cant compile swig-py bindings
Hi!
I'm trying to compile the python bindings for svn, but I can't get it
working. svn itself compiles without problems and runs perfectly fine.
I tried 20.1, 19.1 and current CVS, but I always get the same error (see
below).
I'm using SuSE Linux 8.1, python 2.2.1, swig 1.3.19, libtool 1.4.2, apache
2.0.44, neon 0.23.7 and berkley db 4.0.14.
Florian
linux:~/subversion-0.19.1 # linux:~/subversion-0.19.1 # make swig-py
-bash: linux:~/subversion-0.19.1: No such file or directory
linux:~/subversion-0.19.1 # /usr/local/bin/swig -c -python -noproxy -
I/root/subversion-0.19.1/subversion/bindings/swig -I/root/subversion-
0.19.1/subversion/include -I/root/subversion-0.19.1/apr/include -o
subversion/bindings/swig/python/svn_client.c
./subversion/bindings/swig/svn_client.i
/bin/sh /root/subversion-0.19.1/libtool --silent --mode=compile -
I/root/subversion-0.19.1/subversion/bindings/swig -I/root/subversion-
0.19.1/subversion/include -I/root/subversion-0.19.1/apr/include -prefer-
pic -c -o subversion/bindings/swig/python/svn_client.lo
subversion/bindings/swig/python/svn_client.c
libtool: unrecognized option `-I/root/subversion-
0.19.1/subversion/bindings/swig'
Try `libtool --help' for more information.
make: *** [subversion/bindings/swig/python/svn_client.lo] Error 1
linux:~/subversion-0.19.1 # /bin/sh /root/subversion-0.19.1/libtool --
silent --mode=compile -I/root/subversion-0.19.1/subversion/bindings/swig -
I/root/subversion-0.19.1/subversion/include -I/root/subversion-
0.19.1/apr/include -prefer-pic -c -o
subversion/bindings/swig/python/svn_client.lo
subversion/bindings/swig/python/svn_client.c
libtool: unrecognized option `-I/root/subversion-
0.19.1/subversion/bindings/swig'
Try `libtool --help' for more information.
linux:~/subversion-0.19.1 # libtool: unrecognized option `-
I/root/subversion-0.19.1/subversion/bindings/swig'
> Try `libtool --help' for more information.
> make: *** [subversion/bindings/swig/python/svn_client.lo] Error 1
> linux:~/subversion-0.19.1 #
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: SOLVED and python bindings a bit weird (was: Re: cant compile swig-py bindings)
Posted by Florian Schulze <fl...@gmx.net>.
I used SWIG-1.3.17, I had no luck with 1.3.16, new could work but I didn't
try it. You also have to install the python-devel package or it can't find
out how to compile python extensions. The rest is like in the
documentation, you should read all INSTALL files, for example the one in
subversion/bindings/swig.
Florian
On 31 Mar 2003 00:52:21 +0200, Tomek Meka <tm...@gmx.net> wrote:
> On Mon, 2003-03-31 at 00:29, Florian Schulze wrote:
>> Ok, I got them to compile, it was my fault.
> How did you do it? I get the same error, and have no idea, what to do. I
> also compile svn without any errors, but after executing make swig-py I
> get:
> [tomek@dhcppc0 subversion-0.20.1]$ make swig-py
> /bin/sh /home/tomek/sources/subversion-0.20.1/libtool --silent
> --mode=compile -I/home/tomek/sources/subversion-
> 0.20.1/subversion/bindings/swig
> -I/home/tomek/sources/subversion-0.20.1/subversion/include
> -I/home/tomek/sources/subversion-0.20.1/apr/include -prefer-pic -c -o
> subversion/bindings/swig/python/svn_client.lo
> subversion/bindings/swig/python/svn_client.c
> libtool: unrecognized option
> `-I/home/tomek/sources/subversion-0.20.1/subversion/bindings/swig'
> Try `libtool --help' for more information.
> make: *** [subversion/bindings/swig/python/svn_client.lo] Error 1
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: SOLVED and python bindings a bit weird (was: Re: cant compile
swig-py bindings)
Posted by Tomek Meka <tm...@gmx.net>.
On Mon, 2003-03-31 at 00:29, Florian Schulze wrote:
> Ok, I got them to compile, it was my fault.
How did you do it? I get the same error, and have no idea, what to do. I
also compile svn without any errors, but after executing make swig-py I
get:
[tomek@dhcppc0 subversion-0.20.1]$ make swig-py
/bin/sh /home/tomek/sources/subversion-0.20.1/libtool --silent
--mode=compile
-I/home/tomek/sources/subversion-0.20.1/subversion/bindings/swig
-I/home/tomek/sources/subversion-0.20.1/subversion/include
-I/home/tomek/sources/subversion-0.20.1/apr/include -prefer-pic -c -o
subversion/bindings/swig/python/svn_client.lo
subversion/bindings/swig/python/svn_client.c
libtool: unrecognized option
`-I/home/tomek/sources/subversion-0.20.1/subversion/bindings/swig'
Try `libtool --help' for more information.
make: *** [subversion/bindings/swig/python/svn_client.lo] Error 1
> > Hi!
> >
> > I'm trying to compile the python bindings for svn, but I can't get it
> > working. svn itself compiles without problems and runs perfectly fine.
> > I tried 20.1, 19.1 and current CVS, but I always get the same error (see
> > below).
> > I'm using SuSE Linux 8.1, python 2.2.1, swig 1.3.19, libtool 1.4.2,
> > apache 2.0.44, neon 0.23.7 and berkley db 4.0.14.
> >
> > Florian
> >
> > linux:~/subversion-0.19.1 # linux:~/subversion-0.19.1 # make swig-py
> > -bash: linux:~/subversion-0.19.1: No such file or directory
> > linux:~/subversion-0.19.1 # /usr/local/bin/swig -c -python -noproxy -
> > I/root/subversion-0.19.1/subversion/bindings/swig -I/root/subversion-
> > 0.19.1/subversion/include -I/root/subversion-0.19.1/apr/include -o
> > subversion/bindings/swig/python/svn_client.c
> > ./subversion/bindings/swig/svn_client.i
> > /bin/sh /root/subversion-0.19.1/libtool --silent --mode=compile -
> > I/root/subversion-0.19.1/subversion/bindings/swig -I/root/subversion-
> > 0.19.1/subversion/include -I/root/subversion-0.19.1/apr/include -
> > prefer-pic -c -o subversion/bindings/swig/python/svn_client.lo
> > subversion/bindings/swig/python/svn_client.c
> > libtool: unrecognized option `-I/root/subversion-
> > 0.19.1/subversion/bindings/swig'
> > Try `libtool --help' for more information.
> > make: *** [subversion/bindings/swig/python/svn_client.lo] Error 1
> > linux:~/subversion-0.19.1 # /bin/sh /root/subversion-0.19.1/libtool --
> > silent --mode=compile -I/root/subversion-0.19.1/subversion/bindings/swig
> > - I/root/subversion-0.19.1/subversion/include -I/root/subversion-
> > 0.19.1/apr/include -prefer-pic -c -o
> > subversion/bindings/swig/python/svn_client.lo
> > subversion/bindings/swig/python/svn_client.c
> > libtool: unrecognized option `-I/root/subversion-
> > 0.19.1/subversion/bindings/swig'
> > Try `libtool --help' for more information.
> > linux:~/subversion-0.19.1 # libtool: unrecognized option `-
> > I/root/subversion-0.19.1/subversion/bindings/swig'
> >> Try `libtool --help' for more information.
> >> make: *** [subversion/bindings/swig/python/svn_client.lo] Error 1
> >> linux:~/subversion-0.19.1 #
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: dev-help@subversion.tigris.org
> >
> >
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
SOLVED and python bindings a bit weird (was: Re: cant compile swig-py bindings)
Posted by Florian Schulze <fl...@gmx.net>.
Ok, I got them to compile, it was my fault.
I get the following error with several scripts:
linux:~/subversion-0.20.1/tools/examples # python svnlook.py
/usr/local/svn/repos1/ tree
python: subversion/libsvn_subr/path.c:148: svn_path_join: Assertion
`is_canonical (base, blen)' failed.
Aborted
After some trial and error I discovered the problem, the call should be:
python svnlook.py /usr/local/svn/repos1 tree
Without the leading /, maybe this should be checked instead of throwing an
assert.
It's also not clear where the bindings are installed, in IRC I got the tip
to use
PYTHONPATH=/usr/local/lib/svn-python ./svnlook.py .....
Maybe this should be in the readme or install file, if it's there then it
should be placed more prominently as I didn't see it.
Florian
On Sun, 30 Mar 2003 19:44:20 +0200, Florian Schulze
<fl...@gmx.net> wrote:
> Hi!
>
> I'm trying to compile the python bindings for svn, but I can't get it
> working. svn itself compiles without problems and runs perfectly fine.
> I tried 20.1, 19.1 and current CVS, but I always get the same error (see
> below).
> I'm using SuSE Linux 8.1, python 2.2.1, swig 1.3.19, libtool 1.4.2,
> apache 2.0.44, neon 0.23.7 and berkley db 4.0.14.
>
> Florian
>
> linux:~/subversion-0.19.1 # linux:~/subversion-0.19.1 # make swig-py
> -bash: linux:~/subversion-0.19.1: No such file or directory
> linux:~/subversion-0.19.1 # /usr/local/bin/swig -c -python -noproxy -
> I/root/subversion-0.19.1/subversion/bindings/swig -I/root/subversion-
> 0.19.1/subversion/include -I/root/subversion-0.19.1/apr/include -o
> subversion/bindings/swig/python/svn_client.c
> ./subversion/bindings/swig/svn_client.i
> /bin/sh /root/subversion-0.19.1/libtool --silent --mode=compile -
> I/root/subversion-0.19.1/subversion/bindings/swig -I/root/subversion-
> 0.19.1/subversion/include -I/root/subversion-0.19.1/apr/include -
> prefer-pic -c -o subversion/bindings/swig/python/svn_client.lo
> subversion/bindings/swig/python/svn_client.c
> libtool: unrecognized option `-I/root/subversion-
> 0.19.1/subversion/bindings/swig'
> Try `libtool --help' for more information.
> make: *** [subversion/bindings/swig/python/svn_client.lo] Error 1
> linux:~/subversion-0.19.1 # /bin/sh /root/subversion-0.19.1/libtool --
> silent --mode=compile -I/root/subversion-0.19.1/subversion/bindings/swig
> - I/root/subversion-0.19.1/subversion/include -I/root/subversion-
> 0.19.1/apr/include -prefer-pic -c -o
> subversion/bindings/swig/python/svn_client.lo
> subversion/bindings/swig/python/svn_client.c
> libtool: unrecognized option `-I/root/subversion-
> 0.19.1/subversion/bindings/swig'
> Try `libtool --help' for more information.
> linux:~/subversion-0.19.1 # libtool: unrecognized option `-
> I/root/subversion-0.19.1/subversion/bindings/swig'
>> Try `libtool --help' for more information.
>> make: *** [subversion/bindings/swig/python/svn_client.lo] Error 1
>> linux:~/subversion-0.19.1 #
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org