We have a problem building apache 2.0.55 with OpenSSL 0.9.8a. When
linking mod_ssl the linker gives an error:

Text relocation remains                         referenced
    against symbol                  offset      in file
DES_SPtrans                         0x1220     
/usr/local/workdir/bld/openssl/lib/libcrypto.a(des_enc-sparc.o)
ld: fatal: relocations remain against allocatable but non-writable sections

gcc calls the linker with "-z text". If I omit this flag, the link
succeeds. gcc documentation indicates, that a clean build with -fPIC
should not give that problem.

I guess, that the problem is related to the CVS change

  Server: cvs.openssl.org                  Name:   Andy Polyakov
  Root:   /v/openssl/cvs                   Email:  [EMAIL PROTECTED]
  Module: openssl                          Date:   03-Aug-2005 12:44:29
  Branch: OpenSSL_0_9_8-stable             Handle: 2005080311442900

  Modified files:           (Branch: OpenSSL_0_9_8-stable)
    openssl/crypto/des/asm  des_enc.m4

  Log:
    PIC-ify SPARC assembler in alternative manner to eliminate dependency on
    OPENSSL_PIC macro [from HEAD].

  Summary:
    Revision    Changes     Path
    1.6.2.1     +45 -39     openssl/crypto/des/asm/des_enc.m4

If I use the des_enc.m4 from 0.9.8 I don't get the build error (although
with 0.9.8 destest dumps core, so that is no option).

We use gcc 3.2 on Solaris 2.8. Other tools like ld, as, ar etc. are all
original Sun tools. We have been using the exact same build procedure
(same environment, tools etc.) for about two years (0.9.6, 0.9.7 various
letter version) without problems. We link mod_ssl against static libssl
and libcrypto (default apache 2.0 build links against shared libs).

The openssl binary itself links without problem, only mod_ssl throws the
above error.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to