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

Error building Python bindings on Solaris

From: Matt Selsky <selsky_at_columbia.edu>
Date: 2006-01-27 05:10:46 CET

I'm trying to build the Python bindings for Subversion 1.3.0 on Solaris
and I get the following error during "make swig-py":

cd subversion/bindings/swig/python/libsvn_swig_py && /bin/bash /src/misc/subversion-1.3.0/obj/solaris9/libtool --tag=CC --silent --mode=link gcc -g -O2 -g -O2 -pthreads -D_LARGEFILE64_SOURCE -DNE_LFS -R/opt/local/lib -L/opt/local/lib -L/src/misc/subversion-1.3.0/obj/solaris9/apr-util/xml/expat/lib -rpath /opt/subversion-1.3.0/lib -L/opt/Python-2.4.2/lib/python2.4/config -lpython2.4 -o libsvn_swig_py-1.la swigutil_py.lo ../../../../../subversion/libsvn_subr/libsvn_subr-1.la ../../../../../subversion/libsvn_delta/libsvn_delta-1.la ../../../../../subversion/libsvn_wc/libsvn_wc-1.la /src/misc/subversion-1.3.0/obj/solaris9/apr-util/libaprutil-0.la -lgdbm /src/misc/subversion-1.3.0/obj/solaris9/apr-util/xml/expat/lib/libexpat.la /src/misc/subversion-1.3.0/obj/solaris9/apr/libapr-0.la -lsendfile -lrt -lm -lsocket -lnsl -lresolv -lpthread -ldl -lsocket -lz
Text relocation remains referenced
    against symbol offset in file
<unknown> 0x1f6c /opt/Python-2.4.2/lib/python2.4/config/libpython2.4.a(fileobject.o)
<unknown> 0x1f70 /opt/Python-2.4.2/lib/python2.4/config/libpython2.4.a(fileobject.o)
<unknown> 0x1f74 /opt/Python-2.4.2/lib/python2.4/config/libpython2.4.a(fileobject.o)
[...100's of lines...]
_exit 0x658 /opt/Python-2.4.2/lib/python2.4/config/libpython2.4.a(thread.o)
_exit 0x3594 /opt/Python-2.4.2/lib/python2.4/config/libpython2.4.a(posixmodule.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

A bit about my environment:

Solaris 9 (sparc)
gcc 4.0.2
Subversion 1.3.0
No Berkeley DB

My configure options:

CPPFLAGS='-I/opt/local/include' \
  LDFLAGS='-R/opt/local/lib -L/opt/local/lib' \
  ./configure \
        --prefix=/opt/subversion-1.3.0 \
        --without-berkeley-db \
        --with-apxs \
        --with-ssl \
        --with-zlib \
        --disable-mod-activation \
        --without-gssapi

Python is 2.4.2, built locally from source and compiled using gcc.

I was able to build Subversion 1.2.3's Python bindings against Python
2.4.2 just fine.

This URL seems to suggest that the problem is lack of -fPIC when
building:

http://www.scipy.org/mailinglists/mailman?fn=scipy-dev/2004-November/002512.html

I'm not sure if Python needs to be recompiled or if Subversion needs
-fPIC added?

Cheers,

-- 
Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jan 27 05:11:46 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.