../../source4/kdc/mit-kdb/kdb_samba.c:169:10: error: ‘kdb_vftabl’ {aka ‘struct _kdb_vftabl’} has no member named ‘sign_authdata’ 169 | .sign_authdata = kdb_samba_db_sign_auth_data, | ^~~~~~~~~~~~~ ../../source4/kdc/mit-kdb/kdb_samba.c:169:38: warning: initialization of ‘krb5_error_code (*)(struct _krb5_context *, const krb5_data *, const krb5_data *, const krb5_data *)’ {aka ‘int (*)(struct _krb5_context *, const struct _krb5_data *, const struct _krb5_data *, const struct _ krb5_data *)’} from incompatible pointer type ‘krb5_error_code (*)(struct _krb5_context *, unsigned int, const krb5_principal_data *, const krb5_principal_data *, krb5_db_entry *, krb5_db_entry *, krb5_db_entry *, krb5_db_entry *, krb5_keyblock *, krb5_keyblock *, krb5_keyblock *, krb5_keyblock *, krb5_keyblock *, krb5_timestamp, krb5_authdata **, void *, krb5_data ***, krb5_authdata ***)’ {aka ‘int (*)(struct _krb5_context *, unsigned int, const krb5_principal_data *, const krb5_principal_data *, struct _krb5_db_entry_new *, struct _krb5_db_entry_new *, struct _krb5_db_entry_new *, struct _krb5_db_entry_new *, struct _krb5_keyblock *, struct _krb5_keyblock *, struct _krb5_keyblock *, struct _krb5_keyblock *, struct _krb5_keyblock *, int, struct _krb5_authdata **, void *, struct _krb5_data ***, struct _krb5_authdata ***)’} [-Winco mpatible-pointer-types] 169 | .sign_authdata = kdb_samba_db_sign_auth_data, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../source4/kdc/mit-kdb/kdb_samba.c:169:38: note: (near initialization for ‘kdb_function_table.check_transited_realms’) ../../source4/kdc/mit-kdb/kdb_samba_policies.c: In function ‘kdb_samba_db_sign_auth_data’: ../../source4/kdc/mit-kdb/kdb_samba_policies.c:338:31: error: ‘KRB5_KDB_FLAG_CLIENT_REFERRALS_ONLY’ undeclared (first use in this function); did you mean ‘KRB5_KDB_FLAG_REFERRAL_OK’? 338 | is_as_req = ((flags & KRB5_KDB_FLAG_CLIENT_REFERRALS_ONLY) != 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | KRB5_KDB_FLAG_REFERRAL_OK ../../source4/kdc/mit-kdb/kdb_samba_policies.c:338:31: note: each undeclared identifier is reported only once for each function it appears in ../../source4/kdc/mit-kdb/kdb_samba_policies.c:415:35: error: ‘KRB5_KDB_FLAG_INCLUDE_PAC’ undeclared (first use in this function); did you mean ‘KRB5_KDB_FLAG_CLIENT’? 415 | if (is_as_req && (flags & KRB5_KDB_FLAG_INCLUDE_PAC) != 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ | KRB5_KDB_FLAG_CLIENT ../../source4/kdc/mit_samba.c: In function ‘mit_samba_context_init’: ../../source4/kdc/mit_samba.c:93:9: warning: ‘tevent_loop_allow_nesting’ is deprecated [-Wdeprecated-declarations] 93 | tevent_loop_allow_nesting(base_ctx.ev_ctx); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/ldb.h:51, from ../../source4/dsdb/samdb/samdb.h:35, from ../../source4/kdc/mit_samba.c:26: /usr/include/tevent.h:2354:6: note: declared here 2354 | void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_; | ^~~~~~~~~~~~~~~~~~~~~~~~~ ../../source4/kdc/mit_samba.c: In function ‘mit_samba_get_principal’: ../../source4/kdc/mit_samba.c:232:22: error: ‘KRB5_KDB_FLAG_CANONICALIZE’ undeclared (first use in this function); did you mean ‘KRB5_GC_CANONICALIZE’? 232 | if (kflags & KRB5_KDB_FLAG_CANONICALIZE) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | KRB5_GC_CANONICALIZE ../../source4/kdc/mit_samba.c:232:22: note: each undeclared identifier is reported only once for each function it appears in ../../source4/kdc/mit_samba.c:235:23: error: ‘KRB5_KDB_FLAG_CLIENT_REFERRALS_ONLY’ undeclared (first use in this function); did you mean ‘KRB5_KDB_FLAG_REFERRAL_OK’? 235 | if (kflags & (KRB5_KDB_FLAG_CLIENT_REFERRALS_ONLY | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | KRB5_KDB_FLAG_REFERRAL_OK ../../source4/kdc/mit_samba.c:236:23: error: ‘KRB5_KDB_FLAG_INCLUDE_PAC’ undeclared (first use in this function); did you mean ‘KRB5_KDB_FLAG_CLIENT’? 236 | KRB5_KDB_FLAG_INCLUDE_PAC)) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ | KRB5_KDB_FLAG_CLIENT Waf: Leaving directory `/var/tmp/portage/net-fs/samba-4.16.1/work/samba-4.16.1-abi_x86_64.amd64/bin/default' Build failed Reproducible: Always Steps to Reproduce: Tested by downgrading to 1.19.3-r2, everything works.
Created attachment 783140 [details] Failing build with mit-krb-1.20
Created attachment 783143 [details] Successful build with mit-krb5-1.19.3-r2
Created attachment 783146 [details] emerge --info net-fs/samba
*** This bug has been marked as a duplicate of bug 850082 ***