467,114 Members | 1,265 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,114 developers. It's quick & easy.

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_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
  • viewed: 2640
Share:
1 Reply
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.

Similar topics

5 posts views Thread by Rene Olsthoorn | last post: by
9 posts views Thread by John Smith | last post: by
1 post views Thread by J. Jeffrey Close | last post: by
78 posts views Thread by Josiah Manson | last post: by
2 posts views Thread by riklaunim@gmail.com | last post: by
20 posts views Thread by Thorsten Kampe | last post: by
3 posts views Thread by Mike B | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.