By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,222 Members | 2,374 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,222 IT Pros & Developers. It's quick & easy.

Problem building Python bindings for subversion

P: n/a
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_VERSION=103025
-DSWIG_TABLE_TYPE=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:20:
/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:44:
/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

Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
You will probably get more help with this on subversion mailing list.

-Chris

On 28 Jun 2005 12:59:24 -0700, Arthur Chereau <go****@connes.org> wrote:
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_VERSION=103025
-DSWIG_TABLE_TYPE=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:20:
/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:44:
/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

--
Christopher Lambacher
la******@computer.org
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.