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

[PATCH] Fix for libsvn_swig_py namespace issue on OS X

From: Nicholas Riley <njriley_at_uiuc.edu>
Date: 2002-12-12 19:48:09 CET

* build.conf
  (libsvn_swig_py): swigutil_py.h declares SWIG_NewPointerObj and
  SWIG_TypeQuery, and expects to find them at runtime in one of the
  loaded Subversion Python modules (_fs.so, _ra.so, etc.). This fails
  with Python 2.3 (and patched 2.2.x) on Mac OS X because they import
  Python modules into a private namespace. Link against libswigpy so
  libsvn_swig_py will have direct access to these functions. See
  <http://www.swig.org/Doc1.3/Advanced.html> for more information on
  this technique.

Index: build.conf
===================================================================
--- build.conf (revision 4103)
+++ build.conf (working copy)
@@ -233,7 +233,7 @@
 type = lib
 path = subversion/bindings/swig
 sources = swigutil_py.c
-libs = $(SVN_APRUTIL_LIBS) $(SVN_APR_LIBS)
+libs = $(SVN_APRUTIL_LIBS) $(SVN_APR_LIBS) -lswigpy
 install = swig-py-lib
 # need special build rule to include -DSWIGPYTHON
 custom = swig-py

-- 
=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 Thu Dec 12 19:48:54 2002

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.