Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 850112 - net-fs/samba-4.16.1[system-mitkrb5] fails to build with >=app-crypt/mit-krb5-1.20
Summary: net-fs/samba-4.16.1[system-mitkrb5] fails to build with >=app-crypt/mit-krb5-...
Status: RESOLVED DUPLICATE of bug 850082
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-06 15:04 UTC by crabbed halo ablution
Modified: 2022-06-06 15:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Failing build with mit-krb-1.20 (net-fs:samba-4.16.1:20220606-075756.log.zst,384.20 KB, application/zstd)
2022-06-06 15:08 UTC, crabbed halo ablution
Details
Successful build with mit-krb5-1.19.3-r2 (net-fs:samba-4.16.1:20220606-145507.log.zst,490.18 KB, application/zstd)
2022-06-06 15:10 UTC, crabbed halo ablution
Details
emerge --info net-fs/samba (emerge-info-txt,9.48 KB, text/plain)
2022-06-06 15:11 UTC, crabbed halo ablution
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crabbed halo ablution 2022-06-06 15:04:44 UTC
../../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.
Comment 1 crabbed halo ablution 2022-06-06 15:08:46 UTC
Created attachment 783140 [details]
Failing build with mit-krb-1.20
Comment 2 crabbed halo ablution 2022-06-06 15:10:09 UTC
Created attachment 783143 [details]
Successful build with mit-krb5-1.19.3-r2
Comment 3 crabbed halo ablution 2022-06-06 15:11:22 UTC
Created attachment 783146 [details]
emerge --info net-fs/samba
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-06 15:34:08 UTC

*** This bug has been marked as a duplicate of bug 850082 ***