You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Matt Selsky <se...@columbia.edu> on 2006/01/27 04:10:46 UTC
Error building Python bindings on Solaris
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
Re: Error building Python bindings on Solaris
Posted by Matt Selsky <se...@columbia.edu>.
On Sat, Jan 28, 2006 at 10:38:25PM -0800, David James wrote:
> On 1/26/06, Matt Selsky <se...@columbia.edu> wrote:
> > 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":
> > [...]
> > ld: fatal: relocations remain against allocatable but non-writable sections
> > [...]
> > Solaris 9 (sparc)
> > gcc 4.0.2
> > Subversion 1.3.0
> > No Berkeley DB
>
> Hi Matt,
>
> Does the following patch help? This patch is supposed to fix building
> the Python bindings on Solaris, and will be included in Subversion
> 1.3.1. See
> http://svn.collab.net/viewcvs/svn/branches/1.3.x/build/get-py-info.py?rev=18156&p1=branches/1.3.x/build/get-py-info.py&p2=branches/1.3.x/build/get-py-info.py&r1=18155&r2=18156
Yes, it does. I did a "make distclean", reconfigured, recompiled, and
then everything worked great. Thanks!
--
Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Error building Python bindings on Solaris
Posted by David James <dj...@collab.net>.
On 1/26/06, Matt Selsky <se...@columbia.edu> wrote:
> 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":
> [...]
> ld: fatal: relocations remain against allocatable but non-writable sections
> [...]
> Solaris 9 (sparc)
> gcc 4.0.2
> Subversion 1.3.0
> No Berkeley DB
Hi Matt,
Does the following patch help? This patch is supposed to fix building
the Python bindings on Solaris, and will be included in Subversion
1.3.1. See
http://svn.collab.net/viewcvs/svn/branches/1.3.x/build/get-py-info.py?rev=18156&p1=branches/1.3.x/build/get-py-info.py&p2=branches/1.3.x/build/get-py-info.py&r1=18155&r2=18156
Cheers,
David
>
> 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?
--
David James -- http://www.cs.toronto.edu/~james
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org