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

More OpenSSL build adventures

From: Matthew Sanderson <matthew_at_formtrap.com>
Date: 2005-07-21 07:07:03 CEST

Hi guys,

This is mostly for Google's benefit: my own woes building OpenSSL in order
to build SVN.

When building OpenSSL for use in neon/SVN on Solaris 2.7/i86pc, instead
of the previously-mentioned OpenSSL config command:
# ./config threads zlib shared
I originally did:
# ./config threads zlib
ie, no shared, because the static lib was all SVN needed.

But the OpenSSL static lib later on gets linked into some shared object
or other (I suppose either a neon or a SVN lib). So it was trying to link
the non-PIC code in libssl.a into a shared object, which should contain
only PIC code. This caused obscure messages from Sun's ld, from memory
something like "relocations remain against allocated but non-writable
sections", which AFAIK is SunSpeak for "you need to use PIC and you

The solution was to rebuild OpenSSL with:
# ./config threads zlib -fPIC -DPIC
and then rebuild Subversion. Those flags are for GCC; I don't know what
the Sun Workshop or whatever other compilers need in this situation.

Hope this helps somebody,


Matthew Sanderson
Senior Programmer (UNIX)
TCG Information Systems Pty Ltd
Sydney, Australia
+61 (02) 8303 2407

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 21 07:08:39 2005

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.