Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 770181 - net-fs/samba: has broken module: libkrb5samba-samba4.so: undefined reference to `krb5_set_default_tgs_ktypes@krb5_3_MIT' (was: net-fs/smbnetfs-0.6.3: Error!!! libsmbclient >= 3.5 required)
Summary: net-fs/samba: has broken module: libkrb5samba-samba4.so: undefined reference ...
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: PMASKED
: 770256 770373 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-02-12 08:25 UTC by Toralf Förster
Modified: 2021-02-20 05:55 UTC (History)
8 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.00 KB, text/plain)
2021-02-12 08:25 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,183.00 KB, text/plain)
2021-02-12 08:25 UTC, Toralf Förster
Details
environment (environment,22.39 KB, text/plain)
2021-02-12 08:25 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,13.36 KB, application/x-bzip)
2021-02-12 08:25 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.50 KB, application/x-bzip)
2021-02-12 08:25 UTC, Toralf Förster
Details
net-fs:smbnetfs-0.6.3:20210212-063450.log (net-fs:smbnetfs-0.6.3:20210212-063450.log,3.61 KB, text/plain)
2021-02-12 08:25 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,8.27 KB, application/x-bzip)
2021-02-12 08:25 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-02-12 08:25:45 UTC
 * ERROR: net-fs/smbnetfs-0.6.3::gentoo failed (configure phase):
 *   econf failed
 * 

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-20210204-145218

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.0.1
Python 3.8.7
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.49.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Fri Feb 12 06:08:02 UTC 2021

emerge -qpvO net-fs/smbnetfs
[ebuild  N    ] net-fs/smbnetfs-0.6.3  USE="-gnome-keyring"
Comment 1 Toralf Förster gentoo-dev 2021-02-12 08:25:47 UTC
Created attachment 686415 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-02-12 08:25:48 UTC
Created attachment 686418 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-02-12 08:25:50 UTC
Created attachment 686421 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-02-12 08:25:51 UTC
Created attachment 686424 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-02-12 08:25:52 UTC
Created attachment 686427 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-02-12 08:25:53 UTC
Created attachment 686430 [details]
net-fs:smbnetfs-0.6.3:20210212-063450.log
Comment 7 Toralf Förster gentoo-dev 2021-02-12 08:25:54 UTC
Created attachment 686433 [details]
temp.tar.bz2
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2021-02-12 08:42:07 UTC
Looking at:

```
checking for smbclient... yes
checking for smbc_setOptionUseCCache in -lsmbclient... no
Error!!! libsmbclient >= 3.5 required.
```

```
configure:4336: checking for smbc_setOptionUseCCache in -lsmbclient
configure:4361: x86_64-pc-linux-gnu-gcc -o conftest -O2 -pipe -march=native -fno-diagnostics-color  -Wall -W -D_REENTRANT -D_GNU_SOURCE -DFUSE_USE_VERSION=26 -I/usr/include/fuse -D_FILE_OFFSET_BITS=64  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -rdynamic conftest.c -lsmbclient   -lfuse -pthread  -lglib-2.0  >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/samba/libkrb5samba-samba4.so: undefined reference to `krb5_set_default_tgs_ktypes@krb5_3_MIT'
collect2: error: ld returned 1 exit status
configure:4361: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "SMBNetFS"
| #define PACKAGE_TARNAME "smbnetfs"
| #define PACKAGE_VERSION "0.6.3"
| #define PACKAGE_STRING "SMBNetFS 0.6.3"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "smbnetfs"
| #define VERSION "0.6.3"
| #define HAVE_BACKTRACE /**/
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char smbc_setOptionUseCCache ();
| int
| main ()
| {
| return smbc_setOptionUseCCache ();
|   ;
|   return 0;
| }
configure:4370: result: no
```

I think your samba is underlinked against krb5. Rr maybe krb5 broke ABI by removing a function? Reassigning to samba maintainer.
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2021-02-12 08:46:11 UTC
At least app-crypt/mit-krb5 was upgraded from 1.18.3-r1 to 1.19 that might affect samba:

$ egrep 'krb|samba|smbnetfs|heim' l
2021-02-07T14:13:12 >>> app-crypt/mit-krb5-1.18.3-r1
2021-02-07T14:19:46 >>> virtual/krb5-0-r1
2021-02-07T14:23:32 >>> net-fs/samba-4.13.4
2021-02-11T21:14:34 >>> app-crypt/mit-krb5-1.19

Adding app-crypt/mit-krb5 to consider adding subslot to app-crypt/mit-krb5 that samba could rely on (if it's an intended ABI break).
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2021-02-12 08:52:00 UTC
Seemingly relevant change: https://github.com/krb5/krb5/commit/a3a5c9b31cd9b421941eff9cd11dbc3876f4ff90
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2021-02-12 18:09:04 UTC
Upstream considers releasing a version to restore ABI compatibility if samba is confirmed to use symbols it should not: https://github.com/krb5/krb5/commit/a3a5c9b31cd9b421941eff9cd11dbc3876f4ff90#commitcomment-47059645
Comment 12 Ionen Wolkens gentoo-dev 2021-02-13 13:12:42 UTC
*** Bug 770373 has been marked as a duplicate of this bug. ***
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-14 19:36:32 UTC
*** Bug 770256 has been marked as a duplicate of this bug. ***
Comment 14 Larry the Git Cow gentoo-dev 2021-02-14 19:48:19 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8d39e2939bb091ab8a421a3fd65f43d8a737851

commit d8d39e2939bb091ab8a421a3fd65f43d8a737851
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-02-14 19:46:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-02-14 19:48:16 +0000

    profiles/package.mask: mask =app-crypt/mit-krb5-1.19
    
    Bug: https://bugs.gentoo.org/770181
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 7 +++++++
 1 file changed, 7 insertions(+)
Comment 16 Larry the Git Cow gentoo-dev 2021-02-20 05:55:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3a77c0312997c761d25593b94e1d600ed53cdcf

commit f3a77c0312997c761d25593b94e1d600ed53cdcf
Author:     Eray Aslan <eras@gentoo.org>
AuthorDate: 2021-02-20 05:50:04 +0000
Commit:     Eray Aslan <eras@gentoo.org>
CommitDate: 2021-02-20 05:50:04 +0000

    app-crypt/mit-krb5: bump to 1.19.1
    
    and fix ABI breakage with samba
    Closes: https://bugs.gentoo.org/770181
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Eray Aslan <eras@gentoo.org>

 app-crypt/mit-krb5/Manifest               |   1 +
 app-crypt/mit-krb5/mit-krb5-1.19.1.ebuild | 162 ++++++++++++++++++++++++++++++
 2 files changed, 163 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ccc7134910020d1b92e8ed68662a8fb25555ca3

commit 7ccc7134910020d1b92e8ed68662a8fb25555ca3
Author:     Eray Aslan <eras@gentoo.org>
AuthorDate: 2021-02-20 05:52:55 +0000
Commit:     Eray Aslan <eras@gentoo.org>
CommitDate: 2021-02-20 05:52:55 +0000

    app-crypt/mit-krb5: remove old verson with broken ABI
    
    Bug: https://bugs.gentoo.org/770181
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Eray Aslan <eras@gentoo.org>

 app-crypt/mit-krb5/Manifest             |   1 -
 app-crypt/mit-krb5/mit-krb5-1.19.ebuild | 162 --------------------------------
 2 files changed, 163 deletions(-)