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

Re: Python libsvn bindings not building properly

From: Nicholas Riley <njriley_at_uiuc.edu>
Date: 2003-05-31 23:56:26 CEST

On Wed, May 28, 2003 at 04:08:51PM -0500, cmpilato@collab.net wrote:
> Nicholas Riley <njriley@uiuc.edu> writes:
>
> > On Wed, May 28, 2003 at 03:54:36PM -0500, cmpilato@collab.net wrote:
> > > Nicholas Riley <njriley@uiuc.edu> writes:
> > >
> > > > > You seem to be missing all your .py wrappers. Try re-running
> > > > > ./autogen.sh && ./config.nice && make-swig-py -- there were changes to
> > > > > some of the core build components when these bindings changes were
> > > > > made.
> > > >
> > > > I've already done this, multiple times (assuming you mean 'make
> > > > swig-py' instead of 'make-swig-py'), with a make clean in there for
> > > > good measure.
> > >
> > > Hm... I don't get it, then. This all works for me.
> >
> > Any idea what I can do to troubleshoot? What stage of the build
> > should I be looking at?
>
> Man, I dunno. It looks like maybe the script ./build/copy-swig-py.sh
> does most of the installation work. Perhaps some debugging print()s
> in there?

Bingo. It's an issue because I am doing a vpath build - it's copying
out of {srcroot}/subversion/bindings/swig/python but not
{buildroot}/subversion/bindings/swig/python. This is what I get at
the end of the install:

../build/copy-swig-py.sh "/usr/local/bin/python" "/Users/nicholas/src/svn/ac-helpers/install-sh -c -m 644" "/Users/nicholas/src/svn/subversion/bindings/swig/python" "/usr/local/encap/subversion/lib/svn-python/libsvn" ; ../build/copy-swig-py.sh "/usr/local/bin/python" "/Users/nicholas/src/svn/ac-helpers/install-sh -c -m 644" "/Users/nicholas/src/svn/subversion/bindings/swig/python/svn" "/usr/local/encap/subversion/lib/svn-python/svn"

Running this additionally worked, though:

../build/copy-swig-py.sh "/usr/local/bin/python" "/Users/nicholas/src/svn/ac-helpers/install-sh -c -m 644" "subversion/bindings/swig/python" "/usr/local/encap/subversion/lib/svn-python/libsvn"

I brought this up on IRC and jerenkrantz appears to have fixed it in
r6103, and a DAV checkout problem I was having also disappeared. But
then I got caught by your changes in r6094. This is what I did to
rebuild:

  995 ./autogen.sh
  996 cd obj
  997 make clean && ./config.nice && emacs Makefile
  999 make
 1000 make swig-py && sudo make install && sudo make install-swig-py

but it seems even that is not enough, as I get:

>>> import svn.fs
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/encap/subversion/lib/svn-python/svn/fs.py", line 25, in ?
    import libsvn.fs
  File "/usr/local/encap/subversion/lib/svn-python/libsvn/fs.py", line 4, in ?
    import _fs
ImportError: Failure linking new module: : dyld: python Undefined symbols:
_svn_fs_revision_root_revision

I assume nuking the build directory will help, but it'd be nice if
'make clean' actually made clean, or if dependencies were tracked so I
didn't need to make clean at all.

-- 
=Nicholas Riley <njriley_at_uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley>
        Pablo Research Group, Department of Computer Science and
  Medical Scholars Program, University of Illinois at Urbana-Champaign
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 31 23:57:19 2003

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

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