Compilation of openssl-0.9.8-stable-SNAP-20050624 fails on Solaris 2.5.1 x86

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Compilation of openssl-0.9.8-stable-SNAP-20050624 fails on Solaris 2.5.1 x86

Ted Mittelstaedt


# uname -a
SunOS mail2 5.5.1 Generic_103641-42 i86pc i386 i86pc
# gcc -v
Reading specs from
/usr/local/lib/gcc-lib/i586-sun-solaris2.5.1/2.95.3/specs
gcc version 2.95.3 20010315 (release)
#

Hardware is a Pentium 66.  (yes, an original Pentium)

# ./Configure solaris-x86-gcc zlib shared -L/usr/local/lib
Configuring for solaris-x86-gcc
    no-gmp          [default]  OPENSSL_NO_GMP (skip dir)
    no-krb5         [krb5-flavor not specified] OPENSSL_NO_KRB5
    no-mdc2         [default]  OPENSSL_NO_MDC2 (skip dir)
    no-rc5          [default]  OPENSSL_NO_RC5 (skip dir)
    no-zlib-dynamic [default]
IsMK1MF=0
CC            =gcc
CFLAG








=-fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -D
HAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPEN
SSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_
ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
EX_LIBS       =-L/usr/local/lib -lsocket -lnsl -ldl -lz
CPUID_OBJ     =x86cpuid-elf.o
BN_ASM        =bn86-elf.o co86-elf.o
DES_ENC       =dx86-elf.o yx86-elf.o
AES_ASM_OBJ   =ax86-elf.o
BF_ENC        =bx86-elf.o
CAST_ENC      =c_enc.o
RC4_ENC       =rx86-elf.o
RC5_ENC       =r586-elf.o
MD5_OBJ_ASM   =mx86-elf.o
SHA1_OBJ_ASM  =sx86-elf.o s512sse2-elf.o
RMD160_OBJ_ASM=rm86-elf.o
PROCESSOR     =
RANLIB        =/usr/ccs/bin/ranlib
ARFLAGS       =
PERL          =/usr/bin/perl
THIRTY_TWO_BIT mode
DES_PTR used
DES_RISC1 used
DES_UNROLL used
BN_LLONG mode
RC4_INDEX mode
RC4_CHUNK is undefined
created directory `include/openssl'
e_os2.h => include/openssl/e_os2.h
making links in crypto...
crypto.h => ../include/openssl/crypto.h
tmdiff.h => ../include/openssl/tmdiff.h
opensslv.h => ../include/openssl/opensslv.h
opensslconf.h => ../include/openssl/opensslconf.h
ebcdic.h => ../include/openssl/ebcdic.h
symhacks.h => ../include/openssl/symhacks.h
ossl_typ.h => ../include/openssl/ossl_typ.h
making links in crypto/objects...
objects.h => ../../include/openssl/objects.h
obj_mac.h => ../../include/openssl/obj_mac.h
making links in crypto/md2...
md2.h => ../../include/openssl/md2.h
md2test.c => ../../test/md2test.c
making links in crypto/md4...
md4.h => ../../include/openssl/md4.h
md4test.c => ../../test/md4test.c
md4.c => ../../apps/md4.c
making links in crypto/md5...
md5.h => ../../include/openssl/md5.h
md5test.c => ../../test/md5test.c
making links in crypto/sha...
sha.h => ../../include/openssl/sha.h
shatest.c => ../../test/shatest.c
sha1test.c => ../../test/sha1test.c
sha256t.c => ../../test/sha256t.c
sha512t.c => ../../test/sha512t.c
making links in crypto/hmac...
hmac.h => ../../include/openssl/hmac.h
hmactest.c => ../../test/hmactest.c
making links in crypto/ripemd...
ripemd.h => ../../include/openssl/ripemd.h
rmdtest.c => ../../test/rmdtest.c
making links in crypto/des...
des.h => ../../include/openssl/des.h
des_old.h => ../../include/openssl/des_old.h
destest.c => ../../test/destest.c
making links in crypto/aes...
aes.h => ../../include/openssl/aes.h
making links in crypto/rc2...
rc2.h => ../../include/openssl/rc2.h
rc2test.c => ../../test/rc2test.c
making links in crypto/rc4...
rc4.h => ../../include/openssl/rc4.h
rc4test.c => ../../test/rc4test.c
making links in crypto/idea...
idea.h => ../../include/openssl/idea.h
ideatest.c => ../../test/ideatest.c
making links in crypto/bf...
blowfish.h => ../../include/openssl/blowfish.h
bftest.c => ../../test/bftest.c
making links in crypto/cast...
cast.h => ../../include/openssl/cast.h
casttest.c => ../../test/casttest.c
making links in crypto/bn...
bn.h => ../../include/openssl/bn.h
bntest.c => ../../test/bntest.c
exptest.c => ../../test/exptest.c
making links in crypto/ec...
ec.h => ../../include/openssl/ec.h
ectest.c => ../../test/ectest.c
making links in crypto/rsa...
rsa.h => ../../include/openssl/rsa.h
rsa_test.c => ../../test/rsa_test.c
making links in crypto/dsa...
dsa.h => ../../include/openssl/dsa.h
dsatest.c => ../../test/dsatest.c
making links in crypto/ecdsa...
ecdsa.h => ../../include/openssl/ecdsa.h
ecdsatest.c => ../../test/ecdsatest.c
making links in crypto/dh...
dh.h => ../../include/openssl/dh.h
dhtest.c => ../../test/dhtest.c
making links in crypto/ecdh...
ecdh.h => ../../include/openssl/ecdh.h
ecdhtest.c => ../../test/ecdhtest.c
making links in crypto/dso...
dso.h => ../../include/openssl/dso.h
making links in crypto/engine...
engine.h => ../../include/openssl/engine.h
enginetest.c => ../../test/enginetest.c
making links in crypto/buffer...
buffer.h => ../../include/openssl/buffer.h
making links in crypto/bio...
bio.h => ../../include/openssl/bio.h
making links in crypto/stack...
stack.h => ../../include/openssl/stack.h
safestack.h => ../../include/openssl/safestack.h
making links in crypto/lhash...
lhash.h => ../../include/openssl/lhash.h
making links in crypto/rand...
rand.h => ../../include/openssl/rand.h
randtest.c => ../../test/randtest.c
making links in crypto/err...
err.h => ../../include/openssl/err.h
making links in crypto/evp...
evp.h => ../../include/openssl/evp.h
evp_test.c => ../../test/evp_test.c
cp evptests.txt ../../test
making links in crypto/asn1...
asn1.h => ../../include/openssl/asn1.h
asn1_mac.h => ../../include/openssl/asn1_mac.h
asn1t.h => ../../include/openssl/asn1t.h
making links in crypto/pem...
pem.h => ../../include/openssl/pem.h
pem2.h => ../../include/openssl/pem2.h
making links in crypto/x509...
x509.h => ../../include/openssl/x509.h
x509_vfy.h => ../../include/openssl/x509_vfy.h
making links in crypto/x509v3...
x509v3.h => ../../include/openssl/x509v3.h
making links in crypto/conf...
conf.h => ../../include/openssl/conf.h
conf_api.h => ../../include/openssl/conf_api.h
making links in crypto/txt_db...
txt_db.h => ../../include/openssl/txt_db.h
making links in crypto/pkcs7...
pkcs7.h => ../../include/openssl/pkcs7.h
making links in crypto/pkcs12...
pkcs12.h => ../../include/openssl/pkcs12.h
making links in crypto/comp...
comp.h => ../../include/openssl/comp.h
making links in crypto/ocsp...
ocsp.h => ../../include/openssl/ocsp.h
making links in crypto/ui...
ui.h => ../../include/openssl/ui.h
ui_compat.h => ../../include/openssl/ui_compat.h
making links in crypto/krb5...
krb5_asn.h => ../../include/openssl/krb5_asn.h
making links in crypto/store...
store.h => ../../include/openssl/store.h
making links in crypto/pqueue...
pqueue.h => ../../include/openssl/pqueue.h
pq_compat.h => ../../include/openssl/pq_compat.h
making links in ssl...
ssl.h => ../include/openssl/ssl.h
ssl2.h => ../include/openssl/ssl2.h
ssl3.h => ../include/openssl/ssl3.h
ssl23.h => ../include/openssl/ssl23.h
tls1.h => ../include/openssl/tls1.h
dtls1.h => ../include/openssl/dtls1.h
kssl.h => ../include/openssl/kssl.h
ssltest.c => ../test/ssltest.c
making links in engines...
making links in apps...
making links in test...
making links in tools...
generating dummy tests (if needed)...
rc5test.c => dummytest.c
mdc2test.c => dummytest.c

Configured for solaris-x86-gcc.


At this point I manually added

-R/usr/local/lib:/usr/local/ssl/lib

to the CFLAGS line because Solaris 2.5.1 has no other way of adding a
path
to the dynamic linker  (they added that feature in 2.6)

# make
making all in crypto...
( echo "#ifndef MK1MF_BUILD"; \
echo '  /* auto-generated by crypto/Makefile for crypto/cversion.c */'; \
echo '  #define CFLAGS
"gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFC
N -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -D
OPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DS
HA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/local/lib:/usr/local/ssl/
lib"'; \
echo '  #define PLATFORM "solaris-x86-gcc"'; \
echo "  #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
echo '#endif' ) >buildinf.h
gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D
_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i48
6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/loca
l/lib:/usr/local/ssl/lib  -c  cryptlib.c
gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D
_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i48
6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/loca
l/lib:/usr/local/ssl/lib  -c  mem.c
gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D
_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i48
6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/loca
l/lib:/usr/local/ssl/lib  -c  mem_clr.c
gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D
_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i48
6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/loca
l/lib:/usr/local/ssl/lib  -c  mem_dbg.c
gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D
_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i48
6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/loca
l/lib:/usr/local/ssl/lib  -c  cversion.c
gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D
_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i48
6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/loca
l/lib:/usr/local/ssl/lib  -c  ex_data.c
gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D
_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i48
6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/loca
l/lib:/usr/local/ssl/lib  -c  tmdiff.c
gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D
_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i48
6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/loca
l/lib:/usr/local/ssl/lib  -c  cpt_err.c
gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D
_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i48
6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/loca
l/lib:/usr/local/ssl/lib  -c  ebcdic.c
gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D
_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i48
6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/loca
l/lib:/usr/local/ssl/lib  -c  uid.c
gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D
_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i48
6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/loca
l/lib:/usr/local/ssl/lib  -c  o_time.c
gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D
_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i48
6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/loca
l/lib:/usr/local/ssl/lib  -c  o_str.c
gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D
_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i48
6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/loca
l/lib:/usr/local/ssl/lib  -c  o_dir.c
/usr/bin/perl x86cpuid.pl
elf -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D
_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i48
6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/loca
l/lib:/usr/local/ssl/lib  > x86cpuid-elf.s
gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D
_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i48
6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/loca
l/lib:/usr/local/ssl/lib -c -o x86cpuid-elf.o x86cpuid-elf.s
Assembler: x86cpuid.s
        aline 144       : Illegal mnemonic
        aline 144       : syntax error
        aline 144       : Illegal register
        aline 144       : Illegal register
        aline 145       : Illegal mnemonic
        aline 145       : syntax error
        aline 145       : Illegal register
        aline 145       : Illegal register
        aline 146       : Illegal mnemonic
        aline 146       : syntax error
        aline 146       : Illegal register
        aline 146       : Illegal register
        aline 147       : Illegal mnemonic
        aline 147       : syntax error
        aline 147       : Illegal register
        aline 147       : Illegal register
        aline 148       : Illegal mnemonic
        aline 148       : syntax error
        aline 148       : Illegal register
        aline 148       : Illegal register
        aline 149       : Illegal mnemonic
        aline 149       : syntax error
        aline 149       : Illegal register
        aline 149       : Illegal register
        aline 150       : Illegal mnemonic
        aline 150       : syntax error
        aline 150       : Illegal register
        aline 150       : Illegal register
        aline 151       : Illegal mnemonic
        aline 151       : syntax error
        aline 151       : Illegal register
Too many errors - Goodbye
*** Error code 1
make: Fatal error: Command failed for target `x86cpuid-elf.o'
Current working directory
/usr/home/tedm/tete/openssl-0.9.8-stable-SNAP-20050624/crypto
*** Error code 1
make: Fatal error: Command failed for target `build_crypto'
#


Ted

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Compilation of openssl-0.9.8-stable-SNAP-20050624 fails on Solaris 2.5.1 x86

Andy Polyakov
> # ./Configure solaris-x86-gcc zlib shared -L/usr/local/lib
> gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D
> _REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -march=i48
> 6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -D
> OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -R/usr/loca
> l/lib:/usr/local/ssl/lib -c -o x86cpuid-elf.o x86cpuid-elf.s
> Assembler: x86cpuid.s
>         aline 144       : Illegal mnemonic
>         aline 144       : syntax error
>         aline 144       : Illegal register
>         aline 144       : Illegal register

If you use ./Configure [as opposite to ./config], then you become liable
to determine when no-sse2 is due and pass it down. ./config throws in
no-sse2 on SunOS prior 5.10. A.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: Compilation of openssl-0.9.8-stable-SNAP-20050624 fails on Solaris 2.5.1 x86

Ted Mittelstaedt
OK it's still got a problem:

# ./config
Operating system: i86pc-whatever-solaris2
Configuring for solaris-x86-gcc
Configuring for solaris-x86-gcc
    no-gmp          [default]  OPENSSL_NO_GMP (skip dir)
    no-krb5         [krb5-flavor not specified] OPENSSL_NO_KRB5
    no-mdc2         [default]  OPENSSL_NO_MDC2 (skip dir)
    no-rc5          [default]  OPENSSL_NO_RC5 (skip dir)
    no-shared       [default]
    no-sse2         [option]
    no-zlib         [default]
    no-zlib-dynamic [default]
IsMK1MF=0
CC            =gcc
CFLAG








=-DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-fra
me-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPENSSL
_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
EX_LIBS       =-lsocket -lnsl -ldl
CPUID_OBJ     =x86cpuid-elf.o
BN_ASM        =bn86-elf.o co86-elf.o
DES_ENC       =dx86-elf.o yx86-elf.o
AES_ASM_OBJ   =ax86-elf.o
BF_ENC        =bx86-elf.o
CAST_ENC      =cx86-elf.o
RC4_ENC       =rx86-elf.o
RC5_ENC       =r586-elf.o
MD5_OBJ_ASM   =mx86-elf.o
SHA1_OBJ_ASM  =sx86-elf.o
RMD160_OBJ_ASM=rm86-elf.o
PROCESSOR     =
RANLIB        =/usr/ccs/bin/ranlib
ARFLAGS       =
PERL          =/usr/bin/perl
THIRTY_TWO_BIT mode
DES_PTR used
DES_RISC1 used
DES_UNROLL used
BN_LLONG mode
RC4_INDEX mode
RC4_CHUNK is undefined
created directory `include/openssl'
e_os2.h => include/openssl/e_os2.h
making links in crypto...
crypto.h => ../include/openssl/crypto.h
tmdiff.h => ../include/openssl/tmdiff.h
opensslv.h => ../include/openssl/opensslv.h
opensslconf.h => ../include/openssl/opensslconf.h
ebcdic.h => ../include/openssl/ebcdic.h
symhacks.h => ../include/openssl/symhacks.h
ossl_typ.h => ../include/openssl/ossl_typ.h
making links in crypto/objects...
objects.h => ../../include/openssl/objects.h
obj_mac.h => ../../include/openssl/obj_mac.h
making links in crypto/md2...
md2.h => ../../include/openssl/md2.h
md2test.c => ../../test/md2test.c
making links in crypto/md4...
md4.h => ../../include/openssl/md4.h
md4test.c => ../../test/md4test.c
md4.c => ../../apps/md4.c
making links in crypto/md5...
md5.h => ../../include/openssl/md5.h
md5test.c => ../../test/md5test.c
making links in crypto/sha...
sha.h => ../../include/openssl/sha.h
shatest.c => ../../test/shatest.c
sha1test.c => ../../test/sha1test.c
sha256t.c => ../../test/sha256t.c
sha512t.c => ../../test/sha512t.c
making links in crypto/hmac...
hmac.h => ../../include/openssl/hmac.h
hmactest.c => ../../test/hmactest.c
making links in crypto/ripemd...
ripemd.h => ../../include/openssl/ripemd.h
rmdtest.c => ../../test/rmdtest.c
making links in crypto/des...
des.h => ../../include/openssl/des.h
des_old.h => ../../include/openssl/des_old.h
destest.c => ../../test/destest.c
making links in crypto/aes...
aes.h => ../../include/openssl/aes.h
making links in crypto/rc2...
rc2.h => ../../include/openssl/rc2.h
rc2test.c => ../../test/rc2test.c
making links in crypto/rc4...
rc4.h => ../../include/openssl/rc4.h
rc4test.c => ../../test/rc4test.c
making links in crypto/idea...
idea.h => ../../include/openssl/idea.h
ideatest.c => ../../test/ideatest.c
making links in crypto/bf...
blowfish.h => ../../include/openssl/blowfish.h
bftest.c => ../../test/bftest.c
making links in crypto/cast...
cast.h => ../../include/openssl/cast.h
casttest.c => ../../test/casttest.c
making links in crypto/bn...
bn.h => ../../include/openssl/bn.h
bntest.c => ../../test/bntest.c
exptest.c => ../../test/exptest.c
making links in crypto/ec...
ec.h => ../../include/openssl/ec.h
ectest.c => ../../test/ectest.c
making links in crypto/rsa...
rsa.h => ../../include/openssl/rsa.h
rsa_test.c => ../../test/rsa_test.c
making links in crypto/dsa...
dsa.h => ../../include/openssl/dsa.h
dsatest.c => ../../test/dsatest.c
making links in crypto/ecdsa...
ecdsa.h => ../../include/openssl/ecdsa.h
ecdsatest.c => ../../test/ecdsatest.c
making links in crypto/dh...
dh.h => ../../include/openssl/dh.h
dhtest.c => ../../test/dhtest.c
making links in crypto/ecdh...
ecdh.h => ../../include/openssl/ecdh.h
ecdhtest.c => ../../test/ecdhtest.c
making links in crypto/dso...
dso.h => ../../include/openssl/dso.h
making links in crypto/engine...
engine.h => ../../include/openssl/engine.h
enginetest.c => ../../test/enginetest.c
making links in crypto/buffer...
buffer.h => ../../include/openssl/buffer.h
making links in crypto/bio...
bio.h => ../../include/openssl/bio.h
making links in crypto/stack...
stack.h => ../../include/openssl/stack.h
safestack.h => ../../include/openssl/safestack.h
making links in crypto/lhash...
lhash.h => ../../include/openssl/lhash.h
making links in crypto/rand...
rand.h => ../../include/openssl/rand.h
randtest.c => ../../test/randtest.c
making links in crypto/err...
err.h => ../../include/openssl/err.h
making links in crypto/evp...
evp.h => ../../include/openssl/evp.h
evp_test.c => ../../test/evp_test.c
cp evptests.txt ../../test
making links in crypto/asn1...
asn1.h => ../../include/openssl/asn1.h
asn1_mac.h => ../../include/openssl/asn1_mac.h
asn1t.h => ../../include/openssl/asn1t.h
making links in crypto/pem...
pem.h => ../../include/openssl/pem.h
pem2.h => ../../include/openssl/pem2.h
making links in crypto/x509...
x509.h => ../../include/openssl/x509.h
x509_vfy.h => ../../include/openssl/x509_vfy.h
making links in crypto/x509v3...
x509v3.h => ../../include/openssl/x509v3.h
making links in crypto/conf...
conf.h => ../../include/openssl/conf.h
conf_api.h => ../../include/openssl/conf_api.h
making links in crypto/txt_db...
txt_db.h => ../../include/openssl/txt_db.h
making links in crypto/pkcs7...
pkcs7.h => ../../include/openssl/pkcs7.h
making links in crypto/pkcs12...
pkcs12.h => ../../include/openssl/pkcs12.h
making links in crypto/comp...
comp.h => ../../include/openssl/comp.h
making links in crypto/ocsp...
ocsp.h => ../../include/openssl/ocsp.h
making links in crypto/ui...
ui.h => ../../include/openssl/ui.h
ui_compat.h => ../../include/openssl/ui_compat.h
making links in crypto/krb5...
krb5_asn.h => ../../include/openssl/krb5_asn.h
making links in crypto/store...
store.h => ../../include/openssl/store.h
making links in crypto/pqueue...
pqueue.h => ../../include/openssl/pqueue.h
pq_compat.h => ../../include/openssl/pq_compat.h
making links in ssl...
ssl.h => ../include/openssl/ssl.h
ssl2.h => ../include/openssl/ssl2.h
ssl3.h => ../include/openssl/ssl3.h
ssl23.h => ../include/openssl/ssl23.h
tls1.h => ../include/openssl/tls1.h
dtls1.h => ../include/openssl/dtls1.h
kssl.h => ../include/openssl/kssl.h
ssltest.c => ../test/ssltest.c
making links in engines...
making links in apps...
making links in test...
making links in tools...
generating dummy tests (if needed)...
rc5test.c => dummytest.c
mdc2test.c => dummytest.c

Configured for solaris-x86-gcc.
# make
making all in crypto...
( echo "#ifndef MK1MF_BUILD"; \
echo '  /* auto-generated by crypto/Makefile for crypto/cversion.c */'; \
echo '  #define CFLAGS
"gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit
-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DOPE
NSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM"'; \
echo '  #define PLATFORM "solaris-x86-gcc"'; \
echo "  #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
echo '#endif' ) >buildinf.h
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHA
VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSS
L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160
_ASM -DAES_ASM  -c  cryptlib.c
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHA
VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSS
L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160
_ASM -DAES_ASM  -c  mem.c
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHA
VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSS
L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160
_ASM -DAES_ASM  -c  mem_clr.c
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHA
VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSS
L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160
_ASM -DAES_ASM  -c  mem_dbg.c
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHA
VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSS
L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160
_ASM -DAES_ASM  -c  cversion.c
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHA
VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSS
L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160
_ASM -DAES_ASM  -c  ex_data.c
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHA
VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSS
L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160
_ASM -DAES_ASM  -c  tmdiff.c
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHA
VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSS
L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160
_ASM -DAES_ASM  -c  cpt_err.c
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHA
VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSS
L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160
_ASM -DAES_ASM  -c  ebcdic.c
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHA
VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSS
L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160
_ASM -DAES_ASM  -c  uid.c
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHA
VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSS
L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160
_ASM -DAES_ASM  -c  o_time.c
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHA
VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSS
L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160
_ASM -DAES_ASM  -c  o_str.c
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHA
VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSS
L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160
_ASM -DAES_ASM  -c  o_dir.c
/usr/bin/perl x86cpuid.pl
elf -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHA
VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSS
L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160
_ASM -DAES_ASM  > x86cpuid-elf.s
gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHA
VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSS
L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160
_ASM -DAES_ASM -c -o x86cpuid-elf.o x86cpuid-elf.s
Assembler: x86cpuid.s
        aline 131       : Illegal mnemonic
        aline 131       : syntax error
*** Error code 1
make: Fatal error: Command failed for target `x86cpuid-elf.o'
Current working directory
/usr/home/tedm/tete/openssl-0.9.8-stable-SNAP-20050624/crypto
*** Error code 1
make: Fatal error: Command failed for target `build_crypto'
#

>-----Original Message-----
>From: [hidden email]
>[mailto:[hidden email]]On Behalf Of Andy Polyakov
>Sent: Friday, June 24, 2005 12:52 AM
>To: [hidden email]
>Cc: [hidden email]
>Subject: Re: Compilation of openssl-0.9.8-stable-SNAP-20050624 fails on
>Solaris 2.5.1 x86
>
>
>> # ./Configure solaris-x86-gcc zlib shared -L/usr/local/lib
>> gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DZLIB
>-DOPENSSL_THREADS -D
>> _REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3
>-fomit-frame-pointer -march=i48
>> 6 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM
>-DOPENSSL_BN_ASM_PART_WORDS -D
>> OPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
>-R/usr/loca
>> l/lib:/usr/local/ssl/lib -c -o x86cpuid-elf.o x86cpuid-elf.s
>> Assembler: x86cpuid.s
>>         aline 144       : Illegal mnemonic
>>         aline 144       : syntax error
>>         aline 144       : Illegal register
>>         aline 144       : Illegal register
>
>If you use ./Configure [as opposite to ./config], then you
>become liable
>to determine when no-sse2 is due and pass it down. ./config throws in
>no-sse2 on SunOS prior 5.10. A.
>______________________________________________________________________
>OpenSSL Project                                 http://www.openssl.org
>User Support Mailing List                    [hidden email]
>Automated List Manager                           [hidden email]
>
>______________________________________________________________________
>OpenSSL Project                                 http://www.openssl.org
>Development Mailing List                       [hidden email]
>Automated List Manager                           [hidden email]
>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Compilation of openssl-0.9.8-stable-SNAP-20050624 fails on Solaris 2.5.1 x86

Andy Polyakov
> gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHA
> VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall -DL_ENDIAN -DOPENSS
> L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160
> _ASM -DAES_ASM -c -o x86cpuid-elf.o x86cpuid-elf.s
> Assembler: x86cpuid.s
>         aline 131       : Illegal mnemonic
>         aline 131       : syntax error
> *** Error code 1
> make: Fatal error: Command failed for target `x86cpuid-elf.o'

http://cvs.openssl.org/chngview?cn=14142. a.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Repeated RSA_pub_enc gives different results

anirvana
Hello everyone,
                      Newbie here !  Saw a post similar to my problem, applied whatever solution was proposed and still am stumped. I wrote a small code, to apply RSA_public_encrypt on a hex string and get different results for the ciphertext everytime, even though I make sure that the same key is used !
 
I tried encrypting 6037D453AD637FD8B3B849CD95A07735AB50C327, the "to be encypted" text

 and got
 986AE5084B6988A8B9CBDEF2071D344C8DA7C2DE 1st time I ran gdb
 984A5B087A98B7D7E8FA0D21364C637B809AB5D1 2nd time
 98BA30090D2B4A6A7B8DA0B4C9DFF60E4D67829E 3rd time
 183E0709586E859DB6D0EB072442618118000000 4th time
 
IS there some concept of using system time when encrypting so that even though you may encrypt with same key and same plaintext you get different O/P for ciphertext ? Sounds strange !!
 
I made sure that the padding I used, RSA_NO_PADDING, conformed to the conditions on RSA_size() being equal to the "flen" still I get these different results..I've attached the snippet of code with this mail, I'd love it if someone could help  me out.
 
Thanx in advance, Anirban :)
 
I'm using FC2, and openssl-0.9.7g
*******the code follows..*****************************************************************************
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <openssl/rand.h>
#include <openssl/bn.h>
#include <openssl/rsa.h>
#include <openssl/sha.h>
#include <openssl/rc4.h>
#include <openssl/aes.h>

int main()
{
        int loop;
        BIGNUM *num,*key,*encrypted;
        RSA *digestobject;
        char *from,*to1=NULL;
        unsigned char *to=NULL,*to2=NULL;
        num=BN_new();
        key=BN_new();
        encrypted=BN_new();

        BN_hex2bn(&key,"1aab8e2d9558dc9abe52fd00a698918fd4d310ac");
        digestobject=RSA_generate_key(160,RSA_3,NULL,NULL);
        (digestobject->n)=key;
        printf("RSA_size is %d",RSA_size(digestobject));
        from="6037D453AD637FD8B3B849CD95A07735AB50C327";
        printf("\n\njust before encryption string is %s..", from);
        printf("\n and here's the BN ");
        BN_print_fp(stdout,num);
        to2=(unsigned char *)malloc(RSA_size(digestobject));
        loop=1;
        loop=RSA_public_encrypt(20,(unsigned char *)from,(unsigned char
*)to2,digestobject,RSA_NO_PADDING);
        printf("\njust after encryption string is %s ..",to2);
        encrypted=BN_bin2bn((const unsigned char *)to2,20,NULL);
        printf("\nhere comes the encrypted BN..");
        BN_print_fp(stdout,encrypted);

loop=RSA_public_encrypt(20,(unsigned char *)from,(unsigned char
*)to2,digestobject,RSA_NO_PADDING);
        printf("\njust after encryption string is %s ..",to2);
        encrypted=BN_bin2bn((const unsigned char *)to2,20,NULL);
        printf("\nhere comes the encrypted BN..");
        BN_print_fp(stdout,encrypted);
        loop=RSA_public_encrypt(20,(unsigned char *)from,(unsigned char
*)to2,digestobject,RSA_NO_PADDING);
        printf("\njust after encryption string is %s ..",to2);
        encrypted=BN_bin2bn((const unsigned char *)to2,20,NULL);
        printf("\nhere comes the encrypted BN..");
        BN_print_fp(stdout,encrypted);
}

******************************************************************
Reply | Threaded
Open this post in threaded view
|

Re: Repeated RSA_pub_enc gives different results

anirvana
Hey ppl,
            Just realized the encryption is'nt happening at all, just memory dumps being displayed..sorry for the long message. I would however love any advice on why the encryption is going awry :), the input and output buffers are intialized to NULL at the beginning and malloc has been used to allocate space, ...I made sure that the data being encrypted is shorter than the key length.
 
Thanx for any help 
-A 

 
Reply | Threaded
Open this post in threaded view
|

RE: Compilation of openssl-0.9.8-stable-SNAP-20050624 fails on Solaris 2.5.1 x86

Ted Mittelstaedt
In reply to this post by Andy Polyakov

Thanks, Andy!  It builds now. And make test completes without errors.

I have another question on this build, config puts in

-march=i486

but, shouldn't we be using

-march=pentium

The reason I ask is I see a lot of files that appear to be
specific for the Pentium or later CPU - will these execute
on a 80486?

./openssl-0.9.8-stable-SNAP-20050624/crypto/aes/asm/aes-586.pl
./openssl-0.9.8-stable-SNAP-20050624/crypto/bf/asm/bf-586.pl
./openssl-0.9.8-stable-SNAP-20050624/crypto/bn/asm/bn-586.pl
./openssl-0.9.8-stable-SNAP-20050624/crypto/bn/asm/co-586.pl
./openssl-0.9.8-stable-SNAP-20050624/crypto/cast/asm/cast-586.pl
./openssl-0.9.8-stable-SNAP-20050624/crypto/des/asm/crypt586.pl
./openssl-0.9.8-stable-SNAP-20050624/crypto/des/asm/des-586.pl
./openssl-0.9.8-stable-SNAP-20050624/crypto/des/times/586-100.lnx
./openssl-0.9.8-stable-SNAP-20050624/crypto/md5/asm/md5-586.pl
./openssl-0.9.8-stable-SNAP-20050624/crypto/rc4/asm/rc4-586.pl
./openssl-0.9.8-stable-SNAP-20050624/crypto/rc5/asm/rc5-586.pl
./openssl-0.9.8-stable-SNAP-20050624/crypto/ripemd/asm/rmd-586.pl
./openssl-0.9.8-stable-SNAP-20050624/crypto/sha/asm/sha1-586.pl

Ted

>-----Original Message-----
>From: [hidden email]
>[mailto:[hidden email]]On Behalf Of Andy Polyakov
>Sent: Friday, June 24, 2005 9:38 AM
>To: [hidden email]
>Cc: [hidden email]
>Subject: Re: Compilation of openssl-0.9.8-stable-SNAP-20050624 fails on
>Solaris 2.5.1 x86
>
>
>> gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT
>-DDSO_DLFCN -DHA
>> VE_DLFCN_H -O3 -fomit-frame-pointer -march=i486 -Wall
>-DL_ENDIAN -DOPENSS
>> L_NO_INLINE_ASM -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM
>-DMD5_ASM -DRMD160
>> _ASM -DAES_ASM -c -o x86cpuid-elf.o x86cpuid-elf.s
>> Assembler: x86cpuid.s
>>         aline 131       : Illegal mnemonic
>>         aline 131       : syntax error
>> *** Error code 1
>> make: Fatal error: Command failed for target `x86cpuid-elf.o'
>
>http://cvs.openssl.org/chngview?cn=14142. a.
>______________________________________________________________________
>OpenSSL Project                                 http://www.openssl.org
>Development Mailing List                       [hidden email]
>Automated List Manager                           [hidden email]
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Compilation of openssl-0.9.8-stable-SNAP-20050624 fails on Solaris 2.5.1 x86

Andy Polyakov
> I have another question on this build, config puts in
>
> -march=i486
>
> but, shouldn't we be using
>
> -march=pentium
>
> The reason I ask is I see a lot of files that appear to be
> specific for the Pentium or later CPU - will these execute
> on a 80486?

Yes, they will. -586 is legacy suffix and denotes the fact that
instructions were originally *scheduled* in Pentium favor. But it
doesn't [and never did] mean that the code would be executable
exclusively on Pentium. It should be pointed out:-) that if anybody
should raise a concern about 486 compatibility, then it shouldn't be a
Solaris x86 user, because Pentium was always minimum requirement (as far
as I recall:-). This is why it's indeed more appropriate to use
-march=pentium on Solaris x86, but not because of -586 suffix in
assembler module names. A.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: Compilation of openssl-0.9.8-stable-SNAP-20050624 fails on Solaris 2.5.1 x86

Ted Mittelstaedt


>-----Original Message-----
>From: [hidden email]
>[mailto:[hidden email]]On Behalf Of Andy Polyakov
>Sent: Sunday, June 26, 2005 9:35 AM
>To: [hidden email]
>Cc: [hidden email]
>Subject: Re: Compilation of openssl-0.9.8-stable-SNAP-20050624 fails on
>Solaris 2.5.1 x86
>
>
>> I have another question on this build, config puts in
>>
>> -march=i486
>>
>> but, shouldn't we be using
>>
>> -march=pentium
>>
>> The reason I ask is I see a lot of files that appear to be
>> specific for the Pentium or later CPU - will these execute
>> on a 80486?
>
>Yes, they will. -586 is legacy suffix and denotes the fact that
>instructions were originally *scheduled* in Pentium favor. But it
>doesn't [and never did] mean that the code would be executable
>exclusively on Pentium. It should be pointed out:-) that if anybody
>should raise a concern about 486 compatibility, then it shouldn't be a
>Solaris x86 user, because Pentium was always minimum
>requirement (as far
>as I recall:-).

I have a 80486DX with vesa local bus video card running Solaris x86
version 2.5.1 just fine.  It is incredibly slow as you might guess but
I keep it around in case I might ever need it for compatability testing.
Many of the video cards listed as Sun-approved
for Solaris 2.5.1 were VLB cards, and I can't recall that there
ever was a VLB chipset for the Pentium.

>This is why it's indeed more appropriate to use
>-march=pentium on Solaris x86, but not because of -586 suffix in
>assembler module names. A.
>

Thanks!

Ted
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [hidden email]
Automated List Manager                           [hidden email]