Just figured it out.

I just added a -m32 flag to the library line of the
solaris-sparcv9-gcc entry in Configure and it worked. Pretty
sure this will work with the other sparcvX configs.

FYI.. I am using gcc version 3.3.

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

Thanks again for the help!

-jim

On Fri, 24 Oct 2003, Venkatesh Ramaswamy wrote:

> Did you do 'make clean/dist-clean' before trying that? Even after that
> if there is a problem, try setting ABI=32 with the configure script and
> then making it, like ./Configure ABI=32 ...
>
> HTH
> -----Original Message-----
> From: Jim Mack [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 24, 2003 1:13 PM
> To: [EMAIL PROTECTED]
> Subject: RE: compiling 32bit binary on solaris 8
>
>
> Thanks for lead, but it's still blowing up complaining about
> linking against 64bit libs. This is for :
>
> solaris-sparcv7-gcc
> solaris-sparcv8-gcc
> solaris-sparcv9-gcc
>
> I really have no idea what to do. I have gone through all
> the relevent Makefiles and cannot find where these libs are
> getting built in 64bit. Does anyone know where this might be
> happening?
>
> Thanks,
>
> -jim
>
> On Thu, 23 Oct 2003, Venkatesh Ramaswamy wrote:
>
> > Use sparcv7 or sparcv8 for the configure script. sparcv9 is sun4u and
> links in the 64-bit libraries.
> >
> >     -----Original Message-----
> >     From: Jim Mack [mailto:[EMAIL PROTECTED]
> >     Sent: Thu 10/23/2003 6:19 PM
> >     To: [EMAIL PROTECTED]
> >     Cc:
> >     Subject: compiling 32bit binary on solaris 8
> >
> >
> >
> >
> >     Hi,
> >
> >     I am desperately trying to compile openssl-0.9.7b as 32bit
> >     since we have dependencies that require it. I am running :
> >
> >     ./Configure --prefix=/usr/pkg/openssl -shared
> solaris-sparcv9-gcc -m32
> >
> >     Everything seems to go ok until the linking blows up since
> >     it's still makes the libs in 64 bit (errors below). I tried
> >     hacking the Makefiles etc and it's still doing this. I have
> >     done this before but for some reason this is not working
> >     this time.  Any suggestions??
> >
> >     Thanks!
> >
> >       LD_LIBRARY_PATH=..:$LD_LIBRARY_PATH \
> >       gcc -o openssl -DMONOLITH -I.. -I../include
> >     -DOPENSSL_SYSNAME_ULTRASPARC -fPIC -DOPENSSL_THREADS
> >     -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5
> >     -m32 -m32 -mcpu=ultrasparc -O3 -fomit-frame-pointer -Wall
> >     -DB_ENDIAN -DBN_DIV2W -DMD5_ASM openssl.o verify.o
> >     asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o
> >     gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o
> >     dsa.o dsaparam.o x509.o genrsa.o gendsa.o s_server.o
> >     s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o
> >     app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o
> >     pkcs8.o spkac.o smime.o rand.o engine.o ocsp.o  -L.. -lssl
> >     -L.. -lcrypto -lsocket -lnsl -ldl ; \
> >     fi
> >     ld: fatal: file ../libssl.so: wrong ELF class: ELFCLASS64
> >     ld: fatal: file ../libcrypto.so: wrong ELF class: ELFCLASS64
> >     ld: fatal: File processing errors. No output written to
> >     openssl
> >     collect2: ld returned 1 exit status
> >     make[1]: *** [openssl] Error 1
> >
> >
> ______________________________________________________________________
> >     OpenSSL Project
> http://www.openssl.org
> >     User Support Mailing List
> [EMAIL PROTECTED]
> >     Automated List Manager
> [EMAIL PROTECTED]
> >
> >
> >
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to