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

Unable to link lib_swig_python

From: Daniel Rall <dlr_at_collab.net>
Date: 2006-03-20 22:49:17 CET

Hi Sigfred. r18156 (r17910 on trunk) is absolutely necessary for
linking libsvn_swig_py on Solaris 10 with Python 2.2.3 (and GCC), and
did not cause problems on any other platforms it was tested on. Can
you give the following patch a try on OpenBSD?

Also, if there's any way you'd be able to test this patch on OpenBSD
with an older version of Python (e.g. one which doesn't actually have
a libpython2.X.so, only libpython2.2.a like the Solaris 10 environment
which necessitated r18156), that would be fantastic.

Thanks, Dan

Index: build/get-py-info.py
===================================================================
--- build/get-py-info.py (revision 18966)
+++ build/get-py-info.py (working copy)
@@ -84,7 +84,7 @@
       sysconfig.get_config_var('PYTHON'))
     add_option_if_missing(options, "-bundle_loader", python_exe)

- elif sys.platform == 'cygwin':
+ elif sys.platform == 'cygwin' or sys.platform.startswith('openbsd'):

     # Add flags to build against the Python library (also necessary
     # for Darwin, but handled elsewhere).

On Sun, 19 Mar 2006, Sigfred Håversen wrote:
...
> There is a linking issue on OpenBSD with the commit r18156 of
> get-py-info.py.
> The "-L/usr/local/lib/python2.3/config -lpython2.3" is now missing, and this
> is an regression with respect to 1.3.0.
>
> http://svn.collab.net/viewvc/svn/branches/1.3.x/build/get-py-info.py?view=log
>
>
> Without the commit we have:
>
> [snip]
> checking for /usr/local/bin/python2.3... /usr/local/bin/python2.3
> checking for perl... /usr/bin/perl
> checking for ruby... /usr/local/bin/ruby
> checking for rb_hash_foreach()... yes
> checking swig version... 1.3.24
> configure: Configuring python swig binding
> checking for Python includes... -I/usr/local/include/python2.3
> checking for compiling Python extensions... cc -pthread
> -fno-strict-aliasing -DNDEBUG -O2 -pipe -DTHREAD_STACK_SIZE=0x100000 -fPIC
> -fPIC
> checking for linking Python extensions... cc -pthread -shared -fPIC
> -L/usr/ports/lang/python/2.3/w-python-2.3.5p3/Python-2.3.5
> -L/usr/local/lib/python2.3/config -lpython2.3
> checking for linking Python libraries...
> -L/usr/ports/lang/python/2.3/w-python-2.3.5p3/Python-2.3.5
> -L/usr/local/lib/python2.3/config -lpython2.3
> checking for apr_int64_t Python/C API format string... l
> [snip]
>
> With the commit:
>
> [snip]
> checking for /usr/local/bin/python2.3... /usr/local/bin/python2.3
> checking for perl... /usr/bin/perl
> checking for ruby... /usr/local/bin/ruby
> checking for rb_hash_foreach()... yes
> checking swig version... 1.3.24
> configure: Configuring python swig binding
> checking for Python includes... -I/usr/local/include/python2.3
> checking for compiling Python extensions... cc -pthread
> -fno-strict-aliasing -DNDEBUG -O2 -pipe -DTHREAD_STACK_SIZE=0x100000 -fPIC
> -fPIC
> checking for linking Python extensions... cc -pthread -shared -fPIC
> -L/usr/ports/lang/python/2.3/w-python-2.3.5p3/Python-2.3.5
> checking for linking Python libraries...
> -L/usr/ports/lang/python/2.3/w-python-2.3.5p3/Python-2.3.5
> checking for apr_int64_t Python/C API format string... l
> [snip]
>
>
> /Sigfred
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

-- 
Daniel Rall

  • application/pgp-signature attachment: stored
Received on Mon Mar 20 22:40:40 2006

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.