Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 2015 00:24:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 204649] net/wireshark compile fails when using hte base system krb5
Message-ID:  <bug-204649-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204649

            Bug ID: 204649
           Summary: net/wireshark compile fails when using hte base system
                    krb5
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: marcus@FreeBSD.org
          Reporter: rkoberman@gmail.com
             Flags: maintainer-feedback?(marcus@FreeBSD.org)
          Assignee: marcus@FreeBSD.org

When a compile of net/wireshark is attempted using the default of base system
krb5, it fails with the errors:
 CC       libdissectors_la-packet-kerberos.lo
../../asn1/kerberos/packet-kerberos-template.c:482:29: error: no member named
      'name' in 'struct krb5_principal_data'
                        for(i=0;i<key.principal->name.name_string.len;i++){
                                  ~~~~~~~~~~~~~  ^
../../asn1/kerberos/packet-kerberos-template.c:484:101: error: no member named
      'name' in 'struct krb5_principal_data'
  ..."%s%s",(i?"/":""),key.principal->name.name_string.val[i]));
                       ~~~~~~~~~~~~~  ^
/usr/local/include/glib-2.0/glib/gmacros.h:240:29: note: expanded from macro
'MIN'
#define MIN(a, b)  (((a) < (b)) ? (a) : (b))
                            ^
../../asn1/kerberos/packet-kerberos-template.c:484:101: error: no member named
      'name' in 'struct krb5_principal_data'
  ..."%s%s",(i?"/":""),key.principal->name.name_string.val[i]));
                       ~~~~~~~~~~~~~  ^
/usr/local/include/glib-2.0/glib/gmacros.h:240:42: note: expanded from macro
'MIN'
#define MIN(a, b)  (((a) < (b)) ? (a) : (b))
                                         ^
../../asn1/kerberos/packet-kerberos-template.c:487:73: warning: format
specifies
      type 'char *' but the argument has type 'krb5_data' (aka 'struct
_krb5_data')
      [-Wformat]
  ...KRB_MAX_ORIG_LEN-(pos-new_key->key_origin), "@%s",key.principal->realm));
                                                   ~~  ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/glib-2.0/glib/gmacros.h:240:29: note: expanded from macro
'MIN'
#define MIN(a, b)  (((a) < (b)) ? (a) : (b))
                            ^
../../asn1/kerberos/packet-kerberos-template.c:487:73: warning: format
specifies
      type 'char *' but the argument has type 'krb5_data' (aka 'struct
_krb5_data')
      [-Wformat]
  ...KRB_MAX_ORIG_LEN-(pos-new_key->key_origin), "@%s",key.principal->realm));
                                                   ~~  ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/glib-2.0/glib/gmacros.h:240:42: note: expanded from macro
'MIN'
#define MIN(a, b)  (((a) < (b)) ? (a) : (b))
                                         ^
../../asn1/kerberos/packet-kerberos-template.c:489:25: error: no member named
      'keyblock' in 'struct krb5_keytab_entry_st'
                        new_key->keytype=key.keyblock.keytype;
                                         ~~~ ^
../../asn1/kerberos/packet-kerberos-template.c:490:27: error: no member named
      'keyblock' in 'struct krb5_keytab_entry_st'
                        new_key->keylength=key.keyblock.keyvalue.length;
                                           ~~~ ^
../../asn1/kerberos/packet-kerberos-template.c:491:35: error: no member named
      'keyblock' in 'struct krb5_keytab_entry_st'
                        new_key->keyvalue=g_memdup(key.keyblock.keyvalue.da...
                                                   ~~~ ^
../../asn1/kerberos/packet-kerberos-template.c:531:3: error: use of undeclared
      identifier 'krb5_crypto'
                krb5_crypto crypto;
                ^
../../asn1/kerberos/packet-kerberos-template.c:539:7: error: no member named
      'keyblock' in 'struct krb5_keytab_entry_st'
                key.keyblock.keytype=ek->keytype;
                ~~~ ^
../../asn1/kerberos/packet-kerberos-template.c:540:7: error: no member named
      'keyblock' in 'struct krb5_keytab_entry_st'
                key.keyblock.keyvalue.length=ek->keylength;
                ~~~ ^
../../asn1/kerberos/packet-kerberos-template.c:541:7: error: no member named
      'keyblock' in 'struct krb5_keytab_entry_st'
                key.keyblock.keyvalue.data=ek->keyvalue;
                ~~~ ^
../../asn1/kerberos/packet-kerberos-template.c:542:9: warning: implicit
declaration
      of function 'krb5_crypto_init' is invalid in C99
      [-Wimplicit-function-declaration]
                ret = krb5_crypto_init(krb5_ctx, &(key.keyblock), 0, &crypto);
                      ^
../../asn1/kerberos/packet-kerberos-template.c:542:42: error: no member named
      'keyblock' in 'struct krb5_keytab_entry_st'
                ret = krb5_crypto_init(krb5_ctx, &(key.keyblock), 0, &crypto);
                                                   ~~~ ^
../../asn1/kerberos/packet-kerberos-template.c:554:9: warning: implicit
declaration
      of function 'krb5_decrypt_ivec' is invalid in C99
      [-Wimplicit-function-declaration]
                ret = krb5_decrypt_ivec(krb5_ctx, crypto, usage,
                      ^
../../asn1/kerberos/packet-kerberos-template.c:554:37: error: use of undeclared
      identifier 'crypto'
                ret = krb5_decrypt_ivec(krb5_ctx, crypto, usage,
                                                  ^
../../asn1/kerberos/packet-kerberos-template.c:564:4: warning: implicit
declaration
      of function 'krb5_crypto_destroy' is invalid in C99
      [-Wimplicit-function-declaration]
                        krb5_crypto_destroy(krb5_ctx, crypto);
                        ^
../../asn1/kerberos/packet-kerberos-template.c:564:34: error: use of undeclared
      identifier 'crypto'
                        krb5_crypto_destroy(krb5_ctx, crypto);
                                                      ^
../../asn1/kerberos/packet-kerberos-template.c:572:33: error: use of undeclared
      identifier 'crypto'
                krb5_crypto_destroy(krb5_ctx, crypto);
                                              ^
../../asn1/kerberos/packet-kerberos-template.c:506:10: warning: unused
parameter
      'usage' [-Wunused-parameter]
                                        int usage,
                                            ^
6 warnings and 14 errors generated.
Makefile:12591: recipe for target 'libdissectors_la-packet-kerberos.lo' failed
gmake[7]: *** [libdissectors_la-packet-kerberos.lo] Error 1
gmake[7]: *** Waiting for unfinished jobs....

Changing to use the port security/krb5 results in a good build.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204649-13>