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

Problems building Subversion for Solaris (sparc)

From: Mark Phippard <markphip_at_gmail.com>
Date: 2007-03-22 15:11:24 CET

A co-worker is trying to produce a Solaris build so we can make it available
as a free download on CollabNet. I believe he is attempting to do a static
build as that is what we have done for RHEL. He has been running into some
problems getting it to work with Apache, which I believe he has also built
and will be included in the package. Here is his message, does anyone have
any suggestions I can give him?

I compiled the Subversion Apache modules (mod_dav_svn, mod_authz_svn &
mod_dontdothat) as shared, similar to what we done for linux. Compilation
went well without any errors, but when I try to load the modules by starting
the Apache it throws me missing libraries. Every thing apart from these 3
modules are static. To solve this issue I tried to link these shared modules
with the static libraries that where missing, but it linking fails with
below message

"ld: fatal: relocations remain against allocatable but non-writable
sections"

I think this error happens because the linker is not able to relocate the
static libraries when it is linked to the shared libraries. I tried many gcc
options with no success.

This is how I tried to link.

[[[

gcc -shared -static-libgcc -Wl,-h -Wl,mod_dav_svn.so -o
.libs/mod_dav_svn.so .libs/version.o .libs/util.o .libs/update.o
.libs/repos.o .libs/replay.o .libs/mod_dav_svn.o .libs/merge.o .libs/log.o
.libs/lock.o .libs/liveprops.o .libs/file_revs.o .libs/deadprops.o
.libs/activity.o -L/opt/CollabNet_Subversion/lib
-lsvn_fs-1 -lsvn_subr-1 -lc -mcpu=ultrasparc -m64

]]]

Any idea ?????

I think the reason we are building static is so that we can install
everything, including Apache into a private folder and not have to otherwise
touch the system and what might be installed. This seems to work well in
our Linux builds.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
Received on Thu Mar 22 15:11:37 2007

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.