[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Unable to build Subversion Python Library with SVN 1.3.0

From: Ed Hillmann <edhillmann_at_yahoo.com>
Date: 2006-01-10 00:39:31 CET

Hi all. I've recently upgraded my Subversion install
from SVN 1.2.3 to 1.3.0. I'm running it on a Solaris
box. I'm also using ViewCVS to display the SVN
repositories on out intranet server.

The build of 1.3.0 worked without an error. I was
able to restart our svnserve daemon, and the svn
client works fine. Our Tortoise clients can use it

However, when I attempt to use ViewCVS, I get:

An Exception Has Occurred
Python Traceback

Traceback (most recent call last):
  File "/ct/ctbuild/viewCvsDev/lib/viewcvs.py", line
3194, in main
  File "/ct/ctbuild/viewCvsDev/lib/viewcvs.py", line
258, in run_viewcvs
    import vclib.svn
line 27, in ?
    from svn import fs, repos, core, delta
ImportError: No module named svn

So, I forgot to build the SVN Python libraries. Fair

According to the INSTALL for SWIG Python....

Step 2: Build and Install Subversion.

  See Subversion's own INSTALL file for details.

  Make sure that Subversion's ./configure script sees
your installed SWIG!
  It tries to detect SWIG near the very end of its

  Also make sure that the configure script sees the
paths to the perl and/or
  python executable you used to configure SWIG as
above. If it does not then
  you can specify the correct path by adding
PYTHON=/path/to/python or
  PERL=/path/to/perl onto the command line for
configure. For example:
       ./configure PYTHON=/usr/bin/python2.2

  If Subversion's ./configure finds a SWIG that it's
happy with, then
  it will build special glue libraries to link svn to
the swig bindings:
    libsvn_swig_py.so (for Python)
    libsvn_swig_perl.so (for Perl)


I've specified by 1.3.24 Swig environment... from the

configure:23845: checking swig version
configure:23861: result: 1.3.24
configure:23887: Configuring python swig binding
configure:23890: checking for Python includes
configure:23899: result:
configure:23908: checking for compiling Python
configure:23917: result: gcc -fno-strict-aliasing
-DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
configure:23921: checking for linking Python
configure:23930: result: gcc -shared
-L/ct/ctapp/python241/lib/python2.4/config -lpython2.4
configure:23934: checking for linking Python libraries
configure:23943: result:
-L/ct/ctapp/python241/lib/python2.4/config -lpython2.4
configure:23949: checking for apr_int64_t Python/C API
format string
configure:24009: result: L

I run the make and make install, but I don't see the
libsvn_swig_py.so in my installation. So when I
attempt to run make-swigpy, I get a _lot of errors.
The last few lines are

vfprintf 0x1c60
readlink 0x1a54
readlink 0x900
readlink 0xa10
readlink 0x2830
__muldi3 0x1450
ld: fatal: relocations remain against allocatable but
non-writable sections
collect2: ld returned 1 exit status
make: ***
Error 1

I've tried updating to swig-1.3.27, but I get the same
thing. Am I missing something?

Thanks for any help,

Do you Yahoo!?
Never miss an Instant Message - Yahoo! Messenger for SMS

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 10 01:17:03 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.