Hello,

My experience, just FYI:

The openssl-0.9.6b configure script fails to detect the combination of gcc
and Solaris ld on Solaris 8, for compiling shared libraries, at least for me.

I have Solaris 7 and 8 systems, with both Sun Workshop and gcc (2.95.2)
compilers installed.  The Configure script automatically detected gcc,
which is fine with me:

        ./config --prefix=/usr shared
        Operating system: sun4u-whatever-solaris2
        Configuring for solaris-sparcv9-gcc

However, we don't have the GNU binutils installed; instead, gcc uses the
Solaris assembler and linker.

The first round of compiling ended in tragedy as the Solaris linker
rejected most of the options passed to it from gcc.  I edited the file
'Configure', and changed line 143 to have 'solaris-shared' instead of
'gnu-shared'.  Here's the new line:

"solaris-sparcv9-gcc","gcc:-mcpu=ultrasparc -O3 -fomit-frame-pointer -Wall -DB_ENDIAN 
-DBN_DIV2W -DULTRASPARC::-D_REENTRANT:-lsocket -lnsl -ldl:BN_LLONG RC4_CHAR RC4_CHUNK 
DES_UNROLL 
BF_PTR:asm/sparcv8plus.o:::asm/md5-sparcv8plus.o::::::dlfcn:solaris-shared:-fPIC:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",

Actually, I started again from scratch with just this one change, just to
keep things clean.  After reconfiguring and recompiling, everything seems
good.  I ran 'make test' at the end, and I don't think anything failed -
the final output was:

OpenSSL 0.9.6b 9 Jul 2001
built on: Fri Oct 26 13:15:46 EDT 2001
platform: solaris-sparcv9-gcc
options:  bn(64,32) md2(int) rc4(ptr,char) des(idx,cisc,16,long) idea(int) 
blowfish(ptr)
compiler: gcc -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -mcpu=ultrasparc 
-O3 -fomit-frame-pointer -Wall -DB_ENDIAN -DBN_DIV2W -DULTRASPARC -DMD5_ASM

I'm sure there is a better way to do this, but this worked for me.  I did
basically the same thing for the solaris-sparcv8-gcc target (on line 142)
which I used for our non-ultra systems.

Thanks, (no reply necessary)

-D.

Daniel Morrison         \   Senior Unix Systems Administrator
[EMAIL PROTECTED]  \    Dept. of Electrical and Computer Engineering
                         /   Concordia University, Montreal

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to