Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 774177 - net-misc/openssh-8.5_p1[kerberos]: fails to compile with undefined reference to `auth_get_canonical_hostname'
Summary: net-misc/openssh-8.5_p1[kerberos]: fails to compile with 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 Team for Core System packages
URL:
Whiteboard:
Keywords:
: 774201 774210 (view as bug list)
Depends on:
Blocks: CVE-2021-28041
  Show dependency tree
 
Reported: 2021-03-04 11:55 UTC by Klemen Mihevc
Modified: 2021-03-04 22:38 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,268.07 KB, text/plain)
2021-03-04 11:55 UTC, Klemen Mihevc
Details
keep_moving_auth_get_canonical_hostname_to_canohost.patch (keep_moving_auth_get_canonical_hostname_to_canohost.patch,7.97 KB, patch)
2021-03-04 18:56 UTC, Daniel Pouzzner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Klemen Mihevc 2021-03-04 11:55:05 UTC
New version of openssh that was updated this morning fails to compile for me

attached build.log for more info

Reproducible: Always




Portage 3.0.16 (python 3.8.8-final-0, default/linux/amd64/17.1/hardened, gcc-10.2.0, glibc-2.32-r8, 5.11.2-gentoo x86_64)
=================================================================
System uname: Linux-5.11.2-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_X5670_@_2.93GHz-with-glibc2.2.5
KiB Mem:    12268632 total,   3698916 free
KiB Swap:   16777684 total,  16713684 free
Timestamp of repository gentoo: Thu, 04 Mar 2021 11:22:10 +0000
Head commit of repository gentoo: e86a7465e9df1d9e215b39061f0a2eb7b94456ae

sh bash 5.1_p4
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p4::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          3.8.8::gentoo
dev-util/cmake:           3.19.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    sync-git-verify-commit-signature: true

local
    location: /var/db/repos/local
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -pipe -O3 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -pipe -O3 -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -pipe -O3 -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -pipe -O3 -fomit-frame-pointer"
GENTOO_MIRRORS="https://mirror.netcologne.de/gentoo/ https://ftp.halifax.rwth-aachen.de/gentoo/ https://mirror.yandex.ru/gentoo-distfiles/"
LANG="sl_SI.utf8"
LDFLAGS="-Wl,-O3 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu"
LINGUAS="en sl"
MAKEOPTS="-j12 -l12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl acpi amd64 apache2 apng berkdb bittorrent btrfs bzip2 caps cgi cli client corefonts crypt curl dhcp dlz dovecot-sasl eap exif expat experimental extraengine fontconfig ftp gd gdbm glib gmp gssapi gzip hardened http2 iconv icu idn intl iptables ipv6 ithreads jpeg kerberos lcms libglvnd libtirpc lz4 lzma lzo managesieve mp3 multilib mysql mysqli ncurses nls nping nptl openmp openssl pam pci pcntl pcre pcre16 pcre32 pdo perl pie png posix python rar readline rpc rtmp samba seccomp server session sieve slang smtp soap sockets socks5 split-usr sqlite ssh ssl ssp suexec tcpd threads tiff tracepath truetype udev unicode urandom usb vhosts webui x264 x265 xattr xml xmlreader xmlrpc xmlwriter xslt xtpax xvid xz zip zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias authn_dbd authn_socache authz_dbd cache_socache dbd http2 proxy proxy_html proxy_http proxy_http2 proxy_wstunnel xml2enc" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en sl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-0" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="geoip"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Klemen Mihevc 2021-03-04 11:55:27 UTC
Created attachment 689331 [details]
build.log
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-03-04 12:05:52 UTC
Please post as a comment the output of

  emerge --info

and let us know what kerberos package you have installed (app-crypt/mit-krb5 or app-crypt/heimdal)
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-03-04 12:06:41 UTC
Ah nevermind... the "emerge --info" is already there, but still let us know about your kerberos package.
Comment 4 Klemen Mihevc 2021-03-04 12:17:59 UTC
its mit-krb5 latest version, not at home so i cant check specific version, but its latest one from portage ~amd64
Comment 5 Yury Katuar 2021-03-04 16:59:08 UTC
Same issue, mit-krb5-1.19.1
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-03-04 18:49:17 UTC
*** Bug 774201 has been marked as a duplicate of this bug. ***
Comment 7 Daniel Pouzzner 2021-03-04 18:56:16 UTC
Created attachment 689376 [details, diff]
keep_moving_auth_get_canonical_hostname_to_canohost.patch

The fix for this is trivial, and just reverts a change (inadvertently?) made moving from openssh-8.2_p1-GSSAPI-dns.patch to openssh-8.5_p1-GSSAPI-dns.patch.
Comment 8 Chris Whalen 2021-03-04 21:27:50 UTC
*** Bug 774210 has been marked as a duplicate of this bug. ***
Comment 9 Chris Whalen 2021-03-04 21:48:25 UTC
(In reply to Daniel Pouzzner from comment #7)

Thanks Daniel, this indeed fixes it for me!
Comment 10 Klemen Mihevc 2021-03-04 22:09:04 UTC
(In reply to Daniel Pouzzner from comment #7)
> Created attachment 689376 [details, diff] [details, diff]
> keep_moving_auth_get_canonical_hostname_to_canohost.patch
> 
> The fix for this is trivial, and just reverts a change (inadvertently?) made
> moving from openssh-8.2_p1-GSSAPI-dns.patch to
> openssh-8.5_p1-GSSAPI-dns.patch.

works for me as well.
Comment 11 Larry the Git Cow gentoo-dev 2021-03-04 22:38:59 UTC
The bug has been closed via the following commit(s):

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

commit ceea1a160b9e2c0583c54e1df9039b9c49b401b6
Author:     Patrick McLean <patrick.mclean@sony.com>
AuthorDate: 2021-03-04 22:37:59 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2021-03-04 22:38:47 +0000

    net-misc/openssh-8.5_p1: Fix GSSAPI patch (bug #774177)
    
    Closes: https://bugs.gentoo.org/774177
    Copyright: Sony Interactive Entertainment Inc.
    Package-Manager: Portage-3.0.16, Repoman-3.0.2
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 .../openssh/files/openssh-8.5_p1-GSSAPI-dns.patch  | 242 +++++++++++++++++++++
 1 file changed, 242 insertions(+)