[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
fine.

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
    request.run_viewcvs()
  File "/ct/ctbuild/viewCvsDev/lib/viewcvs.py", line
258, in run_viewcvs
    import vclib.svn
  File
"/ct/ctbuild/viewCvsDev/lib/vclib/svn/__init__.py",
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
enough.

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
output.

  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
PERL=/usr/bin/perl5.8.0

  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)

<snip>

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

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:
-I/ct/ctapp/python241/include/python2.4
configure:23908: checking for compiling Python
extensions
configure:23917: result: gcc -fno-strict-aliasing
-DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
configure:23921: checking for linking Python
extensions
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
/ct/ctapp/python241/lib/python2.4/config/libpython2.4.a(sysmodule.o)
readlink 0x1a54
/ct/ctapp/python241/lib/python2.4/config/libpython2.4.a(sysmodule.o)
readlink 0x900
/ct/ctapp/python241/lib/python2.4/config/libpython2.4.a(getpath.o)
readlink 0xa10
/ct/ctapp/python241/lib/python2.4/config/libpython2.4.a(getpath.o)
readlink 0x2830
/ct/ctapp/python241/lib/python2.4/config/libpython2.4.a(posixmodule.o)
__muldi3 0x1450
/ct/ctapp/python241/lib/python2.4/config/libpython2.4.a(longobject.o)
ld: fatal: relocations remain against allocatable but
non-writable sections
collect2: ld returned 1 exit status
make: ***
[subversion/bindings/swig/python/libsvn_swig_py/libsvn_swig_py-1.la]
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,
Ed

                
____________________________________________________
Do you Yahoo!?
Never miss an Instant Message - Yahoo! Messenger for SMS
http://au.mobile.yahoo.com/mweb/index.html

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