Mailing List Archive

problems with g10 0.2.19 on sun-sparc-solaris2.5.1
Well, and with egcs as well. The first problem is a misspelling, I believe:

diff -u -r -x .o ../gnupg-0.2.19/mpi/sparc32/mpih-rshift.S ./gnupg-0.2.19/mpi/sparc32/mpih-rshift.S
--- ../gnupg-0.2.19/mpi/sparc32/mpih-rshift.S Mon May 18 07:33:20 1998
+++ ./gnupg-0.2.19/mpi/sparc32/mpih-rshift.S Tue Jun 9 11:26:22 1998
@@ -29,7 +29,7 @@

.text
.align 4
- .global C_SYMBOL_NAME(mpohelp_rshift)
+ .global C_SYMBOL_NAME(mpihelp_rshift)
C_SYMBOL_NAME(mpihelp_rshift):
ld [%o1],%g2 ! load first limb
sub %g0,%o3,%o5 ! negate shift count

The second is that egcs-1.0.3 doesn't like the definition of variables
in blocks; I believe it only wants them at the top of the function,
before any instructions are generated.

in particular, rand-dummy.c has code that looks like

#if HAVE_GETHRTIME
{
hrtime_t tv;
tv = gethrtime(void);
add_randomness( &tv, sizeof(tv), 1 );
}

And egcs complains mightily about this. If you either put the hrtime_t tv;
definition at the top of the function, or remove the braces, the compiler
doesn't complain.
Re: problems with g10 0.2.19 on sun-sparc-solaris2.5.1 [ In reply to ]
Tom Spindler <dogcow@home.merit.edu> writes:

> - .global C_SYMBOL_NAME(mpohelp_rshift)
> + .global C_SYMBOL_NAME(mpihelp_rshift)

I know, thanks.

> The second is that egcs-1.0.3 doesn't like the definition of variables
> in blocks; I believe it only wants them at the top of the function,
> before any instructions are generated.

I do this very often, so this can't be the problem. I'm using egcs
1.0.3 too (but for x86).

> And egcs complains mightily about this. If you either put the hrtime_t tv;
> definition at the top of the function, or remove the braces, the compiler

Can you please send me the error message.


Werner
Re: problems with g10 0.2.19 on sun-sparc-solaris2.5.1 [ In reply to ]
Werner Koch <wk@isil.d.shuttle.de> writes:

> > And egcs complains mightily about this. If you either put the
> > hrtime_t tv; definition at the top of the function, or remove the
> > braces, the compiler
>
> Can you please send me the error message.

I suspect this is just this bug:

--- gnupg-0.2.18/cipher/rand-dummy.c~ Sun May 10 20:15:20 1998
+++ gnupg-0.2.18/cipher/rand-dummy.c Mon May 25 16:00:07 1998
@@ -69,7 +69,7 @@
{
#if HAVE_GETHRTIME
{ hrtime_t tv;
- tv = gethrtime(void);
+ tv = gethrtime();
add_randomness( &tv, sizeof(tv), 1 );
}
#elif HAVE_GETTIMEOFTIME

-
James
~Yawn And Walk North~ http://yawn.nocrew.org/
Re: problems with g10 0.2.19 on sun-sparc-solaris2.5.1 [ In reply to ]
James Troup <J.J.Troup@scm.brad.ac.uk> writes:

> - tv = gethrtime(void);
> + tv = gethrtime();

Oops, I fixed this some time ago 8-)