> Using OpenSSL-0.9.4 on Solaris 2.6 with latests recommended patches
> 
> And gcc 2.95.2
> binutils
> ...
> gcc -I. -I../include -DTHREADS -D_REENTRANT -DNO_ASM -DRSAref -O3
> -fomit-frame-pointer -m486 -Wall -DL_ENDIAN  -c  cryptlib.c
> /usr/local/i386-pc-solaris2.6/bin/as: option `-s' is ambiguous

This is unbelievable... To remind the sad story of Solaris x86 from the
beginning. Problem appeared since I've submitted GNU C inline assembler
templates used in crypto/sha/sha_dgst.c when users started getting
"Illegal mnemonic." Why did they? The catch is that whenever GNU C
instantiates an assembler template it surrounds it with #APP #NO_APP
comment pair, e.g.:

#APP
        roll $5,%edi
#NO_APP

/usr/ccs/bin/as find these two comments extremely offending. It should
be explicitly noted that it was no problem in Solaris 2.6_x86 and the
bug/feature/whatever was introduced in Solaris 7. As workaround we used
to advise to ./config no-asm or install GNU assembler. Now we see that
the latter is actually "no-do-no-good" advice as gcc compiler driver is
going to pass -s option which gas finds offending and all of a sudden
you can't compile *any* program at all. I.e. if we advise to install
gas, then we should also advise to reconfigure and recompile gcc with
--with-gas option which might be a little bit tricky for John Doe, the
developer at Acme. Indeed! First compilation pass should be picking
/usr/ccs/bin/as, while second and third ones - /go/figure/where/gas...
Well, just thought of a simple way:-) Edit specs file (with favorite
text editor naturally:-) and remove -s flag from *asm section!

In either case. For the moment whenever ./config sniffs Solaris x86 it
automatically adds no-asm flag. I don't find it fair. Why do all those
assembler implementations (they are *perfectly* compilable) get banned
for *one*, *seldom* (well, *never* in SSL) referred to SHA-0
implementation?

Cheers. Andy.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to