Project

General

Profile

Actions

Bug #14382

open

gss_mechs: build errors with gcc 11

Added by Toomas Soome 9 days ago. Updated 9 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Different errors in gss_mech:

    ../krb5/rcache/rc_file.c: In function 'krb5_rc_file_close_no_free':
    ../krb5/rcache/rc_file.c:166:2: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
      166 |  if (t->d.fd >= 0)
          |  ^~
    ../krb5/rcache/rc_file.c:20:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
       20 | #define FREE_RC(x) ((void) free((char *) (x)))
          |                    ^
    ../krb5/rcache/rc_file.c:168:5: note: in expansion of macro 'FREE_RC'
      168 |     FREE_RC(t);
          |     ^~~~~~~
    cc1: all warnings being treated as errors

    In file included from ../../dh_common/../dh_common/dh_common.h:34,
                     from ../../dh_common/dh_template.c:38,
                     from ../dh192.c:41:
    /code/illumos-gate/usr/src/lib/libnsl/include/rpcsvc/nis_dhext.h:159:20: error: argument 1 of type 'const char[]' with mismatched bound [-Werror=array-parameter=]
      159 | int getpublickey_g(const char [], keylen_t, algtype_t, char *, size_t);
          |                    ^~~~~~~~~~~~~
    In file included from ../dh192.c:39:
    ../fakensl.c:52:27: note: previously declared as 'const char[255]'
       52 | getpublickey_g(const char remotename[MAXNETNAMELEN], int keylen,
          |                ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from ../../dh_common/../dh_common/dh_common.h:34,
                     from ../../dh_common/dh_template.c:38,
                     from ../dh192.c:41:
    /code/illumos-gate/usr/src/lib/libnsl/include/rpcsvc/nis_dhext.h:162:29: error: argument 1 of type 'const char[]' with mismatched bound [-Werror=array-parameter=]
      162 | int __getpublickey_cached_g(const char [], keylen_t, algtype_t, char *, size_t,
          |                             ^~~~~~~~~~~~~
    In file included from ../dh192.c:39:
    ../fakensl.c:43:36: note: previously declared as 'const char[255]'
       43 | __getpublickey_cached_g(const char remotename[MAXNETNAMELEN], int keylen,
          |                         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk 9 days ago

  • Gerrit CR set to 1928
Actions

Also available in: Atom PDF