gnupg-1.4.2rc2 and SGI IRIX 6.5

Nelson H. F. Beebe beebe at math.utah.edu
Wed Jun 22 14:20:55 CEST 2005


A build of gnupg-1.4.2rc2 on SGI IRIX 6.5 failed with native
compilers, and there are many warnings that indicate logical errors in
the code, or the need for suitable type casts or type matching.  Here
is a summary of the compiler complaints:

========================================================================
Machinetype:            SGI Origin/200-4 (180 MHz) (4 CPUs); IRIX 6.5
Remote cc version:      MIPSpro Compilers: Version 7.3.1.3m
Configure environment:  CC=cc CFLAGS=-I/usr/local/include CXX=CC CXXFLAGS=-I/usr/local/include LDFLAGS=-Wl,-rpath,/usr/local/lib


cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl  -I/usr/local/include  -I/usr/local/include -c miscutil.c
cc-1164 cc: WARNING File = miscutil.c, Line = 255
  Argument of type "const byte *" is incompatible with parameter of type
          "const char *".

  	buf = utf8_to_native ( p, n, delim );
  	                       ^


cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl  -I/usr/local/include  -I/usr/local/include -c strgutil.c
cc-1515 cc: WARNING File = strgutil.c, Line = 291
  A value of type "const char *" cannot be assigned to an entity of type
          "const byte *".

      for( t=buf, n=buflen, s=sub ; n ; t++, n-- )
            ^

cc-1515 cc: WARNING File = strgutil.c, Line = 291
  A value of type "const char *" cannot be assigned to an entity of type
          "const byte *".

      for( t=buf, n=buflen, s=sub ; n ; t++, n-- )
                             ^

cc-1515 cc: WARNING File = strgutil.c, Line = 293
  A value of type "const byte *" cannot be assigned to an entity of type
          "const char *".

  	    for( buf=t++, buflen = n--, s++;
  	            ^

cc-1515 cc: WARNING File = strgutil.c, Line = 298
  A value of type "const char *" cannot be assigned to an entity of type
          "const byte *".

  	    t = buf; n = buflen; s = sub ;
  	      ^

cc-1515 cc: WARNING File = strgutil.c, Line = 298
  A value of type "const char *" cannot be assigned to an entity of type
          "const byte *".

  	    t = buf; n = buflen; s = sub ;
  	                           ^

cc-1515 cc: WARNING File = strgutil.c, Line = 310
  A value of type "const char *" cannot be assigned to an entity of type
          "const byte *".

      for( t=buf, n=buflen, s=sub ; n ; t++, n-- )
            ^

cc-1515 cc: WARNING File = strgutil.c, Line = 310
  A value of type "const char *" cannot be assigned to an entity of type
          "const byte *".

      for( t=buf, n=buflen, s=sub ; n ; t++, n-- )
                             ^

cc-1515 cc: WARNING File = strgutil.c, Line = 312
  A value of type "const byte *" cannot be assigned to an entity of type
          "const char *".

  	    for( buf=t++, buflen = n--, s++;
  	            ^

cc-1515 cc: WARNING File = strgutil.c, Line = 317
  A value of type "const char *" cannot be assigned to an entity of type
          "const byte *".

  	    t = buf; n = buflen; s = sub ;
  	      ^

cc-1515 cc: WARNING File = strgutil.c, Line = 317
  A value of type "const char *" cannot be assigned to an entity of type
          "const byte *".

  	    t = buf; n = buflen; s = sub ;
  	                           ^

cc-1515 cc: WARNING File = strgutil.c, Line = 685
  A value of type "const char *" cannot be assigned to an entity of type
          "const byte *".

        for(s=string; *s; s++ )
             ^

cc-1515 cc: WARNING File = strgutil.c, Line = 692
  A value of type "char *" cannot be assigned to an entity of type "byte *".

        for(p=buffer, s=string; *s; s++ )
             ^

cc-1515 cc: WARNING File = strgutil.c, Line = 692
  A value of type "const char *" cannot be assigned to an entity of type
          "const byte *".

        for(p=buffer, s=string; *s; s++ )
                       ^

cc-1515 cc: WARNING File = strgutil.c, Line = 719
  A value of type "const char *" cannot be assigned to an entity of type
          "const byte *".

        for (s=string; *s; s++ )
              ^

cc-1515 cc: WARNING File = strgutil.c, Line = 808
  A value of type "const char *" cannot be assigned to an entity of type
          "const byte *".

  	for( slen=length, nleft=encidx=0, n=0, s=string; slen; s++, slen-- ) {
  	                                        ^

cc-1164 cc: WARNING File = strgutil.c, Line = 813
  Argument of type "byte *" is incompatible with parameter of type "char *".

  			sprintf(p, "\\x%02x", *s );
  			        ^

cc-1164 cc: WARNING File = strgutil.c, Line = 839
  Argument of type "byte *" is incompatible with parameter of type "char *".

                                  sprintf( p, "x%02x", *s );
                                           ^

cc-1164 cc: WARNING File = strgutil.c, Line = 882
  Argument of type "byte *" is incompatible with parameter of type "char *".

  			sprintf(p, "\\x%02x", *s );
  			        ^

cc-1164 cc: WARNING File = strgutil.c, Line = 892
  Argument of type "byte *" is incompatible with parameter of type "char *".

                          sprintf(p, "\\x%02x", encbuf[i] );
                                  ^

cc-1164 cc: WARNING File = strgutil.c, Line = 895
  Argument of type "byte *" is incompatible with parameter of type "char *".

  		    sprintf(p, "\\x%02x", *s );
  		            ^

cc-1164 cc: WARNING File = strgutil.c, Line = 952
  Argument of type "byte *" is incompatible with parameter of type "char *".

  				    sprintf(p, "\\x%02x", encbuf[i] );
  				            ^

cc-1164 cc: WARNING File = strgutil.c, Line = 968
  Argument of type "byte *" is incompatible with parameter of type "char *".

  				    sprintf(p, "\\x%02x", encbuf[i] );
  				            ^

cc-1515 cc: WARNING File = strgutil.c, Line = 1005
  A value of type "byte *" cannot be assigned to an entity of type "const char *"
          .

              inptr = buffer;
                    ^

cc-1119 cc: WARNING File = strgutil.c, Line = 1040
  The "return" expression type differs from the function return type.

  	    return buffer;
  	           ^


cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl  -I/usr/local/include  -I/usr/local/include -c ttyio.c
cc-1164 cc: WARNING File = ttyio.c, Line = 354
  Argument of type "const byte *" is incompatible with parameter of type
          "const char *".

  	buf = utf8_to_native( p, n, 0 );
  	                      ^


cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl  -I/usr/local/include  -I/usr/local/include -c argparse.c
cc-1164 cc: WARNING File = argparse.c, Line = 869
  Argument of type "const byte *" is incompatible with parameter of type
          "const char *".

  	    fputs( (const byte*)s, stdout);
  	           ^


cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl  -I/usr/local/include  -I/usr/local/include -c iobuf.c
cc-1515 cc: WARNING File = iobuf.c, Line = 630
  A value of type "byte *" cannot be assigned to an entity of type "char *".

  	p = buf;
  	  ^

cc-1164 cc: WARNING File = iobuf.c, Line = 709
  Argument of type "char *" is incompatible with parameter of type "byte *".

  		c = iobuf_read( chain, p, needed );
  		                       ^

cc-1515 cc: WARNING File = iobuf.c, Line = 740
  A value of type "byte *" cannot be assigned to an entity of type "char *".

  		p = buf;
  		  ^

cc-1164 cc: WARNING File = iobuf.c, Line = 755
  Argument of type "char *" is incompatible with parameter of type "byte *".

  			if( iobuf_write(chain, a->buffer, n ) )
  			                       ^

cc-1164 cc: WARNING File = iobuf.c, Line = 762
  Argument of type "char *" is incompatible with parameter of type "byte *".

  		    if( n && iobuf_write(chain, p, n ) )
  		                                ^

cc-1164 cc: WARNING File = iobuf.c, Line = 828
  Argument of type "char *" is incompatible with parameter of type "byte *".

  		    rc = iobuf_write(chain, a->buffer, len );
  		                            ^

cc-1515 cc: WARNING File = iobuf.c, Line = 1592
  A value of type "char *" cannot be assigned to an entity of type "byte *".

  	a->d.buf = newbuf;
  	         ^

cc-1140 cc: WARNING File = iobuf.c, Line = 2079
  A value of type "byte *" cannot be used to initialize an entity of type
          "char *".

      char *buffer = *addr_of_buffer;
                     ^

cc-1515 cc: WARNING File = iobuf.c, Line = 2088
  A value of type "char *" cannot be assigned to an entity of type "byte *".

  	*addr_of_buffer = buffer;
  	                ^

cc-1515 cc: WARNING File = iobuf.c, Line = 2108
  A value of type "char *" cannot be assigned to an entity of type "byte *".

  	    *addr_of_buffer = buffer;
  	                    ^


cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl  -I/usr/local/include  -I/usr/local/include -c http.c
cc-1164 cc: WARNING File = http.c, Line = 349
  Argument of type "char *" is incompatible with parameter of type "byte *".

  	    if( (n = remove_escapes( uri->host )) < 0 )
  	                             ^

cc-1164 cc: WARNING File = http.c, Line = 368
  Argument of type "char *" is incompatible with parameter of type "byte *".

      if( (n = remove_escapes( p )) < 0 )
                               ^

cc-1164 cc: WARNING File = http.c, Line = 384
  Argument of type "char *" is incompatible with parameter of type "byte *".

  	if( !(elem = parse_tuple( p )) )
  	                          ^

cc-1164 cc: WARNING File = http.c, Line = 451
  Argument of type "const byte *" is incompatible with parameter of type
          "const char *".

  	    && !strchr( special, *string ) )  {
  	                ^

cc-1164 cc: WARNING File = http.c, Line = 458
  Argument of type "byte *" is incompatible with parameter of type "char *".

  		sprintf( buffer, "%%%02X", *string );
  		         ^

cc-1164 cc: WARNING File = http.c, Line = 476
  Argument of type "byte *" is incompatible with parameter of type "const char *"
          .

      if( (p2 = strchr( p, '=' )) )
                        ^

cc-1515 cc: WARNING File = http.c, Line = 476
  A value of type "char *" cannot be assigned to an entity of type "byte *".

      if( (p2 = strchr( p, '=' )) )
              ^

cc-1164 cc: WARNING File = http.c, Line = 480
  Argument of type "byte *" is incompatible with parameter of type "const char *"
          .

      if( n != strlen( p ) )
                       ^

cc-1515 cc: WARNING File = http.c, Line = 483
  A value of type "byte *" cannot be assigned to an entity of type "const char *"
          .

      tuple->name = p;
                  ^

cc-1164 cc: WARNING File = http.c, Line = 486
  Argument of type "byte *" is incompatible with parameter of type "const char *"
          .

  	tuple->value = p + strlen(p);
  	                          ^

cc-1515 cc: WARNING File = http.c, Line = 486
  A value of type "byte *" cannot be assigned to an entity of type "char *".

  	tuple->value = p + strlen(p);
  	             ^

cc-1515 cc: WARNING File = http.c, Line = 494
  A value of type "byte *" cannot be assigned to an entity of type "char *".

  	tuple->value = p2;
  	             ^

cc-1515 cc: WARNING File = http.c, Line = 514
  A value of type "char *" cannot be assigned to an entity of type "const byte *"
          .

      server = *hd->uri->host? hd->uri->host : "localhost";
             ^

cc-1164 cc: WARNING File = http.c, Line = 532
  Argument of type "char *" is incompatible with parameter of type "const byte *"
          .

  	    char *x=make_radix64_string(uri->auth,strlen(uri->auth));
  	                                ^

cc-1164 cc: WARNING File = http.c, Line = 542
  Argument of type "const byte *" is incompatible with parameter of type
          "const char *".

  	hd->sock = connect_server( server, port, hd->flags, hd->uri->scheme );
  	                           ^

cc-1164 cc: WARNING File = http.c, Line = 545
  Argument of type "char *" is incompatible with parameter of type "const byte *"
          .

  	    char *x=make_radix64_string(hd->uri->auth,strlen(hd->uri->auth));
  	                                ^

cc-1164 cc: WARNING File = http.c, Line = 557
  Argument of type "const byte *" is incompatible with parameter of type
          "const char *".

      request=m_alloc(strlen(server)*2 + strlen(p) + (auth?strlen(auth):0) + 65);
                             ^

cc-1164 cc: WARNING File = http.c, Line = 557
  Argument of type "byte *" is incompatible with parameter of type "const char *"
          .

      request=m_alloc(strlen(server)*2 + strlen(p) + (auth?strlen(auth):0) + 65);
                                                ^

cc-1164 cc: WARNING File = http.c, Line = 559
  Argument of type "byte *" is incompatible with parameter of type "char *".

        sprintf( request, "%s http://%s:%hu%s%s HTTP/1.0\r\n%s",
                 ^

cc-1164 cc: WARNING File = http.c, Line = 571
  Argument of type "byte *" is incompatible with parameter of type "char *".

  	sprintf( request, "%s %s%s HTTP/1.0\r\nHost: %s%s\r\n%s",
  	         ^

cc-1164 cc: WARNING File = http.c, Line = 581
  Argument of type "byte *" is incompatible with parameter of type "const char *"
          .

      rc = write_server( hd->sock, request, strlen(request) );
                                   ^

cc-1164 cc: WARNING File = http.c, Line = 581
  Argument of type "byte *" is incompatible with parameter of type "const char *"
          .

      rc = write_server( hd->sock, request, strlen(request) );
                                                   ^

cc-1164 cc: WARNING File = http.c, Line = 601
  Argument of type "char *" is incompatible with parameter of type "const byte *"
          .

      n = insert_escapes( NULL, uri->path, "%;?&" );
                                ^

cc-1164 cc: WARNING File = http.c, Line = 605
  Argument of type "const char *" is incompatible with parameter of type
          "const byte *".

  	n += insert_escapes( NULL, r->name, "%;?&=" );
  	                           ^

cc-1164 cc: WARNING File = http.c, Line = 607
  Argument of type "char *" is incompatible with parameter of type "const byte *"
          .

  	n += insert_escapes( NULL, r->value, "%;?&=" );
  	                           ^

cc-1164 cc: WARNING File = http.c, Line = 613
  Argument of type "char *" is incompatible with parameter of type "const byte *"
          .

      n = insert_escapes( p, uri->path, "%;?&" );
                             ^

cc-1164 cc: WARNING File = http.c, Line = 618
  Argument of type "const char *" is incompatible with parameter of type
          "const byte *".

  	n = insert_escapes( p, r->name, "%;?&=" );
  	                       ^

cc-1164 cc: WARNING File = http.c, Line = 622
  Argument of type "char *" is incompatible with parameter of type "const byte *"
          .

  	n = insert_escapes( p, r->value, "%;?&=" );
  	                       ^

cc-1164 cc: WARNING File = http.c, Line = 653
  Argument of type "byte *" is incompatible with parameter of type "const char *"
          .

      if( (p = strchr( line, '/')) )
                       ^

cc-1515 cc: WARNING File = http.c, Line = 653
  A value of type "char *" cannot be assigned to an entity of type "byte *".

      if( (p = strchr( line, '/')) )
             ^

cc-1164 cc: WARNING File = http.c, Line = 655
  Argument of type "byte *" is incompatible with parameter of type "const char *"
          .

      if( !p || strcmp( line, "HTTP" ) )
                        ^

cc-1164 cc: WARNING File = http.c, Line = 658
  Argument of type "byte *" is incompatible with parameter of type "const char *"
          .

      if( (p2 = strpbrk( p, " \t" ) ) ) {
                         ^

cc-1515 cc: WARNING File = http.c, Line = 658
  A value of type "char *" cannot be assigned to an entity of type "byte *".

      if( (p2 = strpbrk( p, " \t" ) ) ) {
              ^

cc-1164 cc: WARNING File = http.c, Line = 660
  Argument of type "byte *" is incompatible with parameter of type "const char *"
          .

  	p2 += strspn( p2, " \t" );
  	              ^

cc-1164 cc: WARNING File = http.c, Line = 666
  Argument of type "byte *" is incompatible with parameter of type "const char *"
          .

      if( (p2 = strpbrk( p, " \t" ) ) )
                         ^

cc-1515 cc: WARNING File = http.c, Line = 666
  A value of type "char *" cannot be assigned to an entity of type "byte *".

      if( (p2 = strpbrk( p, " \t" ) ) )
              ^

cc-1164 cc: WARNING File = http.c, Line = 674
  Argument of type "byte *" is incompatible with parameter of type "const char *"
          .

      hd->status_code = atoi( p );
                              ^


cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl  -I/usr/local/include  -I/usr/local/include -c assuan-buffer.c
cc-1185 cc: WARNING File = assuan-buffer.c, Line = 226
  An enumerated type is mixed with another type.

    err = _assuan_read_line (ctx);
        ^

cc-1185 cc: WARNING File = assuan-buffer.c, Line = 294
  An enumerated type is mixed with another type.

    return rc;
           ^

cc-1185 cc: WARNING File = assuan-buffer.c, Line = 472
  An enumerated type is mixed with another type.

          return ctx->outbound.data.error;
                 ^

cc-1185 cc: WARNING File = assuan-buffer.c, Line = 480
  An enumerated type is mixed with another type.

          return ctx->outbound.data.error;
                 ^

cc-1185 cc: WARNING File = assuan-buffer.c, Line = 483
  An enumerated type is mixed with another type.

    return 0;
           ^


cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl  -I/usr/local/include  -I/usr/local/include -c assuan-client.c
cc-1185 cc: WARNING File = assuan-client.c, Line = 52
  An enumerated type is mixed with another type.

        rc = _assuan_read_line (ctx);
           ^

cc-1185 cc: WARNING File = assuan-client.c, Line = 173
  An enumerated type is mixed with another type.

      return rc;
             ^

cc-1185 cc: WARNING File = assuan-client.c, Line = 176
  An enumerated type is mixed with another type.

      return 0; /* Don't expect a response for a comment line.  */
             ^

cc-1185 cc: WARNING File = assuan-client.c, Line = 181
  An enumerated type is mixed with another type.

      return rc; /* error reading from server */
             ^

cc-1515 cc: WARNING File = assuan-client.c, Line = 183
  A value of type "char *" cannot be assigned to an entity of type
          "unsigned char *".

    line = ctx->inbound.line + off;
         ^

cc-1164 cc: WARNING File = assuan-client.c, Line = 188
  Argument of type "unsigned char *" is incompatible with parameter of type
          "const char *".

        rc = atoi (line);
                   ^

cc-1164 cc: WARNING File = assuan-client.c, Line = 196
  Argument of type "unsigned char *" is incompatible with parameter of type
          "const char *".

            rc = okay_cb (okay_cb_arg, line);
                                       ^

cc-1164 cc: WARNING File = assuan-client.c, Line = 215
  Argument of type "unsigned char *" is incompatible with parameter of type
          "const char *".

            memset (line, 0, strlen (line));
                                     ^

cc-1164 cc: WARNING File = assuan-client.c, Line = 254
  Argument of type "unsigned char *" is incompatible with parameter of type
          "const char *".

            rc = inquire_cb (inquire_cb_arg, line);
                                             ^

cc-1164 cc: WARNING File = assuan-client.c, Line = 264
  Argument of type "unsigned char *" is incompatible with parameter of type
          "const char *".

          rc = status_cb (status_cb_arg, line);
                                         ^

cc-1185 cc: WARNING File = assuan-client.c, Line = 280
  An enumerated type is mixed with another type.

    return rc;
           ^


cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl  -I/usr/local/include  -I/usr/local/include -c assuan-socket-connect.c
cc-1185 cc: WARNING File = assuan-socket-connect.c, Line = 132
  An enumerated type is mixed with another type.

    err = _assuan_new_context (&ctx);
        ^

cc-1185 cc: WARNING File = assuan-socket-connect.c, Line = 190
  An enumerated type is mixed with another type.

    return 0;
           ^


cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl  -I/usr/local/include  -I/usr/local/include -c assuan-util.c
cc-1185 cc: WARNING File = assuan-util.c, Line = 42
  An enumerated type is mixed with another type.

    ctx->err_no = err;
                ^

cc-1140 cc: WARNING File = assuan-util.c, Line = 122
  A value of type "const char *" cannot be used to initialize an entity of type
          "const unsigned char *".

    const unsigned char *s = string;
                             ^


cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl  -I/usr/local/include  -I/usr/local/include -c mkdtemp.c
cc-1515 cc: WARNING File = mkdtemp.c, Line = 60
  A value of type "char *" cannot be assigned to an entity of type "byte *".

    ch=&template[idx];
      ^

cc-1140 cc: WARNING File = mkdtemp.c, Line = 66
  A value of type "byte *" cannot be used to initialize an entity of type
          "char *".

        char *marker=ch;
                     ^


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".

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe at math.utah.edu  -
- 155 S 1400 E RM 233                       beebe at acm.org  beebe at computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------



More information about the Gnupg-devel mailing list