Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 650338 - =net-fs/samba-4.6.13 fails compile: kerberos_keytab.c:(.text+0x138): undefined reference to `ads_keytab_open'
Summary: =net-fs/samba-4.6.13 fails compile: kerberos_keytab.c:(.text+0x138): undefine...
Status: RESOLVED OBSOLETE
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:
Depends on:
Blocks:
 
Reported: 2018-03-13 00:01 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2020-01-08 03:50 UTC (History)
1 user (show)

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


Attachments
samba-4.6.13:20180312-225431.log.xz (samba-4.6.13:20180312-225431.log.xz,83.34 KB, application/x-xz)
2018-03-13 00:01 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details
emerge --info (einfo,4.73 KB, text/plain)
2018-03-13 00:02 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2018-03-13 00:01:12 UTC
Created attachment 523676 [details]
samba-4.6.13:20180312-225431.log.xz

2112/2325] Linking default/source4/auth/ntlm/libauth4-samba4.so
22:57:59 runner x86_64-pc-linux-gnu-gcc default/source4/auth/ntlm/auth_anonymous_2.o default/source4/librpc/gen_ndr/ndr_irpc_c_18.o default/source4/auth/ntlm/auth_6.o default/source4/auth/ntlm/auth_util_6.o default/source4/auth/ntlm/auth_simple_6.o default/source4/auth/ntlm/auth_winbind_3.o default/source4/auth/ntlm/auth_sam_1.o default/source4/auth/ntlm/auth_developer_4.o default/source4/auth/ntlm/auth_unix_5.o -o /var/tmp/portage/net-fs/samba-4.6.13/work/samba-4.6.13-abi_x86_64.amd64/bin/default/source4/auth/ntlm/libauth4-samba4.so -march=native -mtune=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,-z,relro,-z,now -lpthread -Wl,-no-undefined -Wl,--export-dynamic -fstack-protector -shared -Wl,--version-script=/var/tmp/portage/net-fs/samba-4.6.13/work/samba-4.6.13-abi_x86_64.amd64/bin/default/source4/auth/ntlm/auth4.vscript -Wl,-rpath,/usr/lib64 -Ldefault/libcli/registry -Ldefault/source4/libcli/ldap -Ldefault/libds/common -Ldefault/lib/socket -Ldefault/auth -Ldefault/libcli/ldap -Ldefault/libcli/smb -Ldefault/source4/lib/socket -Ldefault/libcli/cldap -Ldefault/source4/lib/http -Ldefault/auth/gensec -Ldefault/source4/libcli -Ldefault/libcli/nbt -Ldefault/lib/addns -Ldefault/source4/cluster -Ldefault/source3 -Ldefault/source4/lib/events -Ldefault/lib/ldb-samba -Ldefault/lib/tdb_wrap -Ldefault/lib/dbwrap -Ldefault/libcli/util -Ldefault/nsswitch -Ldefault/source4/libcli/wbclient -Ldefault/libcli/auth -Ldefault/lib -Ldefault/lib/krb5_wrap -Ldefault/source4/auth/kerberos -Ldefault/source4/dsdb -Ldefault/libcli/security -Ldefault/source4/lib/messaging -Ldefault/lib/param -Ldefault/source4/auth -Ldefault/librpc -Ldefault/auth/credentials -Ldefault/source4/librpc -Ldefault/lib/replace -Ldefault/nsswitch/libwbclient -Ldefault/lib/util -L/usr/local/lib -L/usr/lib64 -Wl,-Bdynamic -lsamba-util -lwbclient -lsamba-modules-samba4 -ltevent-util -lreplace-samba4 -ldcerpc-samba4 -lsamba-credentials -lndr-samba-samba4 -lauth-unix-token-samba4 -lsamba-hostconfig -lMESSAGING-samba4 -ldcerpc -lsamba-security-samba4 -lsamdb -lndr-samba4 -lauthkrb5-samba4 -lkrb5samba-samba4 -lsamba-sockets-samba4 -lcliauth-samba4 -lLIBWBCLIENT-OLD-samba4 -ltime-basic-samba4 -lutil-setid-samba4 -lsamba-debug-samba4 -lgenrand-samba4 -lsocket-blocking-samba4 -lwinbind-client-samba4 -lsamba-errors -lsamdb-common-samba4 -ldbwrap-samba4 -ltdb-wrap-samba4 -lndr -lldbsamba-samba4 -lutil-tdb-samba4 -levents-samba4 -lndr-standard -lndr-krb5pac -lasn1util-samba4 -lndr-nbt -lserver-role-samba4 -lmessages-util-samba4 -ltalloc-report-samba4 -lcluster-samba4 -lserver-id-db-samba4 -laddns-samba4 -lcli-nbt-samba4 -lsmbclient-raw-samba4 -ldcerpc-binding -lgensec-samba4 -lhttp-samba4 -lcli-cldap-samba4 -lnetif-samba4 -lcli-smb-common-samba4 -ldcerpc-samba-samba4 -lcli-ldap-common-samba4 -lauth-sam-reply-samba4 -liov-buf-samba4 -linterfaces-samba4 -lsys-rw-samba4 -lflag-mapping-samba4 -lmessages-dgm-samba4 -lCHARSET3-samba4 -lsmbconf -lsamba-cluster-support-samba4 -lsamba3-util-samba4 -lcli-ldap-samba4 -lsmb-transport-samba4 -lmsghdr-samba4 -lsmbd-shim-samba4 -lutil-reg-samba4 -lcap -lz -lresolv -lkrb5 -lk5crypto -lcom_err -lldb -ltalloc -ldl -lnsl -ltdb -lgssapi_krb5 -lbsd -ltevent -lrt -lattr -lcrypt -lpam
default/source3/libads/kerberos_keytab_64.o: In function `ads_keytab_list':
kerberos_keytab.c:(.text+0x138): undefined reference to `ads_keytab_open'
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/var/tmp/portage/net-fs/samba-4.6.13/work/samba-4.6.13-abi_x86_64.amd64/bin'
Build failed:  -> task failed (err #1):
        {task: cc_link ldap_64.o,sasl_64.o,sasl_wrapping_64.o,krb5_setpw_64.o,kerberos_util_64.o,ldap_user_64.o,ads_struct_64.o,kerberos_keytab_64.o,disp_sec_64.o,ldap_utils_64.o,ldap_schema_64.o,util_64.o,ndr_64.o,namequery_dc_105.o,trustdom_cache_105.o,dsgetdcname_105.o -> libads-samba4.so}
 * ERROR: net-fs/samba-4.6.13::gentoo failed (compile phase):
 *   build failed


Portage install plan: 

[ebuild  N    ~] net-fs/samba-4.6.13  USE="acl pam system-mitkrb5 -addc -addns -ads -ceph -client -cluster -cups -debug -dmapi -fam -gnutls -gpg -iprint -ldap -python -quota (-selinux) -syslog (-system-heimdal) -systemd {-test} -winbind -zeroconf" PYTHON_TARGETS="python2_7" 0 KiB
[ebuild  N     ]  dev-libs/libaio-0.3.110  USE="-static-libs {-test}" 0 KiB
[ebuild  N     ]  dev-util/cmocka-1.0.1  USE="-doc -static-libs {-test}" 0 KiB
[ebuild  N     ]   dev-util/cmake-3.9.6  USE="ncurses -doc -emacs -qt5 -server -system-jsoncpp {-test}" 0 KiB
[ebuild  N     ]    app-crypt/rhash-1.3.5  USE="nls -debug -openssl -static-libs" 0 KiB
[ebuild  N     ]    app-arch/libarchive-3.3.1:0/13  USE="acl bzip2 e2fsprogs iconv lzma threads xattr zlib -expat -libressl -lz4 -lzo -nettle -static-libs" 0 KiB
[ebuild  N    ~]  sys-libs/tevent-0.9.35  USE="python" PYTHON_TARGETS="python2_7" 0 KiB
[ebuild  N    ~]   sys-libs/talloc-2.1.11  USE="python -compat" PYTHON_TARGETS="python2_7" 0 KiB
[ebuild  N     ]  dev-python/subunit-1.2.0-r1  USE="-static-libs {-test}" PYTHON_TARGETS="python2_7 python3_5 (-pypy) (-pypy3) -python3_4 -python3_6" 0 KiB
[ebuild  N     ]   dev-python/extras-0.0.3  USE="{-test}" PYTHON_TARGETS="python2_7 python3_5 (-pypy) (-pypy3) -python3_4 -python3_6" 0 KiB
[ebuild  N     ]   dev-libs/check-0.12.0  USE="-static-libs -subunit" 0 KiB
[ebuild  N     ]   dev-python/testtools-1.8.0  USE="-doc {-test}" PYTHON_TARGETS="python2_7 python3_5 (-pypy) (-pypy3) -python3_4 -python3_6" 0 KiB
[ebuild  N     ]    dev-python/mimeparse-1.6.0  PYTHON_TARGETS="python2_7 python3_5 (-pypy) (-pypy3) -python3_4 -python3_6" 0 KiB
[ebuild  N     ]    dev-python/pbr-3.1.1  USE="{-test}" PYTHON_TARGETS="python2_7 python3_5 (-pypy) (-pypy3) -python3_4 -python3_6" 0 KiB
[ebuild  N     ]    dev-python/traceback2-1.4.0  PYTHON_TARGETS="python2_7 python3_5 (-pypy) (-pypy3) -python3_4 -python3_6" 0 KiB
[ebuild  N     ]     dev-python/linecache2-1.0.0  USE="{-test}" PYTHON_TARGETS="python2_7 python3_5 (-pypy) (-pypy3) -python3_4 -python3_6" 0 KiB
[ebuild  N     ]    dev-python/unittest2-1.1.0  PYTHON_TARGETS="python2_7 python3_5 (-pypy) (-pypy3) -python3_4 -python3_6" 0 KiB
[ebuild  N     ]     dev-python/six-1.10.0  USE="-doc {-test}" PYTHON_TARGETS="python2_7 python3_5 (-pypy) (-pypy3) -python3_4 -python3_6" 0 KiB
[ebuild  N     ]   dev-util/cppunit-1.14.0  USE="-doc -examples -static-libs" 0 KiB
[ebuild  N     ]  sys-libs/ldb-1.1.29-r1:0/1.1.29  USE="ldap python -doc" PYTHON_TARGETS="python2_7" 0 KiB
[ebuild  N     ]   dev-libs/libbsd-0.8.6  USE="-static-libs" 0 KiB
[ebuild  N     ]   net-nds/openldap-2.4.44  USE="berkdb crypt ipv6 minimal perl ssl syslog tcpd -cxx -debug -experimental -gnutls -iodbc -kerberos -kinit -libressl -odbc -overlays -samba -sasl (-selinux) -slp -smbkrb5passwd -static-libs" 0 KiB
[ebuild  N     ]   sys-libs/tdb-1.3.13  USE="python" PYTHON_TARGETS="python2_7" 0 KiB
[ebuild  NS    ]    app-text/docbook-xml-dtd-4.2-r2:4.2 [4.1.2-r6:4.1.2] 0 KiB
[ebuild  N     ]  app-crypt/mit-krb5-1.15.2-r1  USE="keyutils nls pkinit threads -doc -libressl -openldap (-selinux) {-test} -xinetd" 0 KiB
[ebuild  N     ]   dev-libs/libverto-0.2.5-r1  USE="libev threads -glib -libevent -static-libs -tevent" 0 KiB
[ebuild  N     ]    dev-libs/libev-4.23  USE="-static-libs" 0 KiB
[ebuild  N     ]   sys-apps/keyutils-1.5.9-r4  USE="-static -static-libs {-test}" 0 KiB

Total: 28 packages (27 new, 1 in new slot), Size of downloads: 0 KiB

emerge: there are no ebuilds built with USE flags to satisfy ">=sys-libs/tevent-0.9.31[python(+)?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?]".
!!! One of the following packages is required to complete your request:
- sys-libs/tevent-0.9.31-r1::gentoo (Change USE: +python)
- sys-libs/ldb-1.1.29-r1::gentoo (Change USE: -python)
(dependency required by "sys-libs/ldb-1.1.29-r1::gentoo" [ebuild])
(dependency required by "net-fs/samba-4.6.13::gentoo" [ebuild])
(dependency required by "=net-fs/samba-4.6.13" [argument])

>>> Verifying ebuild manifests
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2018-03-13 00:02:16 UTC
Created attachment 523678 [details]
emerge --info
Comment 2 Ben Kohler gentoo-dev 2020-01-07 22:18:51 UTC
Are you still able to reproduce this?
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2020-01-08 03:50:25 UTC
Unfortunately the box I ran this on is currently long-term hibernating (quasi-dead), so I can't directly confirm or dis-confirm a fix.

However, my metadata from the the last testing run I did there says that it built all versions of samba in tree at the time ( Dec 2018 ), and none of the remaining versions seemed to have an issue, and this affected version is not present at that time: https://github.com/kentfredric/gentoo-perl-triage/blob/5.28.0/index/net-fs-s

Given nobody else has proffered information in the interim 2 years, closing this sounds sensible.