Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 850082 - net-fs/samba-4.16.2[system-mitkrb5] fails to compile with app-crypt/mit-krb5-1.20
Summary: net-fs/samba-4.16.2[system-mitkrb5] fails to compile with app-crypt/mit-krb5-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
: 850112 (view as bug list)
Depends on: 859817
Blocks:
  Show dependency tree
 
Reported: 2022-06-06 12:06 UTC by Andrew Ammerlaan
Modified: 2022-08-13 15:45 UTC (History)
4 users (show)

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


Attachments
build.log (build.log.gz,469.44 KB, application/gzip)
2022-06-06 12:07 UTC, Andrew Ammerlaan
Details
environment (env,176.30 KB, text/plain)
2022-06-06 12:08 UTC, Andrew Ammerlaan
Details
emerge --info (emerge-info,9.77 KB, text/plain)
2022-06-06 12:09 UTC, Andrew Ammerlaan
Details
build log for net-fs/samba-4.15.7 against app-crypt/mit-krb5-1.20 (build.log.xz,1.98 KB, application/x-xz)
2022-08-12 08:20 UTC, Marco Clocchiatti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Ammerlaan gentoo-dev 2022-06-06 12:06:05 UTC
[2746/3402] Linking bin/default/source4/kdc/samba4ktutil
13:46:52 runner ['x86_64-pc-linux-gnu-gcc', '-O2', '-pipe', '-march=skylake', '-mabm', '-mtune=native', '-Wl,-O1', '-Wl,--as-needed', 'source4/kdc/ktutil.c.20.o', '-o/var/tmp/portage/net-fs/samba-4.16.1/work/samba-4.16.1-abi_x86_64.amd64/bin/default/source4/kdc/samba4ktutil', '-Wl,-rpath,/usr/lib64', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/var/tmp/portage/net-fs/samba-4.16.1/work/samba-4.16.1-abi_x86_64.amd64/bin/default/lib/replace', '-L/var/tmp/portage/net-fs/samba-4.16.1/work/samba-4.16.1-abi_x86_64.amd64/bin/default/lib/util', '-L/var/tmp/portage/net-fs/samba-4.16.1/work/samba-4.16.1-abi_x86_64.amd64/bin/default/lib/krb5_wrap', '-L/usr/local/lib', '-L/usr/local/lib', '-lkrb5samba-samba4', '-lsamba-util', '-lreplace-samba4', '-lgenrand-samba4', '-lsocket-blocking-samba4', '-lutil-setid-samba4', '-lsamba-debug-samba4', '-ltime-basic-samba4', '-lsys-rw-samba4', '-liov-buf-samba4', '-ltevent', '-ltalloc', '-lbsd', '-lunwind-generic', '-lunwind', '-licuuc', '-licudata', '-lgnutls', '-licui18n', '-ltalloc', '-lgssapi_krb5', '-lkrb5', '-lk5crypto', '-lcom_err', '-lcom_err', '-lkrb5', '-lk5crypto', '-lcom_err', '-Wl,-O1', '-Wl,--as-needed', '-pie', '-Wl,-z,relro,-z,now', '-Wl,-no-undefined', '-Wl,--export-dynamic']
../../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
-> task in 'mit-kdb-samba.objlist' failed with exit status 1: 
{task 140692841265440: c kdb_samba_policies.c -> kdb_samba_policies.c.1.o}
['x86_64-pc-linux-gnu-gcc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-O2', '-pipe', '-march=skylake', '-mabm', '-mtune=native', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-DHAVE_CONFIG_H=1', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT', '-fstack-protector-strong', '-fstack-clash-protection', '-DSTATIC_mit_kdb_samba_MODULES=NULL', '-DSTATIC_mit_kdb_samba_MODULES_PROTO=extern void __mit_kdb_samba_dummy_module_proto(void)', '-Isource4/kdc/mit-kdb', '-I../../source4/kdc/mit-kdb', '-Iinclude/public', '-I../../include/public', '-Isource4', '-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib', '-I../../source4/lib', '-Isource4/include', '-I../../source4/include', '-Iinclude', '-I../../include', '-Ilib/replace', '-I../../lib/replace', '-I.', '-I../..', '-Ilibrpc', '-I../../librpc', '-Ilib/util/var/tmp/portage/net-fs/samba-4.16.1/work/samba-4.16.1-abi_x86_64.amd64/third_party/gpfs', '-I../../lib/util/var/tmp/portage/net-fs/samba-4.16.1/work/samba-4.16.1-abi_x86_64.amd64/third_party/gpfs', '-Ilibcli/auth', '-I../../libcli/auth', '-Isource4/kdc', '-I../../source4/kdc', '-Idynconfig', '-I../../dynconfig', '-Ilibcli/nbt', '-I../../libcli/nbt', '-Isource4/libcli', '-I../../source4/libcli', '-Isource4/librpc', '-I../../source4/librpc', '-Ilibcli/dns', '-I../../libcli/dns', '-Ilibcli/lsarpc', '-I../../libcli/lsarpc', '-Isource4/libcli/ldap', '-I../../source4/libcli/ldap', '-Isource4/lib/socket', '-I../../source4/lib/socket', '-Ilibcli/util', '-I../../libcli/util', '-Isource4/lib/messaging', '-I../../source4/lib/messaging', '-Isource4/dsdb', '-I../../source4/dsdb', '-Isource4/lib/tls', '-I../../source4/lib/tls', '-Ilibds/common', '-I../../libds/common', '-Iauth/credentials', '-I../../auth/credentials', '-Iauth/gensec', '-I../../auth/gensec', '-Ilib/param', '-I../../lib/param', '-Isource3', '-I../../source3', '-Isource3/include', '-I../../source3/include', '-Isource3/lib', '-I../../source3/lib', '-Isource3/librpc', '-I../../source3/librpc', '-Ilib/krb5_wrap', '-I../../lib/krb5_wrap', '-Ilibcli/smb', '-I../../libcli/smb', '-Insswitch/libwbclient', '-I../../nsswitch/libwbclient', '-Isource4/lib/events', '-I../../source4/lib/events', '-Ilibcli/ldap', '-I../../libcli/ldap', '-Isource4/auth/kerberos', '-I../../source4/auth/kerberos', '-Isource4/param', '-I../../source4/param', '-Ilib/addns', '-I../../lib/addns', '-Ilibcli/netlogon', '-I../../libcli/netlogon', '-Iauth', '-I../../auth', '-Ilib/util/charset', '-I../../lib/util/charset', '-Ilib/messaging', '-I../../lib/messaging', '-Iauth/kerberos', '-I../../auth/kerberos', '-Ilib/ldb-samba', '-I../../lib/ldb-samba', '-Isource4/auth/gensec', '-I../../source4/auth/gensec', '-Ilib/tsocket', '-I../../lib/tsocket', '-Ilibcli/http', '-I../../libcli/http', '-Ilib/audit_logging', '-I../../lib/audit_logging', '-Isource4/libcli/smb2', '-I../../source4/libcli/smb2', '-Ilib/async_req', '-I../../lib/async_req', '-Ilib/dbwrap', '-I../../lib/dbwrap', '-Ilibcli/security', '-I../../libcli/security', '-Ilib/pthreadpool', '-I../../lib/pthreadpool', '-Ilibcli/cldap', '-I../../libcli/cldap', '-Ilibcli/drsuapi', '-I../../libcli/drsuapi', '-Ilib/socket', '-I../../lib/socket', '-Ilib/crypto', '-I../../lib/crypto', '-Iauth/ntlmssp', '-I../../auth/ntlmssp', '-Isource4/auth', '-I../../source4/auth', '-Isource4/cluster', '-I../../source4/cluster', '-Isource4/lib/stream', '-I../../source4/lib/stream', '-Ilib/compression', '-I../../lib/compression', '../../source4/kdc/mit-kdb/kdb_samba_policies.c', '-c', '-o/var/tmp/portage/net-fs/samba-4.16.1/work/samba-4.16.1-abi_x86_64.amd64/bin/default/source4/kdc/mit-kdb/kdb_samba_policies.c.1.o', '-I/usr/include/et']
-> task in 'MIT_SAMBA' failed with exit status 1: 
{task 140692841264768: c mit_samba.c -> mit_samba.c.19.o}
['x86_64-pc-linux-gnu-gcc', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-O2', '-pipe', '-march=skylake', '-mabm', '-mtune=native', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-DHAVE_CONFIG_H=1', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT', '-fstack-protector-strong', '-fstack-clash-protection', '-DSTATIC_MIT_SAMBA_MODULES=NULL', '-DSTATIC_MIT_SAMBA_MODULES_PROTO=extern void __MIT_SAMBA_dummy_module_proto(void)', '-Isource4/kdc', '-I../../source4/kdc', '-Iinclude/public', '-I../../include/public', '-Isource4', '-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib', '-I../../source4/lib', '-Isource4/include', '-I../../source4/include', '-Iinclude', '-I../../include', '-Ilib/replace', '-I../../lib/replace', '-I.', '-I../..', '-Ilibrpc', '-I../../librpc', '-Ilib/util/var/tmp/portage/net-fs/samba-4.16.1/work/samba-4.16.1-abi_x86_64.amd64/third_party/gpfs', '-I../../lib/util/var/tmp/portage/net-fs/samba-4.16.1/work/samba-4.16.1-abi_x86_64.amd64/third_party/gpfs', '-Ilibcli/auth', '-I../../libcli/auth', '-Idynconfig', '-I../../dynconfig', '-Ilibcli/nbt', '-I../../libcli/nbt', '-Isource4/libcli', '-I../../source4/libcli', '-Isource4/librpc', '-I../../source4/librpc', '-Ilibcli/dns', '-I../../libcli/dns', '-Ilibcli/lsarpc', '-I../../libcli/lsarpc', '-Isource4/libcli/ldap', '-I../../source4/libcli/ldap', '-Isource4/lib/socket', '-I../../source4/lib/socket', '-Ilibcli/util', '-I../../libcli/util', '-Isource4/lib/messaging', '-I../../source4/lib/messaging', '-Isource4/dsdb', '-I../../source4/dsdb', '-Isource4/lib/tls', '-I../../source4/lib/tls', '-Ilibds/common', '-I../../libds/common', '-Iauth/credentials', '-I../../auth/credentials', '-Iauth/gensec', '-I../../auth/gensec', '-Ilib/param', '-I../../lib/param', '-Isource3', '-I../../source3', '-Isource3/include', '-I../../source3/include', '-Isource3/lib', '-I../../source3/lib', '-Isource3/librpc', '-I../../source3/librpc', '-Ilib/krb5_wrap', '-I../../lib/krb5_wrap', '-Ilibcli/smb','-I../../libcli/smb', '-Insswitch/libwbclient', '-I../../nsswitch/libwbclient', '-Isource4/lib/events', '-I../../source4/lib/events', '-Ilibcli/ldap', '-I../../libcli/ldap', '-Isource4/auth/kerberos', '-I../../source4/auth/kerberos', '-Isource4/param', '-I../../source4/param', '-Ilib/addns', '-I../../lib/addns', '-Ilibcli/netlogon', '-I../../libcli/netlogon', '-Iauth', '-I../../auth', '-Ilib/util/charset', '-I../../lib/util/charset', '-Ilib/messaging', '-I../../lib/messaging', '-Iauth/kerberos', '-I../../auth/kerberos', '-Ilib/ldb-samba', '-I../../lib/ldb-samba', '-Isource4/auth/gensec', '-I../../source4/auth/gensec', '-Ilib/tsocket', '-I../../lib/tsocket', '-Ilibcli/http', '-I../../libcli/http', '-Ilib/audit_logging', '-I../../lib/audit_logging', '-Isource4/libcli/smb2', '-I../../source4/libcli/smb2', '-Ilib/async_req', '-I../../lib/async_req', '-Ilib/dbwrap', '-I../../lib/dbwrap', '-Ilibcli/security', '-I../../libcli/security', '-Ilib/pthreadpool', '-I../../lib/pthreadpool', '-Ilibcli/cldap', '-I../../libcli/cldap', '-Ilibcli/drsuapi', '-I../../libcli/drsuapi','-Ilib/socket', '-I../../lib/socket', '-Ilib/crypto', '-I../../lib/crypto', '-Iauth/ntlmssp', '-I../../auth/ntlmssp', '-Isource4/auth', '-I../../source4/auth', '-Isource4/cluster', '-I../../source4/cluster', '-Isource4/lib/stream', '-I../../source4/lib/stream', '-Ilib/compression', '-I../../lib/compression', '../../source4/kdc/mit_samba.c', '-c', '-o/var/tmp/portage/net-fs/samba-4.16.1/work/samba-4.16.1-abi_x86_64.amd64/bin/default/source4/kdc/mit_samba.c.19.o', '-I/usr/include/et']
Comment 1 Andrew Ammerlaan gentoo-dev 2022-06-06 12:07:40 UTC
Created attachment 783122 [details]
build.log
Comment 2 Andrew Ammerlaan gentoo-dev 2022-06-06 12:08:27 UTC
Created attachment 783125 [details]
environment
Comment 3 Andrew Ammerlaan gentoo-dev 2022-06-06 12:09:45 UTC
Created attachment 783128 [details]
emerge --info
Comment 4 Andrew Ammerlaan gentoo-dev 2022-06-06 12:11:25 UTC
[ebuild   R   ] net-fs/samba-4.16.1  USE="acl addc ads client cups gpg json ldap pam python quota regedit system-mitkrb5* winbind zeroconf -ceph -cluster -debug (-fam) -glusterfs -iprint -profiling-data (-selinux) -snapper -spotlight -syslog (-system-heimdal) -systemd (-test)" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="aes" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9"

Disabling the system-mitkrb5 use flag fixes the issue.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-06 15:34:08 UTC
*** Bug 850112 has been marked as a duplicate of this bug. ***
Comment 6 Andrew Ammerlaan gentoo-dev 2022-06-30 19:46:43 UTC
Still a problem in 4.16.2
Comment 7 Joakim Tjernlund 2022-07-05 08:10:00 UTC
Probably best to report this upstream to samba.
Comment 8 Joakim Tjernlund 2022-07-21 19:26:46 UTC
FYI net-fs/samba-4.15.7 builds against app-crypt/mit-krb5-1.20
Comment 9 Marco Clocchiatti 2022-08-12 08:19:19 UTC
(In reply to Joakim Tjernlund from comment #8)
> FYI net-fs/samba-4.15.7 builds against app-crypt/mit-krb5-1.20

still a problem for me
Comment 10 Marco Clocchiatti 2022-08-12 08:20:35 UTC
Created attachment 799379 [details]
build log for net-fs/samba-4.15.7 against app-crypt/mit-krb5-1.20