> > > * compilation goes fine apart from the following compiler warning:
> > > cc -I.. -I../.. -I../../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DL 
>-DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_ASM +DA2.0 +DS2.0 +O3 
>+Optrs_strongly_typed +Olibcalls -Ae +ESlit -DB_ENDIAN -DMD32_XARRAY -c bn_asm.c
> > > cc: "bn_asm.c", line 155: warning 950: Shift amount should be in the range of 
>zero through 31 bits.
> > > <last line repeated about 100 times>
> >
> > I am using HP-UX 10.20 (hpux-parisc-cc target) and have never seen this.
> > I am using 0.9.7-beta? in production.
> >
> > > * tests fail with the following messages:
> > > test BN_lshift
> > > test BN_rshift1
> > > test BN_rshift
> > > test BN_sqr
> > > Square test failed!
> > > *** Error exit code 1
> 
> the warnings and BN test failure seem to be related with the
> hpux-parisc2-cc target and no-asm option. without the no-asm option
> building goes ok (no warnings, tests succeed) using hpux-parisc2-cc
> target.

Yet it's extremely important to get it working with no-asm. For that
reason I'd like to ask you to double-check that attached patch fixes the
problem with no-asm config. A.

--- ./crypto/bn/bn_lcl.h.orig   Mon Dec 16 19:17:24 2002
+++ ./crypto/bn/bn_lcl.h        Fri Dec 20 18:55:03 2002
@@ -368,7 +368,7 @@
        lt=(bl)*(lt); \
        m1=(bl)*(ht); \
        ht =(bh)*(ht); \
-       m=(m+m1)&BN_MASK2; if (m < m1) ht+=L2HBITS(1L); \
+       m=(m+m1)&BN_MASK2; if (m < m1) ht+=L2HBITS((BN_ULONG)1); \
        ht+=HBITS(m); \
        m1=L2HBITS(m); \
        lt=(lt+m1)&BN_MASK2; if (lt < m1) ht++; \

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

Reply via email to