Christopher Mann | 10 Mar 2006 10:15
Picon

SWIG bindings not makeing on Subversion 1.3.0, SWIG 1.3.28 or 1.3.24 and Python 2.4

Hi,

make swip-py, make swig-pl, make swig-rb don't work on my installation.
I'm using the .tar.gz form the 1.3.0 version off of subversion.tigris.org.
The compiler complains about a syntaxe error on a incorrectly defined
Macro SWIGRUNTIME on svn_clint.c in subversion/bindings/swig/python/.
I'm using SWIG 1.3.28 or 1.3.24 and Python 2.4 on a Debian Sarge.
Automake 1.9.

Here is the message (much too long to show in its entirety) :

/bin/sh /home/chris/loginst/subversion-1.3.0/libtool --tag=CC --silent
--mode=compile gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
-I/home/chris/loginst/subversion-1.3.0/subversion/bindings/swig
-I/home/chris/loginst/subversion-1.3.0/subversion/bindings/swig/include
-I/home/chris/loginst/subversion-1.3.0/subversion/bindings/swig/proxy
-I/home/chris/loginst/subversion-1.3.0/subversion/bindings/swig/proxy
-I/home/chris/loginst/subversion-1.3.0/subversion/include
-I/home/chris/loginst/subversion-1.3.0/apr/include
-I/home/chris/loginst/subversion-1.3.0/apr-util/include
-I/home/chris/loginst/subversion-1.3.0/subversion/bindings/swig
-I/home/chris/loginst/subversion-1.3.0/subversion/bindings/swig/include
-I/home/chris/loginst/subversion-1.3.0/subversion/bindings/swig/proxy
-I/home/chris/loginst/subversion-1.3.0/subversion/bindings/swig/proxy
-I/home/chris/loginst/subversion-1.3.0/subversion/include
-I/home/chris/loginst/subversion-1.3.0/apr/include
-I/home/chris/loginst/subversion-1.3.0/apr-util/include
-I/usr/include/python2.4
(Continue reading)

Peter Samuelson | 10 Mar 2006 22:31

Re: SWIG bindings not makeing on Subversion 1.3.0, SWIG 1.3.28 or 1.3.24 and Python 2.4


[Christopher Mann]
> make swip-py, make swig-pl, make swig-rb don't work on my
> installation.  I'm using the .tar.gz form the 1.3.0 version off of
> subversion.tigris.org.  The compiler complains about a syntaxe error
> on a incorrectly defined Macro SWIGRUNTIME on svn_clint.c in
> subversion/bindings/swig/python/.  I'm using SWIG 1.3.28 or 1.3.24
> and Python 2.4 on a Debian Sarge.  Automake 1.9.

swig 1.3.28 is not shipped with sarge, and python2.4 isn't the default.
It's pretty easy to throw the world into confusion by using both
/usr/bin/python2.4 and /usr/bin/python (or #!/usr/bin/env python, which
amounts to the same thing, python 2.3).

It is reported to me (though I haven't tried it) that our Debian
unstable package builds fine on sarge if you do the following:

  debian/rules:
    - comment out the ENABLE_JAVAHL := yes at the top
  debian/control:
    - remove the kaffe and junit stuff from the Build-Depends line
    - change two instances of "libneon25-dev" to "libneon24-dev"

Our current unstable package (1.3.0-2) isn't available on the mirrors
yet, due to factors beyond our control, but for now you can pull it
from http://p12n.org/tmp/svn/.

HTH,
Peter
(Continue reading)

Peter Samuelson | 10 Mar 2006 22:31

Re: SWIG bindings not makeing on Subversion 1.3.0, SWIG 1.3.28 or 1.3.24 and Python 2.4


[Christopher Mann]
> make swip-py, make swig-pl, make swig-rb don't work on my
> installation.  I'm using the .tar.gz form the 1.3.0 version off of
> subversion.tigris.org.  The compiler complains about a syntaxe error
> on a incorrectly defined Macro SWIGRUNTIME on svn_clint.c in
> subversion/bindings/swig/python/.  I'm using SWIG 1.3.28 or 1.3.24
> and Python 2.4 on a Debian Sarge.  Automake 1.9.

swig 1.3.28 is not shipped with sarge, and python2.4 isn't the default.
It's pretty easy to throw the world into confusion by using both
/usr/bin/python2.4 and /usr/bin/python (or #!/usr/bin/env python, which
amounts to the same thing, python 2.3).

It is reported to me (though I haven't tried it) that our Debian
unstable package builds fine on sarge if you do the following:

  debian/rules:
    - comment out the ENABLE_JAVAHL := yes at the top
  debian/control:
    - remove the kaffe and junit stuff from the Build-Depends line
    - change two instances of "libneon25-dev" to "libneon24-dev"

Our current unstable package (1.3.0-2) isn't available on the mirrors
yet, due to factors beyond our control, but for now you can pull it
from http://p12n.org/tmp/svn/.

HTH,
Peter
(Continue reading)

Christopher Mann | 11 Mar 2006 08:30
Picon

Re: SWIG bindings not makeing on Subversion 1.3.0, SWIG 1.3.28 or 1.3.24 and Python 2.4

The Debian "unstable" subversion package is 1.2.3 [1]

[1] 
http://packages.debian.org/cgi-bin/search_packages.pl?keywords=subversion&searchon=names&subword=1&version=unstable&release=all

I was able to compile the swig bindings (albiet with some warnings) when 
using the 1.2.3 source.

The problem is that the 1.2.3 source compiles the swig bindings just 
fine whereas the 1.3.0 does not.  Il also tried 1.3.0 with SWIG 1.3.24 
and Python 2.3, PERL, RUBY with the same results : works for 1.2.3 but 
not for 1.3.0.

Many thanks,

Chris

Should I enter this as a bug ?

Peter Samuelson a écrit :
> [Christopher Mann]
>   
>> make swip-py, make swig-pl, make swig-rb don't work on my
>> installation.  I'm using the .tar.gz form the 1.3.0 version off of
>> subversion.tigris.org.  The compiler complains about a syntaxe error
>> on a incorrectly defined Macro SWIGRUNTIME on svn_clint.c in
>> subversion/bindings/swig/python/.  I'm using SWIG 1.3.28 or 1.3.24
>> and Python 2.4 on a Debian Sarge.  Automake 1.9.
>>     
>
(Continue reading)

Christopher Mann | 11 Mar 2006 08:30
Picon

Re: SWIG bindings not makeing on Subversion 1.3.0, SWIG 1.3.28 or 1.3.24 and Python 2.4

The Debian "unstable" subversion package is 1.2.3 [1]

[1] 
http://packages.debian.org/cgi-bin/search_packages.pl?keywords=subversion&searchon=names&subword=1&version=unstable&release=all

I was able to compile the swig bindings (albiet with some warnings) when 
using the 1.2.3 source.

The problem is that the 1.2.3 source compiles the swig bindings just 
fine whereas the 1.3.0 does not.  Il also tried 1.3.0 with SWIG 1.3.24 
and Python 2.3, PERL, RUBY with the same results : works for 1.2.3 but 
not for 1.3.0.

Many thanks,

Chris

Should I enter this as a bug ?

Peter Samuelson a écrit :
> [Christopher Mann]
>   
>> make swip-py, make swig-pl, make swig-rb don't work on my
>> installation.  I'm using the .tar.gz form the 1.3.0 version off of
>> subversion.tigris.org.  The compiler complains about a syntaxe error
>> on a incorrectly defined Macro SWIGRUNTIME on svn_clint.c in
>> subversion/bindings/swig/python/.  I'm using SWIG 1.3.28 or 1.3.24
>> and Python 2.4 on a Debian Sarge.  Automake 1.9.
>>     
>
(Continue reading)

David James | 21 Apr 2006 08:50
Favicon

Re: SWIG bindings not makeing on Subversion 1.3.0, SWIG 1.3.28 or 1.3.24 and Python 2.4

On 3/11/06, Christopher Mann <contact <at> mann.fr> wrote:
> The problem is that the 1.2.3 source compiles the swig bindings just
> fine whereas the 1.3.0 does not.  Il also tried 1.3.0 with SWIG 1.3.24
> and Python 2.3, PERL, RUBY with the same results : works for 1.2.3 but
> not for 1.3.0.

Subversion 1.3.0 works fine with SWIG 1.3.24. Could you provide us
with a little bit more information about how you are building
Subversion? Please start from a fresh tarball and
list all the commands you run from there.

Cheers,

David

--
David James -- http://www.cs.toronto.edu/~james
Peter Samuelson | 21 Apr 2006 09:30

Re: SWIG bindings not makeing on Subversion 1.3.0, SWIG 1.3.28 or 1.3.24 and Python 2.4


[David James]
> Subversion 1.3.0 works fine with SWIG 1.3.24. Could you provide us
> with a little bit more information about how you are building
> Subversion? Please start from a fresh tarball and list all the
> commands you run from there.

Christopher's message dates back not long before I added

  make extraclean-swig-pl extraclean-swig-py extraclean-swig-rb

to the Debian build process.  My log message from 2006-03-15 mentions
you, even: "David also mentions a need for extraclean-swig-{pl,py,rb}."

Christopher, if you try the current (1.3.1-x) Debian source package,
with my previous instructions, it might work a bit better.

Peter
Peter Samuelson | 21 Apr 2006 09:30

Re: SWIG bindings not makeing on Subversion 1.3.0, SWIG 1.3.28 or 1.3.24 and Python 2.4


[David James]
> Subversion 1.3.0 works fine with SWIG 1.3.24. Could you provide us
> with a little bit more information about how you are building
> Subversion? Please start from a fresh tarball and list all the
> commands you run from there.

Christopher's message dates back not long before I added

  make extraclean-swig-pl extraclean-swig-py extraclean-swig-rb

to the Debian build process.  My log message from 2006-03-15 mentions
you, even: "David also mentions a need for extraclean-swig-{pl,py,rb}."

Christopher, if you try the current (1.3.1-x) Debian source package,
with my previous instructions, it might work a bit better.

Peter
David James | 21 Apr 2006 08:50
Favicon

Re: SWIG bindings not makeing on Subversion 1.3.0, SWIG 1.3.28 or 1.3.24 and Python 2.4

On 3/11/06, Christopher Mann <contact <at> mann.fr> wrote:
> The problem is that the 1.2.3 source compiles the swig bindings just
> fine whereas the 1.3.0 does not.  Il also tried 1.3.0 with SWIG 1.3.24
> and Python 2.3, PERL, RUBY with the same results : works for 1.2.3 but
> not for 1.3.0.

Subversion 1.3.0 works fine with SWIG 1.3.24. Could you provide us
with a little bit more information about how you are building
Subversion? Please start from a fresh tarball and
list all the commands you run from there.

Cheers,

David

--
David James -- http://www.cs.toronto.edu/~james

Gmane