Problem building Python bindings for subversion

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Arthur Chereau

    Problem building Python bindings for subversion

    Hi,

    I'm trying to setup viewcvs to work with subversion 1.2.0 on Linux with
    Python 2.4.1. The last viewcvs (from CVS) needs subversion python
    bindings. I installed swig and built subversion from source with it.
    Everything works fine until I try to build the Python bindings.

    When I try "make swig-py" I get the following, Python related, error:

    # make swig-py
    /bin/sh /usr/src/subversion-1.2.0/libtool --tag=CC --silent
    --mode=compile gcc -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE= 500
    -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DSWIGPYTHON -g -O2 -g -O2
    -pthread -DNEON_ZLIB -DNEON_SSL
    -I/usr/src/subversion-1.2.0/subversion/bindings/swig
    -I/usr/src/subversion-1.2.0/subversion/include
    -I/usr/swig/share/swig/1.3.25 -DSVN_SWIG_VERSI ON=103025
    -DSWIG_TABLE_TYP E=subversion -I/usr/src/subversion-1.2.0/apr/include
    -I/usr/src/subversion-1.2.0/apr-util/include
    -I/usr/Python/include/python2.4
    -I/usr/src/subversion-1.2.0/subversion/bindings/swig/python/libsvn_swig_py
    -I./subversion/include -I./subversion
    -I/usr/src/subversion-1.2.0/neon/src -I/usr/subversion/include/neon
    -I/usr/src/subversion-1.2.0/apr/include
    -I/usr/src/subversion-1.2.0/apr-util/include -o
    subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.lo -c
    /usr/src/subversion-1.2.0/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c

    In file included from /usr/Python/include/python2.4/Python.h:8,
    from
    /usr/src/subversion-1.2.0/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c:2 0:
    /usr/Python/include/python2.4/pyconfig.h:844: warning: `_XOPEN_SOURCE'
    redefined
    *Initialization *:1: warning: this is the location of the previous
    definition
    In file included from
    /usr/src/subversion-1.2.0/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c:4 4:
    /usr/swig/share/swig/1.3.25/runtime.swg:28: macro `SWIG_GetModule ' used
    without args
    /usr/swig/share/swig/1.3.25/runtime.swg:34: macro `SWIG_GetModule ' used
    without args
    make: ***
    [subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.lo] Error 1

    Is there something I'm doing wrong ?

    Thanks,

    AC

  • Chris Lambacher

    #2
    Re: Problem building Python bindings for subversion

    You will probably get more help with this on subversion mailing list.

    -Chris

    On 28 Jun 2005 12:59:24 -0700, Arthur Chereau <google@connes. org> wrote:[color=blue]
    > Hi,
    >
    > I'm trying to setup viewcvs to work with subversion 1.2.0 on Linux with
    > Python 2.4.1. The last viewcvs (from CVS) needs subversion python
    > bindings. I installed swig and built subversion from source with it.
    > Everything works fine until I try to build the Python bindings.
    >
    > When I try "make swig-py" I get the following, Python related, error:
    >
    > # make swig-py
    > /bin/sh /usr/src/subversion-1.2.0/libtool --tag=CC --silent
    > --mode=compile gcc -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE= 500
    > -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DSWIGPYTHON -g -O2 -g -O2
    > -pthread -DNEON_ZLIB -DNEON_SSL
    > -I/usr/src/subversion-1.2.0/subversion/bindings/swig
    > -I/usr/src/subversion-1.2.0/subversion/include
    > -I/usr/swig/share/swig/1.3.25 -DSVN_SWIG_VERSI ON=103025
    > -DSWIG_TABLE_TYP E=subversion -I/usr/src/subversion-1.2.0/apr/include
    > -I/usr/src/subversion-1.2.0/apr-util/include
    > -I/usr/Python/include/python2.4
    > -I/usr/src/subversion-1.2.0/subversion/bindings/swig/python/libsvn_swig_py
    > -I./subversion/include -I./subversion
    > -I/usr/src/subversion-1.2.0/neon/src -I/usr/subversion/include/neon
    > -I/usr/src/subversion-1.2.0/apr/include
    > -I/usr/src/subversion-1.2.0/apr-util/include -o
    > subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.lo -c
    > /usr/src/subversion-1.2.0/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
    >
    > In file included from /usr/Python/include/python2.4/Python.h:8,
    > from
    > /usr/src/subversion-1.2.0/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c:2 0:
    > /usr/Python/include/python2.4/pyconfig.h:844: warning: `_XOPEN_SOURCE'
    > redefined
    > *Initialization *:1: warning: this is the location of the previous
    > definition
    > In file included from
    > /usr/src/subversion-1.2.0/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c:4 4:
    > /usr/swig/share/swig/1.3.25/runtime.swg:28: macro `SWIG_GetModule ' used
    > without args
    > /usr/swig/share/swig/1.3.25/runtime.swg:34: macro `SWIG_GetModule ' used
    > without args
    > make: ***
    > [subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.lo] Error 1
    >
    > Is there something I'm doing wrong ?
    >
    > Thanks,
    >
    > AC
    >
    > --
    > http://mail.python.org/mailman/listinfo/python-list
    > [/color]


    --
    Christopher Lambacher
    lambacck@comput er.org

    Comment

    Working...