gnupg-1.4.2rc2 and SGI IRIX 6.5

David Shaw dshaw at jabberwocky.com
Wed Jun 22 14:57:43 CEST 2005


On Wed, Jun 22, 2005 at 06:20:55AM -0600, Nelson H. F. Beebe wrote:
> cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl  -I/usr/local/include  -I/usr/local/include -c memrchr.c
> cc-3316 cc: ERROR File = memrchr.c, Line = 36
>   The expression must be a pointer to a complete object type.
> 
>     const unsigned char *start=s,*end=s+n-1;
>                                       ^
> 1 error detected in the compilation of "memrchr.c".

I'll have a look at the other errors, but this one is the same error
that you reported when building with (I think) Sun's compiler.  Can
you try this patch?

David
-------------- next part --------------
Index: memrchr.c
===================================================================
RCS file: /cvs/gnupg/gnupg/util/memrchr.c,v
retrieving revision 1.2
diff -u -r1.2 memrchr.c
--- memrchr.c	31 May 2005 08:38:45 -0000	1.2
+++ memrchr.c	31 May 2005 21:46:16 -0000
@@ -33,7 +33,9 @@
 void *
 memrchr(const void *s, int c, size_t n)
 {
-  const unsigned char *start=s,*end=s+n-1;
+  const unsigned char *start=s,*end=s;
+
+  end+=n-1;
 
   while(end>=start)
     {


More information about the Gnupg-devel mailing list