You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Christopher Mann <co...@mann.fr> on 2006/03/10 09:15:46 UTC

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
-I/home/chris/loginst/subversion-1.3.0/subversion/bindings/swig/python/libsvn_swig_py 

-prefer-pic -c -o subversion/bindings/swig/python/svn_client.lo
subversion/bindings/swig/python/svn_client.c
In file included from /usr/include/python2.4/Python.h:8,
                 from subversion/bindings/swig/python/svn_client.c:22:
/usr/include/python2.4/pyconfig.h:841:1: warning: "_XOPEN_SOURCE" redefined
<command line>:8:1: warning: this is the location of the previous definition
subversion/bindings/swig/python/svn_client.c:111: error: syntax error
before "int"
subversion/bindings/swig/python/svn_client.c:126: error: syntax error
before "int"
subversion/bindings/swig/python/svn_client.c:145: error: syntax error
before "int"
subversion/bindings/swig/python/svn_client.c:186: error: syntax error
before "swig_cast_info"
subversion/bindings/swig/python/svn_client.c:192: error: syntax error
before "swig_cast_info"
subversion/bindings/swig/python/svn_client.c:200: error: syntax error
before "SWIGINLINE"
subversion/bindings/swig/python/svn_client.c:200: error: syntax error
before "void"
subversion/bindings/swig/python/svn_client.c:208: error: syntax error
before "swig_type_info"
subversion/bindings/swig/python/svn_client.c:222: error: syntax error
before "SWIGINLINE"
subversion/bindings/swig/python/svn_client.c:222: error: syntax error
before "const"
subversion/bindings/swig/python/svn_client.c:231: error: syntax error
before "const"
subversion/bindings/swig/python/svn_client.c:251: error: syntax error
before "void"
subversion/bindings/swig/python/svn_client.c:274: error: syntax error
before "swig_type_info"
subversion/bindings/swig/python/svn_client.c:319: error: syntax error
before "swig_type_info"
subversion/bindings/swig/python/svn_client.c:349: error: syntax error
before "char"
subversion/bindings/swig/python/svn_client.c:365: error: syntax error
before "const"
subversion/bindings/swig/python/svn_client.c:393: error: syntax error
before "char"
subversion/bindings/swig/python/svn_client.c:404: error: syntax error
before "const"
subversion/bindings/swig/python/svn_client.c:417: error: syntax error
before "char"
subversion/bindings/swig/python/svn_client.c:432: error: syntax error
before "const"
subversion/bindings/swig/python/svn_client.c: In function
`SWIG_TypeRegister':
subversion/bindings/swig/python/svn_client.c:493: warning: implicit
declaration of function `SWIG_TypeRegisterTL'
subversion/bindings/swig/python/svn_client.c:493: warning: return makes
pointer from integer without a cast
subversion/bindings/swig/python/svn_client.c: In function `SWIG_TypeQuery':
subversion/bindings/swig/python/svn_client.c:499: warning: implicit
declaration of function `SWIG_TypeQueryTL'
subversion/bindings/swig/python/svn_client.c:499: warning: return makes
pointer from integer without a cast
subversion/bindings/swig/python/svn_client.c: At top level:
subversion/bindings/swig/python/svn_client.c:504: error: redefinition of
`SWIG_TypeClientData'
subversion/bindings/swig/python/svn_client.c:252: error:
`SWIG_TypeClientData' previously defined here
subversion/bindings/swig/python/svn_client.c:504: warning:
`SWIG_TypeClientData' was declared `extern' and later `static'
subversion/bindings/swig/python/svn_client.c: In function
`SWIG_TypeClientData':
subversion/bindings/swig/python/svn_client.c:505: warning: implicit
declaration of function `SWIG_TypeClientDataTL'
subversion/bindings/swig/python/svn_client.c: In function
`SWIG_PropagateClientData':
subversion/bindings/swig/python/svn_client.c:515: warning: implicit
declaration of function `SWIG_PropagateClientDataTL'
subversion/bindings/swig/python/svn_client.c: At top level:
subversion/bindings/swig/python/svn_client.c:850: error: syntax error
before "void"
subversion/bindings/swig/python/svn_client.c:856: error: syntax error
before "const"
subversion/bindings/swig/python/svn_client.c:862: error: syntax error
before "int"
subversion/bindings/swig/python/svn_client.c:1015: error: syntax error
before "const"
subversion/bindings/swig/python/svn_client.c:1024: error: syntax error
before "const"
subversion/bindings/swig/python/svn_client.c:1030: error: syntax error
before "int"
subversion/bindings/swig/python/svn_client.c:1090: error: syntax error
before "void"
subversion/bindings/swig/python/svn_client.c:19293: warning:
initialization from incompatible pointer type
subversion/bindings/swig/python/svn_client.c:19293: warning: excess
elements in struct initializer
subversion/bindings/swig/python/svn_client.c:19293: warning: (near
initialization for `_swigt__p_svn_io_dirent_t[0]')
subversion/bindings/swig/python/svn_client.c:19293: warning: excess
elements in struct initializer
subversion/bindings/swig/python/svn_client.c:19293: warning: (near
initialization for `_swigt__p_svn_io_dirent_t[0]')
subversion/bindings/swig/python/svn_client.c:19293: warning: excess
elements in struct initializer
subversion/bindings/swig/python/svn_client.c:19293: warning: (near
initialization for `_swigt__p_svn_io_dirent_t[1]')
subversion/bindings/swig/python/svn_client.c:19293: warning: excess
elements in struct initializer
subversion/bindings/swig/python/svn_client.c:19293: warning: (near
initialization for `_swigt__p_svn_io_dirent_t[1]')
subversion/bindings/swig/python/svn_client.c:19293: warning: excess
elements in struct initializer
subversion/bindings/swig/python/svn_client.c:19293: warning: (near
initialization for `_swigt__p_svn_io_dirent_t[2]')
subversion/bindings/swig/python/svn_client.c:19293: warning: excess
elements in struct initializer
subversion/bindings/swig/python/svn_client.c:19293: warning: (near
initialization for `_swigt__p_svn_io_dirent_t[2]')
...
subversion/bindings/swig/python/svn_client.c:19299: warning: excess
elements in struct initializer
subversion/bindings/swig/python/svn_client.c:19299: warning: (near
initialization for
`_swigt__p_f_p_void_p_q_const__char_p_struct_svn_wc_status_t__void[2]')
subversion/bindings/swig/python/svn_client.c:19300: warning:
initialization from incompatible pointer type
subversion/bindings/swig/python/svn_client.c:19300: warning: excess
elements in struct initializer
subversion/bindings/swig/python/svn_client.c:19300: warning: (near
initialization for
`_swigt__p_f_p_apr_getopt_t_p_void_p_apr_pool_t__p_svn_error_t[0]')
subversion/bindings/swig/python/svn_client.c:19300: warning: excess
elements in struct initializer
subversion/bindings/swig/python/svn_client.c:19300: warning: (near
initialization for
`_swigt__p_f_p_apr_getopt_t_p_void_p_apr_pool_t__p_svn_error_t[0]')
...
subversion/bindings/swig/python/svn_client.c:19302: warning: (near
initialization for `_swigt__size_t[1]')
subversion/bindings/swig/python/svn_client.c:19302: warning: excess
elements in struct initializer
subversion/bindings/swig/python/svn_client.c:19302: warning: (near
initialization for `_swigt__size_t[2]')
subversion/bindings/swig/python/svn_client.c:19302: warning: excess
elements in struct initializer
subversion/bindings/swig/python/svn_client.c:19302: warning: (near
initialization for `_swigt__size_t[2]')
subversion/bindings/swig/python/svn_client.c:19303: warning:
initialization from incompatible pointer type



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

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

Posted by Peter Samuelson <pe...@p12n.org>.
[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

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

Posted by Peter Samuelson <pe...@p12n.org>.
[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

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

Posted by David James <dj...@collab.net>.
On 3/11/06, Christopher Mann <co...@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

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


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

Posted by David James <dj...@collab.net>.
On 3/11/06, Christopher Mann <co...@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

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


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

Posted by Dave Abrahams <da...@boost-consulting.com>.
Christopher Mann <contact <at> mann.fr> writes:

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

Yes, please!!!

--
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com


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

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

Posted by Christopher Mann <co...@mann.fr>.
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.
>>     
>
> 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
>   


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

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

Posted by Christopher Mann <co...@mann.fr>.
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.
>>     
>
> 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
>   


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

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

Posted by Peter Samuelson <pe...@p12n.org>.
[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

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

Posted by Peter Samuelson <pe...@p12n.org>.
[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